/*!/*@nomin*/(()=>{vare,t={8118:(e,t)=>{"use strict";t.Z=(e,t)=>{constr=e.__vccOpts||e;for(const[n,o]oft)r[n]=o;returnr}},7771:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createServices:()=>No,launch:()=>Co}),r(8674),r(7727);varn=require("vue");consto={id:"data-bridge-app",class:"wb-db-app"},i={class:"wb-db-app__body"},s={key:0,class:"wb-db-app__license"},a={class:"wb-db-warning-anonymous-edit"},c={class:"wb-db-warning-anonymous-edit__heading"},u=["innerHTML"],l={class:"wb-db-warning-anonymous-edit__buttons"};r(3948);constp=["href","tabindex","role","aria-disabled","title","target","rel"],d={class:"wb-ui-event-emitting-button__text"},f=["primaryProgressive","close","neutral","back","link"],g=["close","back","link"],h=["close","back"],m=["M","L","XL"];vary=(0,n.defineComponent)({name:"EventEmittingButton",emits:["click"],props:{type:{type:String,required:!0,validator:e=>-1!==f.indexOf(e)},size:{type:String,required:!0,validator:e=>m.includes(e)},message:{required:!0,type:String},href:{type:String,required:!1,default:null},preventDefault:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},squary:{type:Boolean,required:!1,default:!1},newTab:{type:Boolean,required:!1,default:!1}},data:()=>({isPressed:!1}),computed:{isIconOnly(){returnh.includes(this.type)},isFrameless(){returng.includes(this.type)},opensInNewTab(){returnnull!==this.href&&this.newTab},tabindex(){returnthis.disabled?-1:this.href?null:0}},methods:{handleSpacePress(e){this.simulateSpaceOnButton()&&(this.preventScrollingDown(e),this.isPressed=!0,this.click(e))},handleEnterPress(e){this.isPressed=!0,this.thereIsNoSeparateClickEvent()&&this.click(e)},unpress(){this.isPressed=!1},click(e){this.preventDefault&&this.preventOpeningLink(e),this.disabled||this.$emit("click",e)},preventOpeningLink(e){e.preventDefault()},preventScrollingDown(e){e.preventDefault()},thereIsNoSeparateClickEvent(){returnnull===this.href},simulateSpaceOnButton(){returnnull===this.href}},compatConfig:{MODE:3}}),v=r(8118),E=(0,v.Z)(y,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{class:(0,n.normalizeClass)(["wb-ui-event-emitting-button",["wb-ui-event-emitting-button--"+this.type,"wb-ui-event-emitting-button--size-"+this.size,{"wb-ui-event-emitting-button--squary":e.squary,"wb-ui-event-emitting-button--pressed":e.isPressed,"wb-ui-event-emitting-button--iconOnly":e.isIconOnly,"wb-ui-event-emitting-button--frameless":e.isFrameless,"wb-ui-event-emitting-button--disabled":e.disabled}]]),href:e.href,tabindex:e.tabindex,role:e.href?"link":"button","aria-disabled":e.disabled?"true":null,title:e.message,target:e.opensInNewTab?"_blank":null,rel:e.opensInNewTab?"noreferrer noopener":null,onClick:t[0]||(t[0]=(...t)=>e.click&&e.click(...t)),onKeydown:[t[1]||(t[1]=(0,n.withKeys)(((...t)=>e.handleEnterPress&&e.handleEnterPress(...t)),["enter"])),t[2]||(t[2]=(0,n.withKeys)(((...t)=>e.handleSpacePress&&e.handleSpacePress(...t)),["space"]))],onKeyup:[t[3]||(t[3]=(0,n.withKeys)(((...t)=>e.unpress&&e.unpress(...t)),["enter"])),t[4]||(t[4]=(0,n.withKeys)(((...t)=>e.unpress&&e.unpress(...t)),["space"]))]},[(0,n.createElementVNode)("span",d,(0,n.toDisplayString)(e.message),1)],42,p)}]]);constb={class:"wb-ui-icon-message-box__content"},S=["error","warning","notice"];var_=(0,n.defineComponent)({name:"IconMessageBox",props:{type:{type:String,required:!0,validator:e=>S.includes(e)},inline:{type:Boolean,required:!1,default:!1}},compatConfig:{MODE:3}}),w=(0,v.Z)(_,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["wb-ui-icon-message-box",["wb-ui-icon-message-box--"+e.type,{"wb-ui-icon-message-box--block":!e.inline}]])},[(0,n.createElementVNode)("div",b,[(0,n.renderSlot)(e.$slots,"default")])],2)}]]),O=r(8534),R=r(2482);r(1703);classTextendsError{constructor(e){super(e[0].code),(0,R.Z)(this,"errors",void0),this.errors=e}}classAextendsError{constructor(e){super("Saving failed."),(0,R.Z)(this,"errors",void0),this.errors=e}}vark,I,P=r(5082);!function(e){e.INITIALIZING="initializing",e.READY="ready",e.SAVING="saving",e.SAVED="saved"}(k||(k={})),function(e){e.ERROR="error"}(I||(I={}));varN,C=(0,P.Z)((0,P.Z)({},k),I);classD{constructor(e,t,r){(0,R.Z)(this,"entityId",void0),(0,R.Z)(this,"propertyId",void0),(0,R.Z)(this,"index",void0),this.entityId=e,this.propertyId=t,this.index=r}resolveStatementGroup(e){vart,r;returnnull!==(t=null==e||null===(r=e[this.entityId])||void0===r?void0:r[this.propertyId])&&void0!==t?t:null}resolveStatement(e){vart,r;returnnull!==(t=null===(r=this.resolveStatementGroup(e))||void0===r?void0:r[this.index])&&void0!==t?t:null}resolveSnakInStatement(e){vart,r;returnnull!==(t=null===(r=this.resolveStatement(e))||void0===r?void0:r.mainsnak)&&void0!==t?t:null}}functionx(){return"undefined"!=typeofnavigator&&"undefined"!=typeofwindow?window:void0!==r.g?r.g:{}}!function(e){e.INITIALIZATION_ERROR="INITIALIZATION_ERROR",e.APPLICATION_LOGIC_ERROR="APPLICATION_LOGIC_ERROR",e.INVALID_ENTITY_STATE_ERROR="INVALID_ENTITY_STATE_ERROR",e.UNSUPPORTED_AMBIGUOUS_STATEMENT="UNSUPPORTED_AMBIGUOUS_STATEMENT",e.UNSUPPORTED_DEPRECATED_STATEMENT="UNSUPPORTED_DEPRECATED_STATEMENT",e.UNSUPPORTED_SNAK_TYPE="UNSUPPORTED_SNAK_TYPE",e.UNSUPPORTED_DATATYPE="UNSUPPORTED_DATATYPE",e.UNSUPPORTED_DATAVALUE_TYPE="UNSUPPORTED_DATAVALUE_TYPE",e.SAVING_FAILED="SAVING_FAILED",e.ASSERT_ANON_FAILED="ASSERT_ANON_FAILED",e.ASSERT_USER_FAILED="ASSERT_USER_FAILED",e.ASSERT_NAMED_USER_FAILED="ASSERT_NAMED_USER_FAILED",e.EDIT_CONFLICT="EDIT_CONFLICT",e.BAD_TAGS="BAD_TAGS",e.NO_SUCH_REVID="NO_SUCH_REVID",e.CENTRALAUTH_BADTOKEN="CENTRALAUTH_BADTOKEN"}(N||(N={}));constM="function"==typeofProxy;classL{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;constr={};if(e.settings)for(constiine.settings){constt=e.settings[i];r[i]=t.defaultValue}constn="__vue-devtools-plugin-settings__"+e.id;leto=Object.assign({},r);try{conste=localStorage.getItem(n),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(e){}o=e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=newProxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=newProxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>newPromise((r=>{this.targetQueue.push({method:t,args:e,resolve:r})}))})}asyncsetRealTarget(e){this.target=e;for(consttofthis.onQueue)this.target.on[t.method](...t.args);for(consttofthis.targetQueue)t.resolve(awaitthis.target[t.method](...t.args))}}functionU(e,t){constr=x(),n=x().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=M&&e.enableEarlyProxy;if(!n||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){consti=o?newL(e,n):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}elsen.emit("devtools-plugin:setup",e,t)}functionB(e,t){Object.keys(e).forEach((function(r){returnt(e[r],r)}))}functionj(e){returnnull!==e&&"object"==typeofe}function$(e,t,r){returnt.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){varr=t.indexOf(e);r>-1&&t.splice(r,1)}}functionG(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);varr=e.state;F(e,r,[],e._modules.root,!0),V(e,r,t)}functionV(e,t,r){varo=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);vari=e._wrappedGetters,s={};B(i,(function(t,r){s[r]=function(e,t){returnfunction(){returne(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){returns[r]()},enumerable:!0})})),e._state=(0,n.reactive)({data:t}),e.strict&&function(e){(0,n.watch)((function(){returne._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),o&&r&&e._withCommit((function(){o.data=null}))}functionF(e,t,r,n,o){vari=!r.length,s=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!i&&!o){vara=Y(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){a[c]=n.state}))}varu=n.context=function(e,t,r){varn=""===t,o={dispatch:n?e.dispatch:function(r,n,o){vari=K(r,n,o),s=i.payload,a=i.options,c=i.type;returna&&a.root||(c=t+c),e.dispatch(c,s)},commit:n?e.commit:function(r,n,o){vari=K(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};returnObject.defineProperties(o,{getters:{get:n?function(){returne.getters}:function(){returnH(e,t)}},state:{get:function(){returnY(e.state,r)}}}),o}(e,s,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,s+r,t,u)})),n.forEachAction((function(t,r){varn=t.root?r:s+r,o=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){varo,i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(o=i)&&"function"==typeofo.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throwe._devtoolHook.emit("vuex:error",t),t})):i}))}(e,n,o,u)})),n.forEachGetter((function(t,r){!function(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){returnr(n.state,n.getters,e.state,e.getters)})}(e,s+r,t,u)})),n.forEachChild((function(n,i){F(e,t,r.concat(i),n,o)}))}functionH(e,t){if(!e._makeLocalGettersCache[t]){varr={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){vari=o.slice(n);Object.defineProperty(r,i,{get:function(){returne.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}returne._makeLocalGettersCache[t]}functionY(e,t){returnt.reduce((function(e,t){returne[t]}),e)}functionK(e,t,r){returnj(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}varW=0;functionZ(e,t){U({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(r){r.addTimelineLayer({id:"vuex:mutations",label:"Vuex Mutations",color:q}),r.addTimelineLayer({id:"vuex:actions",label:"Vuex Actions",color:q}),r.addInspector({id:"vuex",label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree((function(r){if(r.app===e&&"vuex"===r.inspectorId)if(r.filter){varn=[];!functione(t,r,n,o){o.includes(n)&&t.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:r.namespaced?[z]:[]}),Object.keys(r._children).forEach((function(i){e(t,r._children[i],n,o+i+"/")}))}(n,t._modules.root,r.filter,""),r.rootNodes=n}elser.rootNodes=[Q(t._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===e&&"vuex"===r.inspectorId){varn=r.nodeId;H(t,n),r.state=function(e,t,r){t="root"===r?t:t[r];varn=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){vari=function(e){vart={};returnObject.keys(e).forEach((function(r){varn=r.split("/");if(n.length>1){varo=t,i=n.pop();n.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[i]=X((function(){returne[r]}))}elset[r]=X((function(){returne[r]}))})),t}(t);o.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?J(e):e,editable:!1,value:X((function(){returni[e]}))}}))}returno}((o=t._modules,(s=(i=n).split("/").filter((function(e){returne}))).reduce((function(e,t,r){varn=e[t];if(!n)thrownewError('Missing module "'+t+'" for path "'+i+'".');returnr===s.length-1?n:n._children}),"root"===i?o:o.root._children)),"root"===n?t.getters:t._makeLocalGettersCache,n)}varo,i,s})),r.on.editInspectorState((function(r){if(r.app===e&&"vuex"===r.inspectorId){varn=r.nodeId,o=r.path;"root"!==n&&(o=n.split("/").filter(Boolean).concat(o)),t._withCommit((function(){r.set(t._state.data,o,r.state.value)}))}})),t.subscribe((function(e,t){varn={};e.payload&&(n.payload=e.payload),n.state=t,r.notifyComponentUpdate(),r.sendInspectorTree("vuex"),r.sendInspectorState("vuex"),r.addTimelineEvent({layerId:"vuex:mutations",event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){varn={};e.payload&&(n.payload=e.payload),e._id=W++,e._time=Date.now(),n.state=t,r.addTimelineEvent({layerId:"vuex:actions",event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){varn={},o=Date.now()-e._time;n.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(n.payload=e.payload),n.state=t,r.addTimelineEvent({layerId:"vuex:actions",event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}varq=8702998,z={label:"namespaced",textColor:16777215,backgroundColor:6710886};functionJ(e){returne&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}functionQ(e,t){return{id:t||"root",label:J(t),tags:e.namespaced?[z]:[],children:Object.keys(e._children).map((function(r){returnQ(e._children[r],t+r+"/")}))}}functionX(e){try{returne()}catch(e){returne}}varee=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;varr=e.state;this.state=("function"==typeofr?r():r)||{}},te={namespaced:{configurable:!0}};te.namespaced.get=function(){return!!this._rawModule.namespaced},ee.prototype.addChild=function(e,t){this._children[e]=t},ee.prototype.removeChild=function(e){deletethis._children[e]},ee.prototype.getChild=function(e){returnthis._children[e]},ee.prototype.hasChild=function(e){returneinthis._children},ee.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ee.prototype.forEachChild=function(e){B(this._children,e)},ee.prototype.forEachGetter=function(e){this._rawModule.getters&&B(this._rawModule.getters,e)},ee.prototype.forEachAction=function(e){this._rawModule.actions&&B(this._rawModule.actions,e)},ee.prototype.forEachMutation=function(e){this._rawModule.mutations&&B(this._rawModule.mutations,e)},Object.defineProperties(ee.prototype,te);varre=function(e){this.register([],e,!1)};re.prototype.get=function(e){returne.reduce((function(e,t){returne.getChild(t)}),this.root)},re.prototype.getNamespace=function(e){vart=this.root;returne.reduce((function(e,r){returne+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},re.prototype.update=function(e){!functione(t,r,n){if(r.update(n),n.modules)for(varoinn.modules){if(!r.getChild(o))return;e(t.concat(o),r.getChild(o),n.modules[o])}}([],this.root,e)},re.prototype.register=function(e,t,r){varn=this;void0===r&&(r=!0);varo=newee(t,r);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o),t.modules&&B(t.modules,(function(t,o){n.register(e.concat(o),t,r)}))},re.prototype.unregister=function(e){vart=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},re.prototype.isRegistered=function(e){vart=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};varne=function(e){vart=this;void0===e&&(e={});varr=e.plugins;void0===r&&(r=[]);varn=e.strict;void0===n&&(n=!1);varo=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=newre(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;vari=this,s=this.dispatch,a=this.commit;this.dispatch=function(e,t){returns.call(i,e,t)},this.commit=function(e,t,r){returna.call(i,e,t,r)},this.strict=n;varc=this._modules.root.state;F(this,c,[],this._modules.root),V(this,c),r.forEach((function(e){returne(t)}))},oe={state:{configurable:!0}};functionie(e){returnfunction(e){returnArray.isArray(e)||j(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}functionse(e){returnfunction(t,r){return"string"!=typeoft?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}functionae(e,t,r){returne._modulesNamespaceMap[r]}ne.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void0!==this._devtools&&this._devtools&&Z(e,this)},oe.state.get=function(){returnthis._state.data},oe.state.set=function(e){},ne.prototype.commit=function(e,t,r){varn=this,o=K(e,t,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){returne(a,n.state)})))},ne.prototype.dispatch=function(e,t){varr=this,n=K(e,t),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(e){returne.before})).forEach((function(e){returne.before(s,r.state)}))}catch(e){}varc=a.length>1?Promise.all(a.map((function(e){returne(i)}))):a[0](i);returnnewPromise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){returne.after})).forEach((function(e){returne.after(s,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){returne.error})).forEach((function(t){returnt.error(s,r.state,e)}))}catch(e){}t(e)}))}))}},ne.prototype.subscribe=function(e,t){return$(e,this._subscribers,t)},ne.prototype.subscribeAction=function(e,t){return$("function"==typeofe?{before:e}:e,this._actionSubscribers,t)},ne.prototype.watch=function(e,t,r){varo=this;return(0,n.watch)((function(){returne(o.state,o.getters)}),t,Object.assign({},r))},ne.prototype.replaceState=function(e){vart=this;this._withCommit((function(){t._state.data=e}))},ne.prototype.registerModule=function(e,t,r){void0===r&&(r={}),"string"==typeofe&&(e=[e]),this._modules.register(e,t),F(this,this.state,e,this._modules.get(e),r.preserveState),V(this,this.state)},ne.prototype.unregisterModule=function(e){vart=this;"string"==typeofe&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){deleteY(t.state,e.slice(0,-1))[e[e.length-1]]})),G(this)},ne.prototype.hasModule=function(e){return"string"==typeofe&&(e=[e]),this._modules.isRegistered(e)},ne.prototype.hotUpdate=function(e){this._modules.update(e),G(this,!0)},ne.prototype._withCommit=function(e){vart=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ne.prototype,oe),se((function(e,t){varr={};returnie(t).forEach((function(t){varn=t.key,o=t.val;r[n]=function(){vart=this.$store.state,r=this.$store.getters;if(e){varn=ae(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeofo?o.call(this,t,r):t[o]},r[n].vuex=!0})),r})),se((function(e,t){varr={};returnie(t).forEach((function(t){varn=t.key,o=t.val;r[n]=function(){for(vart=[],r=arguments.length;r--;)t[r]=arguments[r];varn=this.$store.commit;if(e){vari=ae(this.$store,"mapMutations",e);if(!i)return;n=i.context.commit}return"function"==typeofo?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),se((function(e,t){varr={};returnie(t).forEach((function(t){varn=t.key,o=t.val;o=e+o,r[n]=function(){if(!e||ae(this.$store,"mapGetters",e))returnthis.$store.getters[o]},r[n].vuex=!0})),r})),se((function(e,t){varr={};returnie(t).forEach((function(t){varn=t.key,o=t.val;r[n]=function(){for(vart=[],r=arguments.length;r--;)t[r]=arguments[r];varn=this.$store.dispatch;if(e){vari=ae(this.$store,"mapActions",e);if(!i)return;n=i.context.dispatch}return"function"==typeofo?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r}));varce=function(){return(ce=Object.assign||function(e){for(vart,r=1,n=arguments.length;r<n;r++)for(varoint=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);returne}).apply(this,arguments)},ue=function(){functione(){}returne.prototype.$init=function(e){},Object.defineProperty(e.prototype,"state",{get:function(){returnthis.__ctx__.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){returnthis.__ctx__.getters},enumerable:!1,configurable:!0}),e}(),le=function(){functione(){}returnObject.defineProperty(e.prototype,"state",{get:function(){returnthis.__ctx__.state},enumerable:!1,configurable:!0}),e}(),pe=function(){functione(){}returne.prototype.$init=function(e){},Object.defineProperty(e.prototype,"state",{get:function(){returnthis.__ctx__.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){returnthis.__ctx__.getters},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"commit",{get:function(){returnthis.__ctx__.commit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dispatch",{get:function(){returnthis.__ctx__.dispatch},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actions",{get:function(){returnthis.__ctx__.actions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mutations",{get:function(){returnthis.__ctx__.mutations},enumerable:!1,configurable:!0}),e}(),de=function(){};functionfe(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnfunction(t){e.forEach((function(e){returne(t)}))}}functionge(e,t){returne.reduce((function(e,t){returne[t]}),t)}functionhe(e,t){varr={};returnObject.keys(e).forEach((function(n){r[n]=t(e[n],n)})),r}functionme(e,t){if(!e)thrownewError("[vuex-smart-module] "+t)}functionye(e){console.warn("[vuex-smart-module] DEPRECATED: "+e)}functionve(e,t,r,n){void0===n&&(n={constructor:!0}),e.constructor!==t&&(Object.getOwnPropertyNames(e).forEach((function(t){if(!n[t]){n[t]=!0;varo=Object.getOwnPropertyDescriptor(e,t);r(o,t)}})),ve(Object.getPrototypeOf(e),t,r,n))}functionEe(e,t){varr=[];returnve(e,t,(function(e,t){"function"==typeofe.value&&r.push(t)})),r}functionbe(e){vart="The module need to be registered a store before using `Module#context` or `createMapper`";return{getpath(){returnme(void0!==e.path,t),e.path},getnamespace(){returnme(void0!==e.namespace,t),e.namespace}}}functionSe(e,t,r,n,o){return"string"==typeofr?e(t+r,n,o):e(ce(ce({},r),{type:t+r.type}),n)}function_e(e,t,r,n,o){Se(e.commit,t,r,n,o)}functionwe(e,t,r,n,o){returnSe(e.dispatch,t,r,n,o)}functionOe(e,t){varr=t.length,n={};returnObject.keys(e.getters).forEach((function(o){vari=t===o.slice(0,r),s=o.slice(r);i&&s&&Object.defineProperty(n,s,{get:function(){returne.getters[o]},enumerable:!0})})),n}varRe=function(){functione(e,t,r){varn=this;this.pos=e,this.store=t,this.moduleOptions=r,this.commit=function(e,t,r){return_e(n.store,n.pos.namespace,e,t,r)},this.dispatch=function(e,t,r){returnwe(n.store,n.pos.namespace,e,t,r)}}returnObject.defineProperty(e.prototype,"mutations",{get:function(){vare=this;if(this.__mutations__)returnthis.__mutations__;vart={},r=this.moduleOptions.mutations;returnr&&Ee(r.prototype,le).forEach((function(r){Object.defineProperty(t,r,{value:function(t){returne.commit(r,t)},enumerable:!0})})),this.__mutations__=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actions",{get:function(){vare=this;if(this.__actions__)returnthis.__actions__;vart={},r=this.moduleOptions.actions;returnr&&Ee(r.prototype,pe).forEach((function(r){Object.defineProperty(t,r,{value:function(t){returne.dispatch(r,t)},enumerable:!0})})),this.__actions__=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){returnge(this.pos.path,this.store.state)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){returnOe(this.store,this.pos.namespace)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modules",{get:function(){vart=this,r={},n=this.moduleOptions.modules;returnn?(Object.keys(n).forEach((function(o){vari=n[o];Object.defineProperty(r,o,{get:function(){returnnewe(be(i),t.store,i.options)}})})),r):r},enumerable:!1,configurable:!0}),e}(),Te=function(){functione(e){this.pos=e}returne.prototype.mapState=function(e){vart=this.pos;returnAe(e,(function(e){returnfunction(){varr=ge(t.path,this.$store.state);if("function"==typeofe){varn=Oe(this.$store,t.namespace);returne.call(this,r,n)}returnr[e]}}))},e.prototype.mapGetters=function(e){vart=this.pos;returnAe(e,(function(e){functionr(){returnthis.$store.getters[t.namespace+e]}returnr.vuex=!0,r}))},e.prototype.mapMutations=function(e){vart=this.pos;returnAe(e,(function(e){returnfunction(){for(varr=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];vari=function(e,n){return_e(r.$store,t.namespace,e,n)};return"function"==typeofe?e.apply(this,[i].concat(n)):i(e,n[0])}}))},e.prototype.mapActions=function(e){vart=this.pos;returnAe(e,(function(e){returnfunction(){for(varr=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];vari=function(e,n){returnwe(r.$store,t.namespace,e,n)};return"function"==typeofe?e.apply(this,[i].concat(n)):i(e,n[0])}}))},e}();functionAe(e,t){returnhe(Array.isArray(e)?e.reduce((function(e,t){returne[t]=t,e}),{}):e,t)}varke=function(){functione(e){void0===e&&(e={}),this.options=e,this.mapper=newTe(be(this))}returne.prototype.clone=function(){vart=ce({},this.options);returnt.modules&&(t.modules=he(t.modules,(function(e){returne.clone()}))),newe(t)},e.prototype.context=function(e){returnnewRe(be(this),e,this.options)},e.prototype.mapState=function(e){returnye("`Module#mapState` is deprecated. Use `createMapper` instead."),this.mapper.mapState(e)},e.prototype.mapGetters=function(e){returnye("`Module#mapGetters` is deprecated. Use `createMapper` instead."),this.mapper.mapGetters(e)},e.prototype.mapMutations=function(e){returnye("`Module#mapMutations` is deprecated. Use `createMapper` instead."),this.mapper.mapMutations(e)},e.prototype.mapActions=function(e){returnye("`Module#mapActions` is deprecated. Use `createMapper` instead."),this.mapper.mapActions(e)},e.prototype.getStoreOptions=function(){vare=this.create([],""),t=e.options,r=e.injectStore;returnt.actions||(t.actions={}),t.actions["vuex-smart-module/injectStore"]=function(){r(this)},ce(ce({},t),{plugins:[function(e){e.dispatch("vuex-smart-module/injectStore");vart=e.hotUpdate;e.hotUpdate=function(r){t.call(e,r),e.dispatch("vuex-smart-module/injectStore")}}]})},e.prototype.create=function(e,t){me(!this.path||this.path.join(".")===e.join("."),"You are reusing one module on multiple places in the same store.\nClone it by `module.clone()` method to make sure every module in the store is unique."),this.path=e,this.namespace=t;varr=this.options,n=r.namespaced,o=void0===n||n,i=r.state,s=r.getters,a=r.mutations,c=r.actions,u=r.modules,l=u?Object.keys(u).reduce((function(r,n){vari,s=u[n],a=null===(i=s.options.namespaced)||void0===i||i?n+"/":"",c=s.create(e.concat(n),o?t+a:a);returnr.options[n]=c.options,r.injectStore=fe(r.injectStore,c.injectStore),r}),{options:{},injectStore:de}):void0,p=s&&function(e,t){varr=newe,n={};returnve(e.prototype,ue,(function(e,t){if("function"==typeofe.value||e.get){varo=e.value,i=e.get;n[t]=function(){vare=r;returni?i.call(e):o?o.bind(e):void0}}}),{constructor:!0,$init:!0}),{getters:n,injectStore:function(e){varn=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){returnn},configurable:!0}),r.$init(e)}}}(s,this),d=a&&function(e,t){varr=newe,n={};returnve(e.prototype,le,(function(e,t){"function"==typeofe.value&&(n[t]=function(e,n){varo=r;returnr[t].call(o,n)})})),{mutations:n,injectStore:function(e){varn=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){returnn},configurable:!0})}}}(a,this),f=c&&function(e,t){varr=newe,n={};returnve(e.prototype,pe,(function(e,t){"function"==typeofe.value&&(n[t]=function(e,n){varo=r;returnr[t].call(o,n)})}),{constructor:!0,$init:!0}),{actions:n,injectStore:function(e){varn=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){returnn},configurable:!0}),r.$init(e)}}}(c,this);return{options:{namespaced:o,state:function(){returni?newi:{}},getters:p&&p.getters,mutations:d&&d.mutations,actions:f&&f.actions,modules:l&&l.options},injectStore:fe(l?l.injectStore:de,p?p.injectStore:de,d?d.injectStore:de,f?f.injectStore:de)}},e}();classIe{constructor(){(0,R.Z)(this,"id",""),(0,R.Z)(this,"baseRevision",0),(0,R.Z)(this,"tempUserRedirectUrl",null)}}classPe{constructor(e,t){(0,R.Z)(this,"id",void0),(0,R.Z)(this,"statements",void0),this.id=e,this.statements=t}}classNe{constructor(e,t){(0,R.Z)(this,"entity",void0),(0,R.Z)(this,"revisionId",void0),this.entity=e,this.revisionId=t}}functionCe(e){returnJSON.parse(JSON.stringify(e))}r(8862);constDe=newke({state:class{},mutations:classextendsle{setStatements(e){this.state[e.entityId]=Ce(e.statements)}reset(){for(consteofObject.getOwnPropertyNames(this.state))deletethis.state[e]}},actions:classextendspe{initStatements(e){returnthis.commit("setStatements",{entityId:e.entityId,statements:e.statements}),Promise.resolve()}},getters:classextendsue{getcontainsEntity(){returne=>void0!==this.state[e]}getpropertyExists(){returne=>null!==e.resolveStatementGroup(this.state)}getisStatementGroupAmbiguous(){returne=>{constt=e.resolveStatementGroup(this.state);returnnull!==t&&t.length>1}}getrank(){returne=>{vart;constr=e.resolveStatement(this.state);returnnull!==(t=null==r?void0:r.rank)&&void0!==t?t:null}}getdataValue(){returne=>{vart;constr=e.resolveSnakInStatement(this.state);returnnull!==(t=null==r?void0:r.datavalue)&&void0!==t?t:null}}getsnakType(){returne=>{vart;constr=e.resolveSnakInStatement(this.state);returnnull!==(t=null==r?void0:r.snaktype)&&void0!==t?t:null}}getdataType(){returne=>{vart;constr=e.resolveSnakInStatement(this.state);returnnull!==(t=null==r?void0:r.datatype)&&void0!==t?t:null}}getdataValueType(){returne=>{vart,r;constn=e.resolveSnakInStatement(this.state);returnnull!==(t=null==n||null===(r=n.datavalue)||void0===r?void0:r.type)&&void0!==t?t:null}}}});classxe{constructor(e,t){(0,R.Z)(this,"entityRevision",void0),(0,R.Z)(this,"redirectUrl",void0),this.entityRevision=e,this.redirectUrl=t}}constMe=newke({state:Ie,mutations:classextendsle{updateEntity(e){this.state.id=e.id}updateRevision(e){this.state.baseRevision=e}updateTempUserRedirectUrl(e){this.state.tempUserRedirectUrl=e}reset(){Object.assign(this.state,newIe)}},actions:classextendspe{constructor(...e){super(...e),(0,R.Z)(this,"store",void0),(0,R.Z)(this,"statementsModule",void0)}$init(e){this.store=e,this.statementsModule=De.context(e)}entityInit(e){returnthis.store.$services.get("readingEntityRepository").getEntity(e.entity).then((e=>this.dispatch("entityWrite",newxe(e))))}entitySave(e){constt=this.state.id,r=newPe(t,e.statements),n=newNe(newPe(t,this.statementsModule.state[t]),this.state.baseRevision);returnthis.store.$services.get("writingEntityRepository").saveEntity(r,n,e.assertUser).then((e=>this.dispatch("entityWrite",e)))}entityWrite(e){returnthis.commit("updateRevision",e.entityRevision.revisionId),this.commit("updateEntity",e.entityRevision.entity),e.redirectUrl&&this.commit("updateTempUserRedirectUrl",e.redirectUrl),this.statementsModule.dispatch("initStatements",{entityId:e.entityRevision.entity.id,statements:e.entityRevision.entity.statements})}}});varLe;!function(e){e.REPLACE="replace",e.UPDATE="update"}(Le||(Le={}));varUe,Be=Le;!function(e){e.NO_SNAK_FOUND="snak not found",e.NO_STATEMENT_GROUP_FOUND="statement group not found",e.INCONSISTENT_PAYLOAD_TYPE="targetvalue's datavalue type is different from the snak's datavalue type in the state"}(Ue||(Ue={}));varje=Ue;class$e{apply(e,t,r){constn=t.resolveSnakInStatement(r);if(null===n)thrownewError(je.NO_SNAK_FOUND);if(void0!==n.datavalue&&e.type!==n.datavalue.type)thrownewError(je.INCONSISTENT_PAYLOAD_TYPE);returnn.snaktype="value",n.datavalue=e,r}}classGe{apply(e,t,r){constn=t.resolveStatementGroup(r),o=t.resolveStatement(r);if(null===n)thrownewError(je.NO_STATEMENT_GROUP_FOUND);if(null===o)thrownewError(je.NO_SNAK_FOUND);consti=o.mainsnak;if(void0!==i.datavalue&&e.type!==i.datavalue.type)thrownewError(je.INCONSISTENT_PAYLOAD_TYPE);o.rank="normal";consts=this.buildNewPreferredStatement(i,e);returnn.push(s),r}buildNewPreferredStatement(e,t){return{rank:"preferred",type:"statement",mainsnak:{snaktype:"value",property:e.property,datatype:e.datatype,datavalue:t}}}}functionVe(e){switch(e){caseBe.REPLACE:returnnew$e;caseBe.UPDATE:returnnewGe}}varFe=r(251),He=r.n(Fe),Ye=r(4785);classKe{constructor(){(0,R.Z)(this,"applicationErrors",[]),(0,R.Z)(this,"applicationStatus",k.INITIALIZING),(0,R.Z)(this,"editDecision",null),(0,R.Z)(this,"targetValue",null),(0,R.Z)(this,"renderedTargetReferences",[]),(0,R.Z)(this,"editFlow",""),(0,R.Z)(this,"entityTitle",""),(0,R.Z)(this,"originalHref",""),(0,R.Z)(this,"pageTitle",""),(0,R.Z)(this,"targetLabel",null),(0,R.Z)(this,"targetProperty",""),(0,R.Z)(this,"pageUrl",""),(0,R.Z)(this,"showWarningAnonymousEdit",!1),(0,R.Z)(this,"assertUserWhenSaving",!0),(0,R.Z)(this,"config",{usePublish:null,issueReportingLink:null,stringMaxLength:null,dataRightsText:null,dataRightsUrl:null,termsOfUseUrl:null}),(0,R.Z)(this,"tempUserEnabled",!1)}}classWeextendsle{setPropertyPointer(e){this.state.targetProperty=e}setEditFlow(e){this.state.editFlow=e}setApplicationStatus(e){this.state.applicationStatus=e}setTargetLabel(e){this.state.targetLabel=e}setRenderedTargetReferences(e){this.state.renderedTargetReferences=e}addApplicationErrors(e){this.state.applicationErrors.push(...e)}clearApplicationErrors(){this.state.applicationErrors=[]}setEditDecision(e){this.state.editDecision=e}setTargetValue(e){this.state.targetValue=Ce(e)}setEntityTitle(e){this.state.entityTitle=e}setPageTitle(e){this.state.pageTitle=e}setOriginalHref(e){this.state.originalHref=e}setPageUrl(e){this.state.pageUrl=e}setShowWarningAnonymousEdit(e){this.state.showWarningAnonymousEdit=e}setAssertUserWhenSaving(e){this.state.assertUserWhenSaving=e}setClientConfig(e){this.state.config=(0,P.Z)((0,P.Z)({},this.state.config),e)}setRepoConfig(e){vart;this.state.config=(0,P.Z)((0,P.Z)({},this.state.config),{},{stringMaxLength:null===(t=e.dataTypeLimits)||void0===t?void0:t.string.maxLength,dataRightsText:e.dataRightsText,dataRightsUrl:e.dataRightsUrl,termsOfUseUrl:e.termsOfUseUrl})}setTempUserConfig(e){this.state.tempUserEnabled=e.enabled}reset(){Object.assign(this.state,newKe)}}functionZe(e){returnt=>{t.subscribe((({type:t,payload:r})=>{(function(e,t){returne===We.prototype.addApplicationErrors.name})(t)&&r.forEach((t=>e.trackError(t.type)))}))}}constqe=newke({state:Ke,getters:classextendsue{constructor(...e){super(...e),(0,R.Z)(this,"statementModule",void0)}$init(e){this.statementModule=De.context(e)}gettargetLabel(){vare;returnnull!==(e=this.state.targetLabel)&&void0!==e?e:{language:"zxx",value:this.state.targetProperty}}gettargetReferences(){try{vare;constt=this.state,r=t.entity.id;returnnull!==(e=t.statements[r][this.state.targetProperty][0].references)&&void0!==e?e:[]}catch(e){return[]}}getisTargetValueModified(){if(this.state.applicationStatus===C.INITIALIZING)return!1;conste=this.state,t=e.entity.id;return!He()(this.state.targetValue,e.statements[t][this.state.targetProperty][0].mainsnak.datavalue,{strict:!0})}getcanStartSaving(){returnnull!==this.state.editDecision&&this.getters.isTargetValueModified&&this.getters.applicationStatus===C.READY}getisGenericSavingError(){returnthis.state.applicationErrors.length>0&&this.state.applicationErrors.every((e=>[N.SAVING_FAILED,N.BAD_TAGS,N.NO_SUCH_REVID,N.ASSERT_NAMED_USER_FAILED].includes(e.type)))}getisAssertUserFailedError(){return1===this.state.applicationErrors.length&&this.state.applicationErrors[0].type===N.ASSERT_USER_FAILED}getisEditConflictError(){return1===this.state.applicationErrors.length&&this.state.applicationErrors[0].type===N.EDIT_CONFLICT}getcanGoToPreviousState(){returnthis.getters.isGenericSavingError||this.getters.isAssertUserFailedError}getapplicationStatus(){returnthis.state.applicationErrors.length>0?C.ERROR:this.state.applicationStatus}getreportIssueTemplateBody(){conste=this.state.pageUrl,t=this.state.applicationErrors.map((e=>(0,Ye.serializeError)(e))),r=JSON.stringify(t,null,4);return["The error happened on: "+e,"Item title: "+this.state.entityTitle,"Property: "+this.state.targetProperty,"Error message: "+this.state.applicationErrors[0].type,"Approximate time of request: "+(newDate).toISOString(),"Debug information:","```",r,"```"].join("\n")}getissueReportingLinkConfig(){conste=this.state.config;if(null===e.issueReportingLink)thrownewError("not correctly initialized");returne.issueReportingLink}getconfig(){returnthis.state.config}},mutations:We,actions:classextendspe{constructor(...e){super(...e),(0,R.Z)(this,"store",void0),(0,R.Z)(this,"entityModule",void0),(0,R.Z)(this,"statementModule",void0),(0,R.Z)(this,"statementMutationFactory",void0)}$init(e){this.store=e,this.entityModule=Me.context(e),this.statementModule=De.context(e),this.statementMutationFactory=Ve}relaunchBridge(e){returnthis.commit("reset"),this.entityModule.commit("reset"),this.statementModule.commit("reset"),this.dispatch("initBridge",e)}initBridge(e){this.commit("setEditFlow",e.editFlow),this.commit("setPropertyPointer",e.propertyId),this.commit("setEntityTitle",e.entityTitle),this.commit("setOriginalHref",e.originalHref),this.commit("setPageTitle",e.pageTitle),this.commit("setPageUrl",e.pageUrl),this.commit("setClientConfig",e.client),this.commit("setShowWarningAnonymousEdit",null===e.userName),this.dispatch("requestAndSetTargetLabel",e.propertyId);constt=e=>einstanceofT&&e.errors.some((e=>"badtoken"===e.code&&"apierror-centralauth-badtoken"===e.params[0])),r=()=>Promise.all([this.store.$services.get("wikibaseRepoConfigRepository").getRepoConfiguration(),this.store.$services.get("tempUserConfigRepository").getTempUserConfiguration(),this.store.$services.get("editAuthorizationChecker").canUseBridgeForItemAndPage(e.entityTitle,e.pageTitle),this.store.$services.get("propertyDatatypeRepository").getDataType(e.propertyId),this.entityModule.dispatch("entityInit",{entity:e.entityId})]);returnr().catch((e=>{if(!t(e))throwe;returnr().then((e=>(this.store.$services.get("tracker").trackRecoveredError(N.CENTRALAUTH_BADTOKEN),e)))})).then((e=>this.dispatch("initBridgeWithRemoteData",{results:e})),(e=>{constr=t(e)?N.CENTRALAUTH_BADTOKEN:N.INITIALIZATION_ERROR;throwthis.commit("addApplicationErrors",[{type:r,info:e}]),e})).then((()=>{this.commit("setApplicationStatus",C.READY)}))}initBridgeWithRemoteData({results:[e,t,r,n,o]}){vari=this;return(0,O.Z)((function*(){if(!r.length){i.store.$services.get("tracker").trackPropertyDatatype(n);try{yieldi.dispatch("renderReferences")}catch(e){i.store.$services.get("tracker").trackError("render_references")}returni.commit("setRepoConfig",e),i.commit("setTempUserConfig",t),i.dispatch("postEntityLoad")}i.commit("addApplicationErrors",r)}))()}renderReferences(){vare=this;return(0,O.Z)((function*(){constt=yielde.store.$services.get("referencesRenderingRepository").getRenderedReferences(e.getters.targetReferences);e.commit("setRenderedTargetReferences",t)}))()}postEntityLoad(){vare=this;return(0,O.Z)((function*(){constt=e.state,r=newD(t.entity.id,t.targetProperty,0);yielde.dispatch("validateEntityState",r),e.getters.applicationStatus!==C.ERROR&&e.commit("setTargetValue",r.resolveSnakInStatement(t.statements).datavalue)}))()}requestAndSetTargetLabel(e){returnthis.store.$services.get("entityLabelRepository").getLabel(e).then((e=>{this.commit("setTargetLabel",e)}),(e=>{}))}validateEntityState(e){returnthis.statementModule.getters.propertyExists(e)?this.dispatch("validateBridgeApplicability",e):(this.commit("addApplicationErrors",[{type:N.INVALID_ENTITY_STATE_ERROR}]),Promise.resolve())}validateBridgeApplicability(e){if(this.state.applicationStatus===C.SAVED)returnPromise.resolve();if(this.statementModule.getters.isStatementGroupAmbiguous(e))returnthis.dispatch("addError",[{type:N.UNSUPPORTED_AMBIGUOUS_STATEMENT}]);if("deprecated"===this.statementModule.getters.rank(e))returnthis.dispatch("addError",[{type:N.UNSUPPORTED_DEPRECATED_STATEMENT}]);constt=this.statementModule.getters.snakType(e);if(null===t)thrownewError("If snak type is missing, there should have been an error earlier");if("value"!==t){conste={type:N.UNSUPPORTED_SNAK_TYPE,info:{snakType:t}};returnthis.dispatch("addError",[e])}constr=this.statementModule.getters.dataType(e);if(null===r)thrownewError("If snak is missing, there should have been an error earlier");if("string"!==r){conste={type:N.UNSUPPORTED_DATATYPE,info:{unsupportedDatatype:r}};returnthis.dispatch("addError",[e])}return"string"!==this.statementModule.getters.dataValueType(e)?this.dispatch("addError",[{type:N.UNSUPPORTED_DATAVALUE_TYPE}]):Promise.resolve()}setTargetValue(e){returnthis.state.applicationStatus!==C.READY?(this.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:{stack:(newError).stack}}]),Promise.reject(null)):(this.commit("setTargetValue",e),Promise.resolve())}saveBridge(){vare=this;return(0,O.Z)((function*(){if(e.state.applicationStatus!==C.READY)returne.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:{stack:(newError).stack}}]),Promise.reject(null);e.commit("setApplicationStatus",C.SAVING);constt=e.state,r=t.entity.id,n=newD(r,t.targetProperty,0);leto;try{o=e.statementMutationFactory(t.editDecision).apply(t.targetValue,n,Ce(t.statements))}catch(t){throwe.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:t}]),t}returne.entityModule.dispatch("entitySave",{statements:o[r],assertUser:e.state.assertUserWhenSaving}).catch((t=>{throwtinstanceofA&&t.errors.some((e=>e.type===N.EDIT_CONFLICT))&&e.dispatch("purgeTargetPage"),tinstanceofA?e.commit("addApplicationErrors",t.errors):e.commit("addApplicationErrors",[{type:N.SAVING_FAILED,info:t}]),t})).then((()=>e.dispatch("purgeTargetPage"))).then((()=>(e.commit("setApplicationStatus",C.SAVED),e.dispatch("postEntityLoad"))))}))()}purgeTargetPage(){returnthis.store.$services.get("purgeTitles").purge([this.state.pageTitle]).catch((()=>{this.store.$services.get("tracker").trackError("purge")}))}retrySave(){vare=this;return(0,O.Z)((function*(){returnyielde.dispatch("goBackFromErrorToReady"),e.dispatch("saveBridge")}))()}goBackFromErrorToReady(){returnthis.commit("clearApplicationErrors"),this.commit("setApplicationStatus",C.READY),Promise.resolve()}addError(e){returnthis.commit("addApplicationErrors",e),Promise.resolve()}setEditDecision(e){returnthis.commit("setEditDecision",e),Promise.resolve()}trackErrorsFallingBackToGenericView(){vare=this;return(0,O.Z)((function*(){for(consttofe.state.applicationErrors)e.store.$services.get("tracker").trackUnknownError(t.type)}))()}trackSavingErrorsFallingBackToGenericView(){vare=this;return(0,O.Z)((function*(){for(consttofe.state.applicationErrors)e.store.$services.get("tracker").trackSavingUnknownError(t.type)}))()}dismissWarningAnonymousEdit(){returnthis.commit("setShowWarningAnonymousEdit",!1),Promise.resolve()}stopAssertingUserWhenSaving(){returnthis.commit("setAssertUserWhenSaving",!1),Promise.resolve()}},modules:{entity:Me,statements:De}});functionze(e){constt=function(e,t){void0===t&&(t={});varr=e.create([],""),n=r.options,o=r.injectStore;returnnewne(ce(ce(ce({},n),t),{modules:ce(ce({},n.modules),t.modules),plugins:[o].concat(t.plugins||[])}))}(qe,{strict:!1,plugins:[Ze(e.get("tracker"))]});returnt.$services=e,t}varJe,Qe=(0,n.defineComponent)({computed:{rootModule(){returnqe.context(this.$store)},entityModule(){returnMe.context(this.$store)}}});!function(e){e.BRIDGE_DIALOG_TITLE="wikibase-client-data-bridge-dialog-title",e.SAVE_CHANGES="savechanges",e.PUBLISH_CHANGES="publishchanges",e.CANCEL="cancel",e.EDIT_DECISION_HEADING="wikibase-client-data-bridge-edit-decision-heading",e.EDIT_DECISION_REPLACE_LABEL="wikibase-client-data-bridge-edit-decision-replace-label",e.EDIT_DECISION_REPLACE_DESCRIPTION="wikibase-client-data-bridge-edit-decision-replace-description",e.EDIT_DECISION_UPDATE_LABEL="wikibase-client-data-bridge-edit-decision-update-label",e.EDIT_DECISION_UPDATE_DESCRIPTION="wikibase-client-data-bridge-edit-decision-update-description",e.REFERENCES_HEADING="wikibase-client-data-bridge-references-heading",e.ANONYMOUS_EDIT_WARNING_HEADING="wikibase-client-data-bridge-anonymous-edit-warning-heading",e.ANONYMOUS_EDIT_WARNING_MESSAGE="wikibase-client-data-bridge-anonymous-edit-warning-message",e.ANONYMOUS_EDIT_WARNING_PROCEED="wikibase-client-data-bridge-anonymous-edit-warning-proceed",e.ANONYMOUS_EDIT_WARNING_LOGIN="wikibase-client-data-bridge-anonymous-edit-warning-login",e.ANONYMOUS_EDIT_WARNING_TEMPUSER_MESSAGE="wikibase-client-data-bridge-anonymous-edit-warning-tempuser-message",e.PERMISSIONS_HEADING="wikibase-client-data-bridge-permissions-error",e.PERMISSIONS_MORE_INFO="wikibase-client-data-bridge-permissions-error-info",e.PERMISSIONS_BLOCKED_ON_CLIENT_HEADING="wikibase-client-data-bridge-blocked-on-client-head",e.PERMISSIONS_BLOCKED_ON_CLIENT_BODY="wikibase-client-data-bridge-blocked-on-client-body",e.PERMISSIONS_BLOCKED_ON_REPO_HEADING="wikibase-client-data-bridge-blocked-on-repo-head",e.PERMISSIONS_BLOCKED_ON_REPO_BODY="wikibase-client-data-bridge-blocked-on-repo-body",e.PERMISSIONS_PAGE_CASCADE_PROTECTED_HEADING="wikibase-client-data-bridge-cascadeprotected-on-client-head",e.PERMISSIONS_PAGE_CASCADE_PROTECTED_BODY="wikibase-client-data-bridge-cascadeprotected-on-client-body",e.PERMISSIONS_PROTECTED_HEADING="wikibase-client-data-bridge-protected-on-repo-head",e.PERMISSIONS_PROTECTED_BODY="wikibase-client-data-bridge-protected-on-repo-body",e.PERMISSIONS_SEMI_PROTECTED_HEADING="wikibase-client-data-bridge-semiprotected-on-repo-head",e.PERMISSIONS_SEMI_PROTECTED_BODY="wikibase-client-data-bridge-semiprotected-on-repo-body",e.PERMISSIONS_CASCADE_PROTECTED_HEADING="wikibase-client-data-bridge-cascadeprotected-on-repo-head",e.PERMISSIONS_CASCADE_PROTECTED_BODY="wikibase-client-data-bridge-cascadeprotected-on-repo-body",e.PERMISSIONS_ERROR_UNKNOWN_HEADING="wikibase-client-data-bridge-permissions-error-unknown-head",e.PERMISSIONS_ERROR_UNKNOWN_BODY="wikibase-client-data-bridge-permissions-error-unknown-body",e.BAILOUT_HEADING="wikibase-client-data-bridge-bailout-heading",e.BAILOUT_SUGGESTION_GO_TO_REPO="wikibase-client-data-bridge-bailout-suggestion-go-to-repo",e.BAILOUT_SUGGESTION_GO_TO_REPO_BUTTON="wikibase-client-data-bridge-bailout-suggestion-go-to-repo-button",e.BAILOUT_SUGGESTION_EDIT_ARTICLE="wikibase-client-data-bridge-bailout-suggestion-edit-article",e.UNSUPPORTED_DATATYPE_ERROR_HEAD="wikibase-client-data-bridge-unsupported-datatype-error-head",e.UNSUPPORTED_DATATYPE_ERROR_BODY="wikibase-client-data-bridge-unsupported-datatype-error-body",e.DEPRECATED_STATEMENT_ERROR_HEAD="wikibase-client-data-bridge-deprecated-statement-error-head",e.DEPRECATED_STATEMENT_ERROR_BODY="wikibase-client-data-bridge-deprecated-statement-error-body",e.AMBIGUOUS_STATEMENT_ERROR_HEAD="wikibase-client-data-bridge-ambiguous-statement-error-head",e.AMBIGUOUS_STATEMENT_ERROR_BODY="wikibase-client-data-bridge-ambiguous-statement-error-body",e.SOMEVALUE_ERROR_HEAD="wikibase-client-data-bridge-somevalue-error-head",e.SOMEVALUE_ERROR_BODY="wikibase-client-data-bridge-somevalue-error-body",e.SAVING_ERROR_HEADING="wikibase-client-data-bridge-saving-error-heading",e.SAVING_ERROR_MESSAGE="wikibase-client-data-bridge-saving-error-message",e.EDIT_CONFLICT_ERROR_HEADING="wikibase-client-data-bridge-edit-conflict-error-heading",e.EDIT_CONFLICT_ERROR_MESSAGE="wikibase-client-data-bridge-edit-conflict-error-message",e.UNKNOWN_ERROR_HEADING="wikibase-client-data-bridge-unknown-error-heading",e.UNKNOWN_ERROR_MESSAGE="wikibase-client-data-bridge-unknown-error-message",e.ERROR_REPORT="wikibase-client-data-bridge-error-report",e.ERROR_RELOAD_BRIDGE="wikibase-client-data-bridge-error-reload-bridge",e.ERROR_RELOAD_PAGE="wikibase-client-data-bridge-error-reload-page",e.ERROR_GO_BACK="wikibase-client-data-bridge-error-go-back",e.ERROR_RETRY_SAVE="wikibase-client-data-bridge-error-retry-save",e.NOVALUE_ERROR_HEAD="wikibase-client-data-bridge-novalue-error-head",e.NOVALUE_ERROR_BODY="wikibase-client-data-bridge-novalue-error-body",e.LICENSE_HEADING="wikibase-client-data-bridge-license-heading",e.LICENSE_BODY="wikibase-client-data-bridge-license-body",e.LOGIN_WARNING="wikibase-client-data-bridge-login-warning",e.REFERENCE_NOTE="wikibase-client-data-bridge-reference-note",e.THANK_YOU_HEAD="wikibase-client-data-bridge-thank-you-head",e.THANK_YOU_EDIT_REFERENCE_ON_REPO_BODY="wikibase-client-data-bridge-thank-you-edit-reference-on-repo-body",e.THANK_YOU_EDIT_REFERENCE_ON_REPO_BUTTON="wikibase-client-data-bridge-thank-you-edit-reference-on-repo-button",e.SAVING_ERROR_ASSERTUSER_HEADING="wikibase-client-data-bridge-saving-error-assertuser-heading",e.SAVING_ERROR_ASSERTUSER_MESSAGE="wikibase-client-data-bridge-saving-error-assertuser-message",e.SAVING_ERROR_ASSERTUSER_SAVE="wikibase-client-data-bridge-saving-error-assertuser-save",e.SAVING_ERROR_ASSERTUSER_PUBLISH="wikibase-client-data-bridge-saving-error-assertuser-publish",e.SAVING_ERROR_ASSERTUSER_LOGIN="wikibase-client-data-bridge-saving-error-assertuser-login",e.SAVING_ERROR_ASSERTUSER_KEEP_EDITING="wikibase-client-data-bridge-saving-error-assertuser-editing"}(Je||(Je={}));varXe,et,tt=Je,rt=(0,n.defineComponent)({name:"WarningAnonymousEdit",mixins:[Qe],emits:["proceed"],components:{EventEmittingButton:E,IconMessageBox:w},props:{loginUrl:{type:String,required:!0}},computed:{tempUserEnabled(){returnthis.rootModule.state.tempUserEnabled},notificationMessageKey(){returnthis.tempUserEnabled?tt.ANONYMOUS_EDIT_WARNING_TEMPUSER_MESSAGE:tt.ANONYMOUS_EDIT_WARNING_MESSAGE},notificationType(){returnthis.tempUserEnabled?"notice":"warning"}},methods:{proceed(){this.$emit("proceed")}},compatConfig:{MODE:3}}),nt=(0,v.Z)(rt,[["render",function(e,t,r,o,i,s){constp=(0,n.resolveComponent)("IconMessageBox"),d=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createElementVNode)("h2",c,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.ANONYMOUS_EDIT_WARNING_HEADING)),1),(0,n.createVNode)(p,{class:"wb-db-warning-anonymous-edit__message",type:e.notificationType},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("p",{class:"wb-db-warning-anonymous-edit__message-text",innerHTML:e.$messages.get(e.notificationMessageKey)},null,8,u)]),void0,!0),_:1},8,["type"]),(0,n.createElementVNode)("div",l,[(0,n.createVNode)(d,{class:"wb-db-warning-anonymous-edit__proceed",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.ANONYMOUS_EDIT_WARNING_PROCEED),onClick:e.proceed},null,8,["message","onClick"]),(0,n.createVNode)(d,{class:"wb-db-warning-anonymous-edit__login",type:"neutral",size:"M",message:e.$messages.getText(e.$messages.KEYS.ANONYMOUS_EDIT_WARNING_LOGIN),href:e.loginUrl,"prevent-default":!1},null,8,["message","href"])])])}]]);!function(e){e.saved="saved",e.cancel="cancel",e.reload="reload"}(Xe||(Xe={})),function(e){e.relaunch="relaunch",e.redirect="redirect"}(et||(et={}));varot=(0,P.Z)((0,P.Z)({},Xe),et);constit={class:"wb-db-bridge"},st={class:"wb-db-edit-decision"},at={class:"wb-db-edit-decision__heading"},ct=["innerHTML"],ut=["innerHTML"],lt={class:"wb-db-radio-group"};varpt=(0,n.defineComponent)({name:"RadioGroup",compatConfig:{MODE:3}}),dt=(0,v.Z)(pt,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",lt,[(0,n.renderSlot)(e.$slots,"default")])}]]);constft={class:"wb-ui-radio-input"},gt=["name","value","id","checked","disabled"],ht=(0,n.createElementVNode)("span",null,null,-1),mt=["for"],yt={class:"wb-ui-radio-input__main-label"},vt={class:"wb-ui-radio-input__description"};varEt=(0,n.defineComponent)({name:"RadioInput",data:()=>({id:"wb-ui-radio-input-"+Math.floor(1e6*Math.random())}),props:{name:{type:String,required:!0},htmlValue:{type:String,required:!0},disabled:{type:Boolean,default:!1},value:{type:String,default:""}},computed:{initiallyChecked(){returnthis.value===this.htmlValue}},compatConfig:{MODE:3}}),bt=(0,v.Z)(Et,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",ft,[(0,n.createElementVNode)("input",{name:e.name,value:e.htmlValue,type:"radio",id:e.id,checked:e.initiallyChecked,disabled:e.disabled,onChange:t[0]||(t[0]=t=>e.$emit("input",t.target.value))},null,40,gt),ht,(0,n.createElementVNode)("label",{for:e.id},[(0,n.createElementVNode)("span",yt,[(0,n.renderSlot)(e.$slots,"label")]),(0,n.createElementVNode)("span",vt,[(0,n.renderSlot)(e.$slots,"description")])],8,mt)])}]]),St=(0,n.defineComponent)({mixins:[Qe],name:"EditDecision",components:{RadioGroup:dt,RadioInput:bt},computed:{editDecision:{get(){returnthis.rootModule.state.editDecision},set(e){if(null===e)thrownewError("Cannot set editDecision back to null!");this.rootModule.dispatch("setEditDecision",e)}}},compatConfig:{MODE:3}}),_t=(0,v.Z)(St,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("RadioInput"),c=(0,n.resolveComponent)("RadioGroup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",st,[(0,n.createElementVNode)("h2",at,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.EDIT_DECISION_HEADING)),1),(0,n.createVNode)(c,null,{default:(0,n.withCtx)((()=>[(0,n.createVNode)(a,{name:"editDecision","html-value":"replace",value:"editDecision",onInput:t[0]||(t[0]=t=>e.editDecision=t)},{label:(0,n.withCtx)((()=>[(0,n.createElementVNode)("span",{innerHTML:e.$messages.get(e.$messages.KEYS.EDIT_DECISION_REPLACE_LABEL)},null,8,ct)])),description:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.EDIT_DECISION_REPLACE_DESCRIPTION)),1)])),_:1}),(0,n.createVNode)(a,{name:"editDecision","html-value":"update",value:"editDecision",onInput:t[1]||(t[1]=t=>e.editDecision=t)},{label:(0,n.withCtx)((()=>[(0,n.createElementVNode)("span",{innerHTML:e.$messages.get(e.$messages.KEYS.EDIT_DECISION_UPDATE_LABEL)},null,8,ut)])),description:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.EDIT_DECISION_UPDATE_DESCRIPTION)),1)])),_:1})]),void0,!0),_:1})])}]]);constwt={class:"wb-db-string-value"},Ot=["for"];varRt=(0,n.defineComponent)({name:"TermLabel",props:{term:{type:Object,required:!0},inLanguage:{type:Function,required:!0}},compatConfig:{MODE:3}}),Tt=(0,v.Z)(Rt,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("span",(0,n.mergeProps)({class:"wb-db-term-label"},e.inLanguage(e.term.language)),(0,n.toDisplayString)(e.term.value),17)}]]),At=(0,n.defineComponent)({name:"PropertyLabel",components:{TermLabel:Tt},props:{term:{type:Object,required:!0},htmlFor:{type:String,required:!0}},compatConfig:{MODE:3}}),kt=(0,v.Z)(At,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("TermLabel");return(0,n.openBlock)(),(0,n.createElementBlock)("label",{class:"wb-db-property-label",for:e.htmlFor},[(0,n.createVNode)(a,{term:e.term,"in-language":e.$inLanguage},null,8,["term","in-language"])],8,Ot)}]]);constIt=["value","maxlength"];r(4916),r(5306);varPt,Nt=r(3279),Ct=r.n(Nt),Dt=(0,n.defineComponent)({name:"ResizingTextField",emits:["input"],props:{value:{type:String,required:!1,default:""},maxLength:{type:Number,default:null}},data:()=>({windowResizeHandler:void0}),mounted(){this.windowResizeHandler=Ct()((()=>this.resizeTextField()),100),window.addEventListener("resize",this.windowResizeHandler),this.resizeTextField()},unmounted(){void0!==this.windowResizeHandler&&(window.removeEventListener("resize",this.windowResizeHandler),this.windowResizeHandler=void0)},methods:{setValue(e){this.$emit("input",this.removeNewlines(e.target.value)),this.$forceUpdate(),this.$nextTick().then((()=>{this.resizeTextField()}))},removeNewlines:e=>e.replace(/\r?\n/g,""),resizeTextField(){conste=this.$el;e.style.height="0";constt=this.getPropertyValueInPx(e,"border-top-width")+this.getPropertyValueInPx(e,"border-bottom-width");e.style.height=this.$el.scrollHeight+t+"px"},getPropertyValueInPx:(e,t)=>parseInt(window.getComputedStyle(e).getPropertyValue(t))},compatConfig:{MODE:3}}),xt=(0,v.Z)(Dt,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("textarea",{value:e.value,onInput:t[0]||(t[0]=(...t)=>e.setValue&&e.setValue(...t)),onKeydown:t[1]||(t[1]=(0,n.withKeys)((0,n.withModifiers)((()=>{}),["prevent"]),["enter"])),maxlength:e.maxLength},null,40,It)}]]),Mt=newUint8Array(16);functionLt(){if(!Pt&&!(Pt="undefined"!=typeofcrypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeofmsCrypto&&"function"==typeofmsCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))thrownewError("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");returnPt(Mt)}for(varUt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Bt=function(e){return"string"==typeofe&&Ut.test(e)},jt=[],$t=0;$t<256;++$t)jt.push(($t+256).toString(16).substr(1));varGt=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:0,r=(jt[e[t+0]]+jt[e[t+1]]+jt[e[t+2]]+jt[e[t+3]]+"-"+jt[e[t+4]]+jt[e[t+5]]+"-"+jt[e[t+6]]+jt[e[t+7]]+"-"+jt[e[t+8]]+jt[e[t+9]]+"-"+jt[e[t+10]]+jt[e[t+11]]+jt[e[t+12]]+jt[e[t+13]]+jt[e[t+14]]+jt[e[t+15]]).toLowerCase();if(!Bt(r))throwTypeError("Stringified UUID is invalid");returnr},Vt=function(e,t,r){varn=(e=e||{}).random||(e.rng||Lt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(varo=0;o<16;++o)t[r+o]=n[o];returnt}returnGt(n)},Ft=(0,n.defineComponent)({name:"StringDataValue",props:{dataValue:{type:Object,required:!1,default:null},label:{type:Object,required:!0},placeholder:{required:!1,type:String,default:void0},maxlength:{type:Number,required:!1,default:void0},setDataValue:{required:!0,type:Function}},components:{PropertyLabel:kt,ResizingTextField:xt},data:()=>({id:Vt()}),computed:{value:{get(){returnthis.dataValue?this.dataValue.value:""},set(e){this.setDataValue({type:"string",value:e})}}},compatConfig:{MODE:3}}),Ht=(0,v.Z)(Ft,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("PropertyLabel"),c=(0,n.resolveComponent)("ResizingTextField");return(0,n.openBlock)(),(0,n.createElementBlock)("div",wt,[(0,n.createVNode)(a,{term:e.label,"html-for":e.id},null,8,["term","html-for"]),(0,n.createVNode)(c,{id:e.id,class:"wb-db-string-value__input",placeholder:e.placeholder,"max-length":e.maxlength,value:e.value,onInput:t[0]||(t[0]=t=>e.value=t)},null,8,["id","placeholder","max-length","value"])])}]]);constYt={class:"wb-db-references"},Kt={class:"wb-db-references__heading"},Wt={class:"wb-db-references__note"},Zt={class:"wb-db-references__list"},qt=["innerHTML"];varzt=(0,n.defineComponent)({mixins:[Qe],name:"ReferenceSection",computed:{renderedTargetReferences(){returnthis.rootModule.state.renderedTargetReferences}},compatConfig:{MODE:3}}),Jt=(0,v.Z)(zt,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",Yt,[(0,n.createElementVNode)("h2",Kt,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.REFERENCES_HEADING)),1),(0,n.createElementVNode)("span",Wt,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.REFERENCE_NOTE)),1),(0,n.createElementVNode)("ul",Zt,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.renderedTargetReferences,((e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{class:"wb-db-references__listItem",key:t,innerHTML:e},null,8,qt)))),128))])])}]]),Qt=(0,n.defineComponent)({mixins:[Qe],name:"DataBridge",components:{EditDecision:_t,StringDataValue:Ht,ReferenceSection:Jt},computed:{targetValue(){conste=this.rootModule.state.targetValue;if(null===e)thrownewError("not yet ready!");returne},targetLabel(){returnthis.rootModule.getters.targetLabel},valueMaxLength(){returnthis.rootModule.getters.config.stringMaxLength}},methods:{setDataValue(e){this.rootModule.dispatch("setTargetValue",e)}},compatConfig:{MODE:3}}),Xt=(0,v.Z)(Qt,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("StringDataValue"),c=(0,n.resolveComponent)("ReferenceSection"),u=(0,n.resolveComponent)("EditDecision");return(0,n.openBlock)(),(0,n.createElementBlock)("section",it,[(0,n.createVNode)(a,{label:e.targetLabel,"data-value":e.targetValue,"set-data-value":e.setDataValue,maxlength:e.valueMaxLength,class:"wb-db-bridge__target-value"},null,8,["label","data-value","set-data-value","maxlength"]),(0,n.createVNode)(c,{class:"wb-db-bridge__reference-section"}),(0,n.createVNode)(u)])}]]);conster={class:"wb-db-load"},tr={class:"wb-ui-indeterminate-progress-bar__box"},rr=[(0,n.createElementVNode)("div",{class:"wb-ui-indeterminate-progress-bar__bar","aria-busy":"true","aria-live":"polite"},null,-1)];varnr=(0,n.defineComponent)({name:"IndeterminateProgressBar",compatConfig:{MODE:3}}),or=(0,v.Z)(nr,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",tr,rr)}]]),ir=(0,n.defineComponent)({name:"Loading",components:{IndeterminateProgressBar:or},props:{isInitializing:{type:Boolean,required:!0},isSaving:{type:Boolean,required:!0},TIME_UNTIL_CONSIDERED_SLOW:{type:Number,default:1e3},MINIMUM_TIME_OF_PROGRESS_ANIMATION:{type:Number,default:500}},watch:{isInitializing:{immediate:!0,handler(e,t){e?this.showLoading():this.tendTowardsReady()}},isSaving:{immediate:!0,handler(e,t){e?this.showLoading():this.tendTowardsReady()}}},data(){return{ready:!this.isInitializing,loadingIsSlow:!1,trackSlowness:null,trackAnimation:null,animatedEnough:!1}},methods:{showLoading(){this.ready=!this.isInitializing,this.trackSlowness=setTimeout((()=>{this.loadingIsSlow=!0,this.trackAnimation=setTimeout((()=>{this.animatedEnough=!0,this.tendTowardsReady()}),this.MINIMUM_TIME_OF_PROGRESS_ANIMATION)}),this.TIME_UNTIL_CONSIDERED_SLOW)},tendTowardsReady(){this.isInitializing||this.isSaving||this.loadingIsSlow&&!this.animatedEnough||(this.ready=!0,this.resetSlownessTracking())},resetSlownessTracking(){this.loadingIsSlow=!1,this.animatedEnough=!1,this.trackSlowness&&(clearTimeout(this.trackSlowness),this.trackSlowness=null),this.trackAnimation&&(clearTimeout(this.trackAnimation),this.trackAnimation=null)}},compatConfig:{MODE:3}}),sr=(0,v.Z)(ir,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IndeterminateProgressBar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",er,[e.ready?(0,n.renderSlot)(e.$slots,"default",{key:0}):(0,n.createCommentVNode)("",!0),e.loadingIsSlow?((0,n.openBlock)(),(0,n.createBlock)(a,{key:1,class:"wb-db-load__bar"})):(0,n.createCommentVNode)("",!0)])}]]);constar={class:"wb-db-error"};r(2479);constcr={class:"wb-db-unsupported-snaktype"},ur=["innerHTML"],lr=["innerHTML"],pr={class:"wb-db-bailout-actions"},dr={class:"wb-db-bailout-actions__heading"},fr={class:"wb-db-bailout-actions__suggestion"},gr=(0,n.createElementVNode)("br",null,null,-1),hr=["innerHTML"];varmr,yr=(0,n.defineComponent)({name:"BailoutActions",components:{EventEmittingButton:E},props:{originalHref:{type:String,required:!0},pageTitle:{required:!0,type:String}},computed:{editArticleUrl(){returnthis.$clientRouter.getPageUrl(this.pageTitle,{action:"edit"})}},compatConfig:{MODE:3}}),vr=(0,v.Z)(yr,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",pr,[(0,n.createElementVNode)("h2",dr,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.BAILOUT_HEADING)),1),(0,n.createElementVNode)("ul",null,[(0,n.createElementVNode)("li",fr,[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.BAILOUT_SUGGESTION_GO_TO_REPO)),1),gr,(0,n.createVNode)(a,{class:"wb-db-bailout-actions__button",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.BAILOUT_SUGGESTION_GO_TO_REPO_BUTTON),href:e.originalHref,"new-tab":!0,"prevent-default":!1},null,8,["message","href"])]),(0,n.createElementVNode)("li",{class:"wb-db-bailout-actions__suggestion",innerHTML:e.$messages.get(e.$messages.KEYS.BAILOUT_SUGGESTION_EDIT_ARTICLE,e.editArticleUrl)},null,8,hr)])])}]]),Er=(0,n.defineComponent)({mixins:[Qe],name:"ErrorUnsupportedSnakType",components:{IconMessageBox:w,BailoutActions:vr},props:{snakType:{type:String,required:!0}},computed:{propertyLabel(){return(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el},pageTitle(){returnthis.rootModule.state.pageTitle},originalHref(){returnthis.rootModule.state.originalHref},messageHeaderKey(){switch(this.snakType){case"somevalue":returnthis.$messages.KEYS.SOMEVALUE_ERROR_HEAD;case"novalue":returnthis.$messages.KEYS.NOVALUE_ERROR_HEAD;default:thrownewError("No message for unsupported snak type "+this.snakType)}},messageBodyKey(){switch(this.snakType){case"somevalue":returnthis.$messages.KEYS.SOMEVALUE_ERROR_BODY;case"novalue":returnthis.$messages.KEYS.NOVALUE_ERROR_BODY;default:thrownewError("No message for unsupported snak type "+this.snakType)}}},compatConfig:{MODE:3}}),br=(0,v.Z)(Er,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("BailoutActions");return(0,n.openBlock)(),(0,n.createElementBlock)("div",cr,[(0,n.createVNode)(a,{class:"wb-db-unsupported-snaktype__message",type:"notice",inline:!0},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("p",{class:"wb-db-unsupported-snaktype__head",innerHTML:e.$messages.get(e.messageHeaderKey,e.propertyLabel)},null,8,ur),(0,n.createElementVNode)("p",{class:"wb-db-unsupported-snaktype__body",innerHTML:e.$messages.get(e.messageBodyKey,e.propertyLabel)},null,8,lr)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-unsupported-snaktype__bailout","original-href":e.originalHref,"page-title":e.pageTitle},null,8,["original-href","page-title"])])}]]);!function(e){e.BLOCKED_ON_CLIENT_PAGE="blocked_on_client_page",e.BLOCKED_ON_REPO_ITEM="blocked_on_repo_item",e.PAGE_CASCADE_PROTECTED="cascadeprotected_on_client_page",e.ITEM_FULLY_PROTECTED="protectedpage",e.ITEM_SEMI_PROTECTED="semiprotectedpage",e.ITEM_CASCADE_PROTECTED="cascadeprotected",e.UNKNOWN="unknown"}(mr||(mr={}));constSr={class:"wb-db-error-permission"},_r={class:"wb-db-error-permission__heading"},wr={class:"wb-db-error-permission-info"},Or=["innerHTML"],Rr=["innerHTML"];varTr=(0,n.defineComponent)({name:"ErrorPermissionInfo",props:{expandedByDefault:{required:!1,default:!1,type:Boolean},messageHeader:{type:String,required:!0},messageBody:{type:String,required:!0}},data:()=>({infoIsExpanded:!1}),created(){this.infoIsExpanded=this.expandedByDefault},methods:{toggleInfo(){this.infoIsExpanded=!this.infoIsExpanded}},compatConfig:{MODE:3}}),Ar=(0,v.Z)(Tr,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",wr,[(0,n.createElementVNode)("div",{class:"wb-db-error-permission-info__header",innerHTML:e.messageHeader},null,8,Or),(0,n.createElementVNode)("a",{class:(0,n.normalizeClass)(["wb-db-error-permission-info__toggle",["wb-db-error-permission-info__toggle--"+(e.infoIsExpanded?"open":"closed")]]),onClick:t[0]||(t[0]=(...t)=>e.toggleInfo&&e.toggleInfo(...t))},(0,n.toDisplayString)(this.$messages.getText(this.$messages.KEYS.PERMISSIONS_MORE_INFO)),3),e.infoIsExpanded?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"wb-db-error-permission-info__body",innerHTML:e.messageBody},null,8,Rr)):(0,n.createCommentVNode)("",!0)])}]]);constkr=["href"];varIr=(0,n.defineComponent)({name:"PageList",props:{pages:{type:Array,required:!0},router:{type:Object,required:!0}},compatConfig:{MODE:3}}),Pr=(0,v.Z)(Ir,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.pages,(t=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:t},[(0,n.createElementVNode)("a",{href:e.router.getPageUrl(t)},(0,n.toDisplayString)(t),9,kr)])))),128))])}]]);constNr=["href"],Cr={key:1};varDr=(0,n.defineComponent)({name:"UserLink",props:{userId:{type:Number,required:!0},userName:{type:String,required:!0},router:{type:Object,required:!0}},compatConfig:{MODE:3}}),xr=(0,v.Z)(Dr,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("span",null,[0!==e.userId?((0,n.openBlock)(),(0,n.createElementBlock)("a",{key:0,href:e.router.getPageUrl("Special:Redirect/user/"+e.userId)},[(0,n.createElementVNode)("bdi",null,(0,n.toDisplayString)(e.userName),1)],8,Nr)):((0,n.openBlock)(),(0,n.createElementBlock)("bdi",Cr,(0,n.toDisplayString)(e.userName),1))])}]]);constMr={[mr.ITEM_FULLY_PROTECTED]:{header:"PERMISSIONS_PROTECTED_HEADING",body:"PERMISSIONS_PROTECTED_BODY"},[mr.ITEM_SEMI_PROTECTED]:{header:"PERMISSIONS_SEMI_PROTECTED_HEADING",body:"PERMISSIONS_SEMI_PROTECTED_BODY"},[mr.ITEM_CASCADE_PROTECTED]:{header:"PERMISSIONS_CASCADE_PROTECTED_HEADING",body:"PERMISSIONS_CASCADE_PROTECTED_BODY"},[mr.BLOCKED_ON_CLIENT_PAGE]:{header:"PERMISSIONS_BLOCKED_ON_CLIENT_HEADING",body:"PERMISSIONS_BLOCKED_ON_CLIENT_BODY"},[mr.BLOCKED_ON_REPO_ITEM]:{header:"PERMISSIONS_BLOCKED_ON_REPO_HEADING",body:"PERMISSIONS_BLOCKED_ON_REPO_BODY"},[mr.PAGE_CASCADE_PROTECTED]:{header:"PERMISSIONS_PAGE_CASCADE_PROTECTED_HEADING",body:"PERMISSIONS_PAGE_CASCADE_PROTECTED_BODY"},[mr.UNKNOWN]:{header:"PERMISSIONS_ERROR_UNKNOWN_HEADING",body:"PERMISSIONS_ERROR_UNKNOWN_BODY"}};varLr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorPermission",components:{ErrorPermissionInfo:Ar},props:{permissionErrors:{type:Array,required:!0}},computed:{entityTitle(){returnthis.rootModule.state.entityTitle}},methods:{getMessageHeader(e){returnthis.$messages.get(this.$messages.KEYS[this.messageHeaderKey(e)],...this.messageHeaderParameters(e))},getMessageBody(e){returnthis.$messages.get(this.$messages.KEYS[this.messageBodyKey(e)],...this.messageBodyParameters(e))},buildTalkPageNamespace(){if(this.entityTitle.includes(":")){conste=this.entityTitle.split(":",2);return`${e[0]}_talk:${e[1]}`}return"Talk:"+this.entityTitle},messageHeaderKey:e=>Mr[e.type].header,messageBodyKey:e=>Mr[e.type].body,messageHeaderParameters(e){constt=[];switch(e.type){casemr.ITEM_FULLY_PROTECTED:t.push(this.$repoRouter.getPageUrl("Project:Page_protection_policy"),this.$repoRouter.getPageUrl("Project:Administrators"));break;casemr.ITEM_SEMI_PROTECTED:t.push(this.$repoRouter.getPageUrl("Project:Page_protection_policy"),this.$repoRouter.getPageUrl("Project:Autoconfirmed_users"));break;casemr.ITEM_CASCADE_PROTECTED:t.push("",this.$repoRouter.getPageUrl("Project:Administrators"))}returnt},messageBodyParameters(e){constt=[];switch(e.type){casemr.BLOCKED_ON_CLIENT_PAGE:{const{blockedBy:r,blockedById:o,blockReason:i,blockId:s,blockExpiry:a,blockedTimestamp:c}=e.info,u=this.bdi(r),l=(0,n.createApp)(xr,{userId:o,userName:r,router:this.$clientRouter}).mount(document.createElement("span")).$el;t.push(l,i,"",u,s.toString(),a,"",c);break}casemr.BLOCKED_ON_REPO_ITEM:{const{blockedBy:r,blockedById:o,blockReason:i,blockId:s,blockExpiry:a,blockedTimestamp:c}=e.info,u=this.bdi(r),l=(0,n.createApp)(xr,{userId:o,userName:r,router:this.$repoRouter}).mount(document.createElement("span")).$el;t.push(l,i,"",u,s.toString(),a,"",c,this.$repoRouter.getPageUrl("Project:Administrators"));break}casemr.ITEM_FULLY_PROTECTED:t.push(this.$repoRouter.getPageUrl("Project:Page_protection_policy"),this.$repoRouter.getPageUrl("Project:Project:Edit_warring"),this.$repoRouter.getPageUrl("Special:Log/protect",{page:this.entityTitle}),this.$repoRouter.getPageUrl(this.buildTalkPageNamespace()));break;casemr.ITEM_SEMI_PROTECTED:t.push(this.$repoRouter.getPageUrl("Special:Log/protect",{page:this.entityTitle}),this.$repoRouter.getPageUrl(this.buildTalkPageNamespace()));break;casemr.ITEM_CASCADE_PROTECTED:t.push(e.info.pages.length.toString(),this.convertToHtmlList(e.info.pages,this.$repoRouter));break;casemr.PAGE_CASCADE_PROTECTED:t.push(e.info.pages.length.toString(),this.convertToHtmlList(e.info.pages,this.$clientRouter))}returnt},bdi(e){constt=document.createElement("bdi");returnt.textContent=e,t},convertToHtmlList:(e,t)=>(0,n.createApp)(Pr,{pages:e,router:t}).mount(document.createElement("span")).$el},compatConfig:{MODE:3}}),Ur=(0,v.Z)(Lr,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("ErrorPermissionInfo");return(0,n.openBlock)(),(0,n.createElementBlock)("section",Sr,[(0,n.createElementVNode)("p",_r,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.PERMISSIONS_HEADING)),1),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.permissionErrors,((t,r)=>((0,n.openBlock)(),(0,n.createBlock)(a,{class:"wb-db-error-permission__info",key:r,"message-header":e.getMessageHeader(t),"message-body":e.getMessageBody(t),"expanded-by-default":1===e.permissionErrors.length},null,8,["message-header","message-body","expanded-by-default"])))),128))])}]]);constBr={class:"wb-db-error-unknown"},jr={class:"wb-db-error-unknown__heading"},$r=["innerHTML"];varGr=(0,n.defineComponent)({mixins:[Qe],name:"ReportIssue",computed:{message(){returnthis.$messages.get(this.$messages.KEYS.ERROR_REPORT,this.rootModule.getters.issueReportingLinkConfig.replace(/<body>/g,encodeURIComponent(this.rootModule.getters.reportIssueTemplateBody)),this.rootModule.state.pageUrl,this.rootModule.state.targetProperty,this.rootModule.state.entityTitle,this.rootModule.state.applicationErrors[0].type)}},compatConfig:{MODE:3}}),Vr=(0,v.Z)(Gr,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"wb-db-report-issue",innerHTML:e.message},null,8,$r)}]]),Fr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorUnknown",components:{EventEmittingButton:E,IconMessageBox:w,ReportIssue:Vr},emits:["relaunch"],methods:{relaunch(){this.$emit("relaunch")}},mounted(){this.rootModule.dispatch("trackErrorsFallingBackToGenericView")},compatConfig:{MODE:3}}),Hr=(0,v.Z)(Fr,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("ReportIssue"),u=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",Br,[(0,n.createElementVNode)("h2",jr,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.UNKNOWN_ERROR_HEADING)),1),(0,n.createVNode)(a,{class:"wb-db-error-unknown__message",type:"error"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.UNKNOWN_ERROR_MESSAGE)),1)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-error-unknown__report"}),(0,n.createVNode)(u,{class:"wb-db-error-unknown__relaunch",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.ERROR_RELOAD_BRIDGE),onClick:e.relaunch},null,8,["message","onClick"])])}]]);constYr={class:"wb-db-unsupported-datatype"},Kr=["innerHTML"],Wr=["innerHTML"];varZr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorUnsupportedDatatype",components:{IconMessageBox:w,BailoutActions:vr},props:{dataType:{type:String,required:!0}},computed:{pageTitle(){returnthis.rootModule.state.pageTitle},originalHref(){returnthis.rootModule.state.originalHref},propertyLabel(){return(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el}},compatConfig:{MODE:3}}),qr=(0,v.Z)(Zr,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("BailoutActions");return(0,n.openBlock)(),(0,n.createElementBlock)("div",Yr,[(0,n.createVNode)(a,{class:"wb-db-unsupported-datatype__message",type:"notice",inline:!0},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("p",{class:"wb-db-unsupported-datatype__head",innerHTML:e.$messages.get(e.$messages.KEYS.UNSUPPORTED_DATATYPE_ERROR_HEAD,e.propertyLabel)},null,8,Kr),(0,n.createElementVNode)("p",{class:"wb-db-unsupported-datatype__body",innerHTML:e.$messages.get(e.$messages.KEYS.UNSUPPORTED_DATATYPE_ERROR_BODY,e.propertyLabel,e.dataType)},null,8,Wr)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-unsupported-datatype__bailout","original-href":e.originalHref,"page-title":e.pageTitle},null,8,["original-href","page-title"])])}]]);constzr={class:"wb-db-deprecated-statement"},Jr=["innerHTML"],Qr=["innerHTML"];varXr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorDeprecatedStatement",components:{IconMessageBox:w,BailoutActions:vr},computed:{propertyLabel(){return(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el},pageTitle(){returnthis.rootModule.state.pageTitle},originalHref(){returnthis.rootModule.state.originalHref}},compatConfig:{MODE:3}}),en=(0,v.Z)(Xr,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("BailoutActions");return(0,n.openBlock)(),(0,n.createElementBlock)("div",zr,[(0,n.createVNode)(a,{class:"wb-db-deprecated-statement__message",type:"notice",inline:!0},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("p",{class:"wb-db-deprecated-statement__head",innerHTML:e.$messages.get(e.$messages.KEYS.DEPRECATED_STATEMENT_ERROR_HEAD,e.propertyLabel)},null,8,Jr),(0,n.createElementVNode)("p",{class:"wb-db-deprecated-statement__body",innerHTML:e.$messages.get(e.$messages.KEYS.DEPRECATED_STATEMENT_ERROR_BODY,e.propertyLabel)},null,8,Qr)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-deprecated-statement__bailout","original-href":e.originalHref,"page-title":e.pageTitle},null,8,["original-href","page-title"])])}]]);consttn={class:"wb-db-ambiguous-statement"},rn={class:"wb-db-ambiguous-statement__head"},nn=["innerHTML"];varon=(0,n.defineComponent)({mixins:[Qe],name:"ErrorAmbiguousStatement",components:{IconMessageBox:w,BailoutActions:vr},computed:{propertyLabel(){return(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el},pageTitle(){returnthis.rootModule.state.pageTitle},originalHref(){returnthis.rootModule.state.originalHref}},compatConfig:{MODE:3}}),sn=(0,v.Z)(on,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("BailoutActions");return(0,n.openBlock)(),(0,n.createElementBlock)("div",tn,[(0,n.createVNode)(a,{class:"wb-db-ambiguous-statement__message",type:"notice",inline:!0},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("p",rn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.AMBIGUOUS_STATEMENT_ERROR_HEAD)),1),(0,n.createElementVNode)("p",{class:"wb-db-ambiguous-statement__body",innerHTML:e.$messages.get(e.$messages.KEYS.AMBIGUOUS_STATEMENT_ERROR_BODY,e.propertyLabel)},null,8,nn)]),void0,!0),_:1}),(0,n.createVNode)(c,{"original-href":e.originalHref,"page-title":e.pageTitle},null,8,["original-href","page-title"])])}]]);constan={class:"wb-db-error-saving"},cn={class:"wb-db-error-saving__heading"},un={class:"wb-db-error-saving__buttons"};varln=(0,n.defineComponent)({mixins:[Qe],name:"ErrorSaving",components:{EventEmittingButton:E,IconMessageBox:w,ReportIssue:Vr},mounted(){this.rootModule.dispatch("trackSavingErrorsFallingBackToGenericView")},methods:{retrySave(){this.rootModule.dispatch("retrySave")},goBack(){this.rootModule.dispatch("goBackFromErrorToReady")}},compatConfig:{MODE:3}}),pn=(0,v.Z)(ln,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("ReportIssue"),u=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",an,[(0,n.createElementVNode)("h2",cn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_HEADING)),1),(0,n.createVNode)(a,{class:"wb-db-error-saving__message",type:"error"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_MESSAGE)),1)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-error-saving__report"}),(0,n.createElementVNode)("div",un,[(0,n.createVNode)(u,{class:"wb-db-error-saving__back",type:"neutral",size:"M",message:e.$messages.getText(e.$messages.KEYS.ERROR_GO_BACK),onClick:e.goBack},null,8,["message","onClick"]),(0,n.createVNode)(u,{class:"wb-db-error-saving__retry",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.ERROR_RETRY_SAVE),onClick:e.retrySave},null,8,["message","onClick"])])])}]]);constdn={class:"wb-db-error-saving-assertuser"},fn={class:"wb-db-error-saving-assertuser__heading"},gn={class:"wb-db-error-saving-assertuser__buttons"};varhn=(0,n.defineComponent)({mixins:[Qe],name:"ErrorSavingAssertUser",components:{EventEmittingButton:E,IconMessageBox:w},props:{loginUrl:{required:!0,type:String}},computed:{publishOrSave(){returnthis.rootModule.getters.config.usePublish?this.$messages.KEYS.SAVING_ERROR_ASSERTUSER_PUBLISH:this.$messages.KEYS.SAVING_ERROR_ASSERTUSER_SAVE}},methods:{proceed(){vare=this;return(0,O.Z)((function*(){yielde.rootModule.dispatch("stopAssertingUserWhenSaving"),yielde.rootModule.dispatch("retrySave")}))()},back(){this.rootModule.dispatch("goBackFromErrorToReady")}},compatConfig:{MODE:3}}),mn=(0,v.Z)(hn,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",dn,[(0,n.createElementVNode)("h2",fn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_ASSERTUSER_HEADING)),1),(0,n.createVNode)(a,{class:"wb-db-error-saving-assertuser__message",type:"warning"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_ASSERTUSER_MESSAGE)),1)]),void0,!0),_:1}),(0,n.createElementVNode)("div",gn,[(0,n.createVNode)(c,{class:"wb-db-error-saving-assertuser__proceed",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.publishOrSave),onClick:e.proceed},null,8,["message","onClick"]),(0,n.createVNode)(c,{class:"wb-db-error-saving-assertuser__login",type:"neutral",size:"M",href:e.loginUrl,message:e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_ASSERTUSER_LOGIN),"new-tab":!0,"prevent-default":!1,onClick:e.back},null,8,["href","message","onClick"]),(0,n.createVNode)(c,{class:"wb-db-error-saving-assertuser__back",type:"link",size:"M",message:e.$messages.getText(e.$messages.KEYS.SAVING_ERROR_ASSERTUSER_KEEP_EDITING),onClick:e.back},null,8,["message","onClick"])])])}]]);constyn={class:"wb-db-error-saving-edit-conflict"},vn={class:"wb-db-error-saving-edit-conflict__heading"};varEn=(0,n.defineComponent)({name:"ErrorSavingEditConflict",components:{EventEmittingButton:E,IconMessageBox:w},emits:["reload"],methods:{reload(){this.$emit("reload")}},compatConfig:{MODE:3}}),bn=(0,v.Z)(En,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("IconMessageBox"),c=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",yn,[(0,n.createElementVNode)("h2",vn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.EDIT_CONFLICT_ERROR_HEADING)),1),(0,n.createVNode)(a,{class:"wb-db-error-saving-edit-conflict__message",type:"error"},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.EDIT_CONFLICT_ERROR_MESSAGE)),1)]),void0,!0),_:1}),(0,n.createVNode)(c,{class:"wb-db-error-saving-edit-conflict__reload",type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.ERROR_RELOAD_PAGE),onClick:e.reload},null,8,["message","onClick"])])}]]);functionSn(e){returnObject.values(mr).includes(e.type)}var_n=(0,n.defineComponent)({mixins:[Qe],name:"ErrorWrapper",components:{ErrorUnsupportedSnakType:br,ErrorPermission:Ur,ErrorUnknown:Hr,ErrorUnsupportedDatatype:qr,ErrorDeprecatedStatement:en,ErrorAmbiguousStatement:sn,ErrorSaving:pn,ErrorSavingAssertUser:mn,ErrorSavingEditConflict:bn},emits:["reload","relaunch"],computed:{applicationErrors(){returnthis.rootModule.state.applicationErrors},permissionErrors(){returnthis.applicationErrors.filter(Sn)},unsupportedDatatypeError(){for(consteofthis.applicationErrors)if(e.type===N.UNSUPPORTED_DATATYPE)returne;returnnull},statementValueIsDeprecated(){returnthis.applicationErrors.some((e=>e.type===N.UNSUPPORTED_DEPRECATED_STATEMENT))},statementIsAmbiguous(){returnthis.applicationErrors.some((e=>e.type===N.UNSUPPORTED_AMBIGUOUS_STATEMENT))},unsupportedSnakTypeError(){for(consteofthis.applicationErrors)if(e.type===N.UNSUPPORTED_SNAK_TYPE)returne;returnnull},isGenericSavingError(){returnthis.rootModule.getters.isGenericSavingError},isAssertUserFailedError(){returnthis.rootModule.getters.isAssertUserFailedError},isEditConflictError(){returnthis.rootModule.getters.isEditConflictError},loginUrl(){returnthis.$clientRouter.getPageUrl("Special:UserLogin",{warning:this.$messages.KEYS.LOGIN_WARNING})}},methods:{relaunch(){this.$emit("relaunch")},reload(){this.$emit("reload")}},compatConfig:{MODE:3}}),wn=(0,v.Z)(_n,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("ErrorPermission"),c=(0,n.resolveComponent)("ErrorUnsupportedDatatype"),u=(0,n.resolveComponent)("ErrorDeprecatedStatement"),l=(0,n.resolveComponent)("ErrorAmbiguousStatement"),p=(0,n.resolveComponent)("ErrorUnsupportedSnakType"),d=(0,n.resolveComponent)("ErrorSaving"),f=(0,n.resolveComponent)("ErrorSavingAssertUser"),g=(0,n.resolveComponent)("ErrorSavingEditConflict"),h=(0,n.resolveComponent)("ErrorUnknown");return(0,n.openBlock)(),(0,n.createElementBlock)("section",ar,[e.permissionErrors.length?((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,"permission-errors":e.permissionErrors},null,8,["permission-errors"])):null!==e.unsupportedDatatypeError?((0,n.openBlock)(),(0,n.createBlock)(c,{key:1,"data-type":e.unsupportedDatatypeError.info.unsupportedDatatype},null,8,["data-type"])):e.statementValueIsDeprecated?((0,n.openBlock)(),(0,n.createBlock)(u,{key:2})):e.statementIsAmbiguous?((0,n.openBlock)(),(0,n.createBlock)(l,{key:3})):null!==e.unsupportedSnakTypeError?((0,n.openBlock)(),(0,n.createBlock)(p,{key:4,"snak-type":e.unsupportedSnakTypeError.info.snakType},null,8,["snak-type"])):e.isGenericSavingError?((0,n.openBlock)(),(0,n.createBlock)(d,{key:5})):e.isAssertUserFailedError?((0,n.openBlock)(),(0,n.createBlock)(f,{key:6,"login-url":e.loginUrl},null,8,["login-url"])):e.isEditConflictError?((0,n.openBlock)(),(0,n.createBlock)(g,{key:7,onReload:e.reload},null,8,["onReload"])):((0,n.openBlock)(),(0,n.createBlock)(h,{key:8,onRelaunch:e.relaunch},null,8,["onRelaunch"]))])}]]);constOn={class:"wb-db-license"},Rn={class:"wb-db-license__button"},Tn={class:"wb-db-license__text"},An={class:"wb-db-license__heading"},kn=["innerHTML"];varIn=(0,n.defineComponent)({name:"License",mixins:[Qe],components:{EventEmittingButton:E},emits:["close"],computed:{publishOrSave(){returnthis.rootModule.getters.config.usePublish?this.$messages.KEYS.PUBLISH_CHANGES:this.$messages.KEYS.SAVE_CHANGES},getBodyMessage(){vare,t,r;constn=this.rootModule.getters.config;returnthis.$messages.get(this.$messages.KEYS.LICENSE_BODY,this.publishOrSave,null!==(e=n.termsOfUseUrl)&&void0!==e?e:"",null!==(t=n.dataRightsUrl)&&void0!==t?t:"",null!==(r=n.dataRightsText)&&void0!==r?r:"")}},methods:{handleCloseButtonClick(e){this.$emit("close",e)}},compatConfig:{MODE:3}}),Pn=(0,v.Z)(In,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",On,[(0,n.createElementVNode)("span",Rn,[(0,n.createVNode)(a,{message:e.$messages.getText(e.$messages.KEYS.CANCEL),size:"M",type:"close",onClick:e.handleCloseButtonClick},null,8,["message","onClick"])]),(0,n.createElementVNode)("div",Tn,[(0,n.createElementVNode)("h2",An,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.LICENSE_HEADING)),1),(0,n.createElementVNode)("div",{class:"wb-db-license__body",innerHTML:e.getBodyMessage},null,8,kn)])])}]]);constNn={class:"wb-db-thankyou"},Cn={class:"wb-db-thankyou__head"},Dn={class:"wb-db-thankyou__body"},xn={class:"wb-db-thankyou__button"};varMn=(0,n.defineComponent)({name:"ThankYou",components:{EventEmittingButton:E},emits:["opened-reference-edit-on-repo"],props:{repoLink:{type:String,required:!0}},methods:{click(){this.$emit("opened-reference-edit-on-repo")}},compatConfig:{MODE:3}}),Ln=(0,v.Z)(Mn,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("EventEmittingButton");return(0,n.openBlock)(),(0,n.createElementBlock)("div",Nn,[(0,n.createElementVNode)("h2",Cn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.THANK_YOU_HEAD)),1),(0,n.createElementVNode)("p",Dn,(0,n.toDisplayString)(e.$messages.getText(e.$messages.KEYS.THANK_YOU_EDIT_REFERENCE_ON_REPO_BODY)),1),(0,n.createElementVNode)("div",xn,[(0,n.createVNode)(a,{type:"primaryProgressive",size:"M",message:e.$messages.getText(e.$messages.KEYS.THANK_YOU_EDIT_REFERENCE_ON_REPO_BUTTON),href:e.repoLink,"new-tab":!0,"prevent-default":!1,onClick:e.click},null,8,["message","href","onClick"])])])}]]);constUn=["innerHTML"],Bn={key:0,class:"app-header__back-button"},jn={class:"wb-ui-processdialog-header"},$n=(0,n.createElementVNode)("div",null,null,-1),Gn={class:"wb-ui-processdialog-header__title"},Vn=(0,n.createElementVNode)("span",null,null,-1),Fn=(0,n.createElementVNode)("div",null,null,-1);varHn,Yn=(0,n.defineComponent)({name:"ProcessDialogHeader",compatConfig:{MODE:3}}),Kn=(0,v.Z)(Yn,[["render",function(e,t,r,o,i,s){return(0,n.openBlock)(),(0,n.createElementBlock)("div",jn,[(0,n.renderSlot)(e.$slots,"safeAction",{},(()=>[$n])),(0,n.createElementVNode)("h1",Gn,[(0,n.renderSlot)(e.$slots,"title",{},(()=>[Vn]))]),(0,n.renderSlot)(e.$slots,"primaryAction",{},(()=>[Fn]))])}]]),Wn=(0,n.defineComponent)({mixins:[Qe],name:"AppHeader",components:{EventEmittingButton:E,ProcessDialogHeader:Kn},emits:["save","close","back"],computed:{title(){conste=(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el;returnthis.$messages.get(this.$messages.KEYS.BRIDGE_DIALOG_TITLE,e)},canGoBack(){returnthis.rootModule.getters.canGoToPreviousState},isSaved(){returnthis.rootModule.getters.applicationStatus===C.SAVED},hasError(){returnthis.rootModule.getters.applicationStatus===C.ERROR},hasWarning(){returnthis.rootModule.state.showWarningAnonymousEdit},publishOrSave(){returnthis.rootModule.getters.config.usePublish?this.$messages.KEYS.PUBLISH_CHANGES:this.$messages.KEYS.SAVE_CHANGES},canStartSaving(){returnthis.rootModule.getters.canStartSaving},isSaving(){returnthis.rootModule.getters.applicationStatus===C.SAVING}},methods:{close(){this.$emit("close")},save(){this.$emit("save")},back(){this.$emit("back")}},compatConfig:{MODE:3}}),Zn=(0,v.Z)(Wn,[["render",function(e,t,r,o,i,s){consta=(0,n.resolveComponent)("EventEmittingButton"),c=(0,n.resolveComponent)("ProcessDialogHeader");return(0,n.openBlock)(),(0,n.createBlock)(c,{class:"wb-db-app__header"},{title:(0,n.withCtx)((()=>[(0,n.createElementVNode)("span",{innerHTML:e.title},null,8,Un)])),primaryAction:(0,n.withCtx)((()=>[e.hasWarning||e.hasError||e.isSaved?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(a,{key:0,message:e.$messages.getText(e.publishOrSave),type:"primaryProgressive",size:"L",squary:!0,onClick:e.save,disabled:!e.canStartSaving},null,8,["message","onClick","disabled"]))])),safeAction:(0,n.withCtx)((()=>[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)({"app-header__close-button--desktop-only":e.canGoBack})},[(0,n.createVNode)(a,{message:e.$messages.getText(e.$messages.KEYS.CANCEL),type:"close",size:"L",squary:!0,disabled:e.isSaving,onClick:e.close},null,8,["message","disabled","onClick"])],2),e.canGoBack?((0,n.openBlock)(),(0,n.createElementBlock)("span",Bn,[(0,n.createVNode)(a,{message:e.$messages.getText(e.$messages.KEYS.ERROR_GO_BACK),type:"back",size:"L",squary:!0,onClick:e.back},null,8,["message","onClick"])])):(0,n.createCommentVNode)("",!0)])),_:1})}]]),qn=(0,n.defineComponent)({mixins:[Qe],name:"App",components:{WarningAnonymousEdit:nt,AppHeader:Zn,License:Pn,DataBridge:Xt,ErrorWrapper:wn,Loading:sr,ThankYou:Ln},data:()=>({licenseIsVisible:!1}),props:{emitter:{required:!0,type:Object}},computed:{isOverlayed(){returnthis.isSaving||this.licenseIsVisible},isSaving(){returnthis.rootModule.getters.applicationStatus===C.SAVING},isInitializing(){returnthis.rootModule.getters.applicationStatus===C.INITIALIZING},isSaved(){returnthis.rootModule.getters.applicationStatus===C.SAVED},hasError(){returnthis.rootModule.getters.applicationStatus===C.ERROR},hasErrorRequiringReload(){returnthis.hasError&&this.rootModule.getters.isEditConflictError},repoLink(){returnthis.rootModule.state.originalHref},showWarningAnonymousEdit(){returnthis.rootModule.state.showWarningAnonymousEdit},tempUserRedirectUrl(){returnthis.entityModule.state.tempUserRedirectUrl},loginUrl(){returnthis.$clientRouter.getPageUrl("Special:UserLogin",{returnto:this.rootModule.state.pageTitle})}},watch:{tempUserRedirectUrl(e){null!==e&&this.emitter.emit(ot.redirect,e)}},methods:{close(){this.isSaved?this.emitter.emit(ot.saved):this.hasErrorRequiringReload?this.reload():this.emitter.emit(ot.cancel)},back(){this.rootModule.dispatch("goBackFromErrorToReady")},dismissLicense(){this.licenseIsVisible=!1},save(){this.licenseIsVisible?(this.licenseIsVisible=!1,this.rootModule.dispatch("saveBridge")):this.licenseIsVisible=!0},openedReferenceEditOnRepo(){this.emitter.emit(ot.saved)},relaunch(){this.emitter.emit(ot.relaunch)},reload(){this.emitter.emit(ot.reload)},dismissWarningAnonymousEdit(){this.rootModule.dispatch("dismissWarningAnonymousEdit")}},compatConfig:{MODE:3}}),zn=(0,v.Z)(qn,[["render",function(e,t,r,a,c,u){constl=(0,n.resolveComponent)("AppHeader"),p=(0,n.resolveComponent)("WarningAnonymousEdit"),d=(0,n.resolveComponent)("ErrorWrapper"),f=(0,n.resolveComponent)("ThankYou"),g=(0,n.resolveComponent)("License"),h=(0,n.resolveComponent)("DataBridge"),m=(0,n.resolveComponent)("Loading");return(0,n.openBlock)(),(0,n.createElementBlock)("div",o,[(0,n.createVNode)(l,{onSave:e.save,onClose:e.close,onBack:e.back},null,8,["onSave","onClose","onBack"]),(0,n.createElementVNode)("div",i,[e.showWarningAnonymousEdit?((0,n.openBlock)(),(0,n.createBlock)(p,{key:0,"login-url":e.loginUrl,onProceed:e.dismissWarningAnonymousEdit},null,8,["login-url","onProceed"])):e.hasError?((0,n.openBlock)(),(0,n.createBlock)(d,{key:1,onRelaunch:e.relaunch,onReload:e.reload},null,8,["onRelaunch","onReload"])):e.isSaved?((0,n.openBlock)(),(0,n.createBlock)(f,{key:2,"repo-link":e.repoLink,onOpenedReferenceEditOnRepo:e.openedReferenceEditOnRepo},null,8,["repo-link","onOpenedReferenceEditOnRepo"])):((0,n.openBlock)(),(0,n.createBlock)(m,{key:3,"is-initializing":e.isInitializing,"is-saving":e.isSaving},{default:(0,n.withCtx)((()=>[e.licenseIsVisible?((0,n.openBlock)(),(0,n.createElementBlock)("div",s,[(0,n.createVNode)(g,{onClose:e.dismissLicense},null,8,["onClose"])])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(h,{class:(0,n.normalizeClass)(["wb-db-app__data-bridge",{"wb-db-app__data-bridge--overlayed":e.isOverlayed}])},null,8,["class"])]),void0,!0),_:1},8,["is-initializing","is-saving"]))])])}]]),Jn=r(7187);functionQn(e,t){e.config.globalProperties.$inLanguage=e=>{if(!e)thrownewError("mwLangCode must be provided");constr=t.resolve(e);return{lang:r.code,dir:r.directionality}}}classXn{constructor(e){(0,R.Z)(this,"KEYS",tt),(0,R.Z)(this,"messagesRepository",void0),this.messagesRepository=e}get(e,...t){returnthis.messagesRepository.get(e,...t)}getText(e,...t){returnthis.messagesRepository.getText(e,...t)}}functioneo(e,t){e.config.globalProperties.$messages=newXn(t)}functionto(e,t){e.config.globalProperties.$repoRouter=t}functionro(e,t){e.config.globalProperties.$clientRouter=t}classnoextendsError{}classooextendsError{constructor(e){super("request error"),(0,R.Z)(this,"error",void0),this.error=e}}classio{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}postWithEditTokenAndAssertUser(e){returnPromise.resolve(this.api.postWithEditToken(this.api.assertCurrentUser(this.mapParameters(e))).catch(this.mwApiRejectionToError))}postWithEditToken(e){returnPromise.resolve(this.api.postWithEditToken(this.mapParameters(e)).catch(this.mwApiRejectionToError))}get(e){returnPromise.resolve(this.api.get(this.mapParameters(e)).catch(this.mwApiRejectionToError))}mapParameters(e){constt={};for(constrofObject.keys(e)){constn=e[r];ninstanceofSet?t[r]=[...n]:t[r]=n}returnt}mwApiRejectionToError(e,t,r,n){switch(e){case"http":thrownewoo(t.xhr);case"ok-but-empty":thrownewno(t);default:{conste=t;throwe.error?newT([e.error]):e.errors?newT(e.errors):newno("mw.Api rejected but result does not contain error(s)")}}}}classsoextendsError{}functionao(e,t){if("object"!=typeofe.entities)thrownewno("Result not well formed.");constr=e.entities[t];if(!r)thrownewso("Result does not contain relevant entity.");if("missing"inr)thrownewso("Entity flagged missing in response.");returnr}functionco(e){throweinstanceofT&&1===e.errors.length&&"no-such-entity"===e.errors[0].code?newso("Entity flagged missing in response."):e}classuo{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}getEntity(e){vart=this;return(0,O.Z)((function*(){constr=ao(yieldt.api.get({action:"wbgetentities",ids:newSet([e]),props:newSet(["info","claims"])}).catch(co),e);returnnewNe(newPe(e,r.claims),r.lastrevid)}))()}}r(285),r(1637);classlo{constructor(e,t){(0,R.Z)(this,"api",void0),(0,R.Z)(this,"tags",void0),this.api=e,this.tags=t||void0}saveEntity(e,t,r=!0){constn={action:"wbeditentity",id:e.id,baserevid:null==t?void0:t.revisionId,data:JSON.stringify({claims:e.statements}),tags:this.tags};leto;returno=r?this.api.postWithEditTokenAndAssertUser(n):this.api.postWithEditToken(n),o.then((e=>{constt=e.tempuserredirect,r=t?newURL(t):void0;returnnewxe(newNe(newPe(e.entity.id,e.entity.claims),e.entity.lastrevid),r)}),(e=>{if(!(einstanceofT))throwe;thrownewA(e.errors.map((e=>{switch(e.code){case"assertanonfailed":return{type:N.ASSERT_ANON_FAILED,info:e};case"assertuserfailed":return{type:N.ASSERT_USER_FAILED,info:e};case"assertnameduserfailed":return{type:N.ASSERT_NAMED_USER_FAILED,info:e};case"editconflict":return{type:N.EDIT_CONFLICT,info:e};case"nosuchrevid":return{type:N.NO_SUCH_REVID,info:e};case"badtags":return{type:N.BAD_TAGS,info:e};default:return{type:N.SAVING_FAILED,info:e}}})))}))}}classpo{constructor(e){(0,R.Z)(this,"api",void0),(0,R.Z)(this,"requests",void0),this.api=e,this.requests=[]}get(e){for(constoofthis.requests){constt=this.mergeParams(o.params,e);if(!1!==t)returno.params=t,o.promise}lett,r;constn=newPromise(((e,n)=>{t=e,r=n}));returnthis.requests.push({params:e,promise:n,resolve:t,reject:r}),1===this.requests.length&&Promise.resolve().then((()=>this.flush())),n}flush(){for(const{params:e,resolve:t,reject:r}ofthis.requests)this.api.get(e).then(t,r);this.requests.length=0}mergeParams(e,t){constr=newSet([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),n={};for(constoofr){constr=void0!==e[o],i=void0!==t[o];if(!r||!i){n[o]=(r?e:t)[o];continue}consts=e[o],a=t[o];if(sinstanceofSet&&ainstanceofSet){conste=newSet;n[o]=e;for(consttof[s,a])for(constroft)e.add(String(r));continue}if(sinstanceofArray||ainstanceofArray)return!1;if("boolean"==typeofs&&"boolean"==typeofa){if(s===a){n[o]=s;continue}return!1}constc=String(s);if(c!==String(a))return!1;n[o]=c}returnn}}classfo{constructor(e){(0,R.Z)(this,"getUrl",void0),this.getUrl=e}getPageUrl(e,t){returnthis.getUrl(e,t)}}classgo{constructor(e){(0,R.Z)(this,"apiWritingRepository",void0),this.apiWritingRepository=e}saveEntity(e,t,r=!0){varn=this;return(0,O.Z)((function*(){returnt&&(e=n.trimEntity(e,t.entity)),n.apiWritingRepository.saveEntity(e,t,r)}))()}trimEntity(e,t){if(e.id!==t.id)thrownewno("Entity ID mismatch");constr=this.trimStatementMap(e.statements,t.statements);returnnewPe(e.id,r)}trimStatementMap(e,t){constr={},n=newSet([...Object.keys(e),...Object.keys(t)]);for(constoofn)if(oint){constn=t[o];if(!(oine))thrownewno("Cannot remove statement group");{constt=e[o],i=this.trimStatementGroup(t,n);null!==i&&(r[o]=i)}}elser[o]=e[o];returnr}trimStatementGroup(e,t){constr=function(e){constt={};for(constrofe)r.id&&(t[r.id]=r);returnt}(t),n=[];for(constoofe){if(!o.id){n.push(o);continue}conste=r[o.id];if(deleter[o.id],e){constt=this.trimStatement(o,e);null!==t&&n.push(t)}elsen.push(o)}if(Object.keys(r).length)thrownewno("Cannot remove statement");returnn.length?n:null}trimStatement(e,t){returnHe()(e,t)?null:e}}classho{constructor(){(0,R.Z)(this,"services",{})}set(e,t){this.services[e]=t}get(e){if(void0===this.services[e])thrownewError(e+" is undefined");returnthis.services[e]}}classmo{constructor(e,t){(0,R.Z)(this,"directionalityResolver",void0),(0,R.Z)(this,"bcp47Resolver",void0),this.directionalityResolver=t.getDir,this.bcp47Resolver=e.bcp47}resolve(e){return{code:this.bcp47Resolver(e),directionality:this.directionalityResolver(e)}}}classyo{constructor(e,t,r){(0,R.Z)(this,"repoConfig",void0),(0,R.Z)(this,"wikiUrlencode",void0),(0,R.Z)(this,"querySerializer",void0),this.repoConfig=e,this.wikiUrlencode=t,this.querySerializer=r}getPageUrl(e,t){letr,n;returnt&&(n=this.querySerializer(t)),r=n?this.wikiScript()+"?title="+this.wikiUrlencode(e)+"&"+n:this.repoConfig.url+this.repoConfig.articlePath.replace("$1",this.wikiUrlencode(e).replace(/\$/g,"$$$$")),r}wikiScript(e="index.php"){returnthis.repoConfig.url+this.repoConfig.scriptPath+"/"+e}}classvo{constructor(e){(0,R.Z)(this,"mwMessages",void0),this.mwMessages=e}get(e,...t){returnthis.mwMessages(e,...t).parse()}getText(e,...t){returnthis.mwMessages(e,...t).text()}}classEo{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}getRepoConfiguration(){vare=this;return(0,O.Z)((function*(){constt=yielde.api.get({action:"query",meta:newSet(["wbdatabridgeconfig"]),errorformat:"raw",formatversion:2});if(e.responseWarnsAboutDisabledRepoConfiguration(t))thrownewno("Result indicates repo API is disabled (see dataBridgeEnabled).");if(!e.isWellFormedResponse(t.query))thrownewno("Result not well formed.");returnt.query.wbdatabridgeconfig}))()}responseWarnsAboutDisabledRepoConfiguration(e){returnArray.isArray(e.warnings)&&e.warnings.some((e=>"unrecognizedvalues"===e.code&&"query"===e.module))}isWellFormedResponse(e){vart,r;constn=e;return"object"==typeofn.wbdatabridgeconfig&&"string"==typeofn.wbdatabridgeconfig.dataRightsUrl&&"string"==typeofn.wbdatabridgeconfig.dataRightsText&&"string"==typeofn.wbdatabridgeconfig.termsOfUseUrl&&"number"==typeof(null===(t=n.wbdatabridgeconfig.dataTypeLimits)||void0===t||null===(r=t.string)||void0===r?void0:r.maxLength)}}functionbo(e){return(e||"error-type-undefined").toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/^[^a-z0-9]|[^a-z0-9]$/g,"")}classSo{constructor(e){(0,R.Z)(this,"tracker",void0),this.tracker=e}trackPropertyDatatype(e){this.tracker.increment("datatype."+e)}trackError(e){this.tracker.increment("error.all."+bo(e))}trackRecoveredError(e){this.tracker.increment("error.recovered."+bo(e))}trackUnknownError(e){this.tracker.increment("error.unknown."+bo(e))}trackSavingUnknownError(e){this.tracker.increment("error.onsave.unknown."+bo(e))}}class_o{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}getDataType(e){vart=this;return(0,O.Z)((function*(){returnao(yieldt.api.get({action:"wbgetentities",props:newSet(["datatype"]),ids:newSet([e]),errorformat:"raw",formatversion:2}).catch(co),e).datatype}))()}}classwoextendsError{}classOo{constructor(e,t){(0,R.Z)(this,"forLanguageCode",void0),(0,R.Z)(this,"api",void0),this.forLanguageCode=e,this.api=t}getLabel(e){vart=this;return(0,O.Z)((function*(){constr=ao(yieldt.api.get({action:"wbgetentities",props:newSet(["labels"]),ids:newSet([e]),languages:newSet([t.forLanguageCode]),languagefallback:!0,errorformat:"raw",formatversion:2}).catch(co),e);if(!(t.forLanguageCodeinr.labels))thrownewwo(`Could not find label for language '${t.forLanguageCode}'.`);constn=r.labels[t.forLanguageCode];return{value:n.value,language:n.language}}))()}}!function(e){e[e.PROTECTED_PAGE=1]="PROTECTED_PAGE",e[e.CASCADE_PROTECTED_PAGE=2]="CASCADE_PROTECTED_PAGE",e[e.BLOCKED=3]="BLOCKED",e[e.UNKNOWN=-1]="UNKNOWN"}(Hn||(Hn={}));classRo{constructor(e,t){(0,R.Z)(this,"repoRepository",void0),(0,R.Z)(this,"clientRepository",void0),this.repoRepository=e,this.clientRepository=t}canUseBridgeForItemAndPage(e,t){varr=this;return(0,O.Z)((function*(){const[n,o]=yieldPromise.all([r.repoRepository.getPermissionErrors(e),r.clientRepository.getPermissionErrors(t)]),i=[];returni.push(...n.map(r.repoErrorToMissingPermissionsError,r)),i.push(...o.map(r.clientErrorToMissingPermissionsError,r)),i}))()}repoErrorToMissingPermissionsError(e){switch(e.type){caseHn.PROTECTED_PAGE:return{type:e.semiProtected?mr.ITEM_SEMI_PROTECTED:mr.ITEM_FULLY_PROTECTED,info:{right:e.right}};caseHn.CASCADE_PROTECTED_PAGE:return{type:mr.ITEM_CASCADE_PROTECTED,info:{pages:e.pages}};caseHn.BLOCKED:return{type:mr.BLOCKED_ON_REPO_ITEM,info:this.mapBlockInfoFromPermissionErrorTypeToPageNotEditable(e.blockinfo)};caseHn.UNKNOWN:returnthis.unknownPermissionErrorToMissingPermissionsError(e)}}clientErrorToMissingPermissionsError(e){switch(e.type){caseHn.PROTECTED_PAGE:thrownewno("Data Bridge should never have been opened on this protected page!");caseHn.CASCADE_PROTECTED_PAGE:return{type:mr.PAGE_CASCADE_PROTECTED,info:{pages:e.pages}};caseHn.BLOCKED:return{type:mr.BLOCKED_ON_CLIENT_PAGE,info:this.mapBlockInfoFromPermissionErrorTypeToPageNotEditable(e.blockinfo)};caseHn.UNKNOWN:returnthis.unknownPermissionErrorToMissingPermissionsError(e)}}mapBlockInfoFromPermissionErrorTypeToPageNotEditable(e){return{blockId:e.blockid,blockedBy:e.blockedby,blockedTimestamp:e.blockedtimestamp,blockExpiry:e.blockexpiry,blockPartial:e.blockpartial,blockReason:e.blockreason,blockedById:e.blockedbyid}}unknownPermissionErrorToMissingPermissionsError(e){return{type:mr.UNKNOWN,info:{code:e.code,messageKey:e.messageKey,messageParams:e.messageParams}}}}classToextendsError{constructor(e){super(`The title '${e}' is invalid.`),(0,R.Z)(this,"title",void0),this.title=e}}classAo{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}getPermissionErrors(e){vart=this;return(0,O.Z)((function*(){constr=(yieldt.api.get({action:"query",titles:newSet([e]),prop:newSet(["info"]),meta:newSet(["siteinfo"]),intestactions:newSet(["edit"]),intestactionsdetail:"full",siprop:newSet(["restrictions"]),errorformat:"raw",formatversion:2})).query,n=function(e,t){for(constrofe.normalized||[])if(r.from===t){t=r.to;break}for(constrofe.pages||[])if(r.title===t)returnr;returnnull}(r,e);if(null===n)thrownewno(`API did not return information for page '${e}'.`);if(n.invalid)thrownewTo(e);!function(e){if(!("actions"ine))thrownewno("API info did not return test actions.")}(n),function(e){if(!("restrictions"ine))thrownewno("API siteinfo did not return restrictions.")}(r);consto=r.restrictions.semiprotectedlevels.map(t.rewriteCompatibilityRight);returnn.actions.edit.map((e=>t.apiErrorToPermissionError(e,o)))}))()}apiErrorToPermissionError(e,t){switch(function(e){if(!("key"ine)||!("params"ine))thrownewno("API returned wrong error format.")}(e),e.code){case"protectedpage":{constr=e.params[0];return{type:Hn.PROTECTED_PAGE,right:r,semiProtected:t.includes(r)}}case"cascadeprotected":{constt=this.parseWikitextPagesList(e.params[1]);if(t.length!==e.params[0])thrownewno(`API reported ${e.params[0]} cascade-protected pages but we parsed ${t.length}.`);return{type:Hn.CASCADE_PROTECTED_PAGE,pages:t}}case"blocked":return{type:Hn.BLOCKED,blockinfo:e.data.blockinfo};default:return{type:Hn.UNKNOWN,code:e.code,messageKey:e.key,messageParams:e.params}}}rewriteCompatibilityRight(e){switch(e){case"sysop":return"editprotected";case"autoconfirmed":return"editsemiprotected";default:returne}}parseWikitextPagesList(e){constt=e.split("\n"),r=t.pop();if(""!==r)thrownewno("Wikitext did not end in blank line: "+r);returnt.map((e=>{if(!e.startsWith("*"))thrownewno("Line does not look like a list item: "+e);lett=e.slice(1);if(t.startsWith(" ")&&(t=t.slice(1)),!t.startsWith("[[")||!t.endsWith("]]"))thrownewno("List item does not look like a wikilink: "+t);letr=t.slice(2,-2);returnr.startsWith(":")&&(r=r.slice(1)),r}))}}classko{constructor(e){(0,R.Z)(this,"api",void0),(0,R.Z)(this,"TITLES_LIMIT",50),this.api=e}purge(e){if(e.length>this.TITLES_LIMIT)thrownewno(`You cannot purge more than ${this.TITLES_LIMIT} titles`);returnPromise.resolve(this.api.post({action:"purge",titles:e,forcelinkupdate:!0,errorformat:"raw",formatversion:2}))}}classIo{constructor(e,t){(0,R.Z)(this,"api",void0),(0,R.Z)(this,"language",void0),this.api=e,this.language=t}getRenderedReferences(e){returnPromise.all(e.map((e=>this.renderSingleReference(e))))}renderSingleReference(e){vart=this;return(0,O.Z)((function*(){constr=yieldt.api.get({action:"wbformatreference",reference:JSON.stringify(e),style:"internal-data-bridge",outputformat:"html",errorformat:"raw",formatversion:2,uselang:t.language});if(!t.isWellFormedFormatReferenceResponse(r))thrownewno("Reference formatting server response not well formed.");returnr.wbformatreference.html}))()}isWellFormedFormatReferenceResponse(e){vart;return"string"==typeof(null==e||null===(t=e.wbformatreference)||void0===t?void0:t.html)}}classPo{constructor(e){(0,R.Z)(this,"api",void0),this.api=e}getTempUserConfiguration(){vare=this;return(0,O.Z)((function*(){constt=yielde.api.get({action:"query",meta:newSet(["siteinfo"]),siprop:newSet(["autocreatetempuser"]),errorformat:"raw",formatversion:2});if(!e.isWellFormedResponse(t.query))thrownewno("Result not well formed.");returnt.query.autocreatetempuser}))()}isWellFormedResponse(e){constt=e;return"object"==typeoft.autocreatetempuser&&"boolean"==typeoft.autocreatetempuser.enabled}}functionNo(e,t,r){constn=newho,o=e.mw.config.get("wbRepo"),i=newyo(o,e.mw.util.wikiUrlencode,e.$.param),s=newe.mw.Api;if(void0===e.mw.ForeignApi)thrownewError("mw.ForeignApi was not loaded!");consta=newe.mw.ForeignApi(`${o.url}${o.scriptPath}/api.php`),c=newio(a),u=newpo(c);n.set("readingEntityRepository",newuo(u)),n.set("writingEntityRepository",newgo(newlo(c,0===t.length?void0:t)));constl=e.mw.config.get("wgPageContentLanguage");if(n.set("entityLabelRepository",newOo(l,u)),n.set("propertyDatatypeRepository",new_o(u)),void0===e.$.uls)thrownewError("$.uls was not loaded!");n.set("languageInfoRepository",newmo(e.mw.language,e.$.uls.data)),n.set("messagesRepository",newvo(e.mw.message)),n.set("wikibaseRepoConfigRepository",newEo(u)),n.set("tempUserConfigRepository",newPo(u)),n.set("tracker",newSo(r));constp=newio(s);n.set("editAuthorizationChecker",newRo(newAo(u),newAo(p))),n.set("referencesRenderingRepository",newIo(p,l)),n.set("repoRouter",i),n.set("clientRouter",newfo(e.mw.util.getUrl));constd=newko(s);returnn.set("purgeTitles",d),n}functionCo(e,t,r,n){consto=ze(n);o.dispatch("initBridge",r);consti=newJn.EventEmitter,s=e(zn,{emitter:i});returns.use(o),function(e,t,r,n,o){e.use(Qn,t),e.use(eo,r),e.use(to,n),e.use(ro,o)}(s,n.get("languageInfoRepository"),n.get("messagesRepository"),n.get("repoRouter"),n.get("clientRouter")),s.mount(t.containerSelector),i.on(et.relaunch,(()=>{o.dispatch("relaunchBridge",r)})),i.on(et.redirect,(e=>{window.location.href=e.toString()})),i}},1924:(e,t,r)=>{"use strict";varn=r(210),o=r(5559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){varr=n(e,!!t);return"function"==typeofr&&i(e,".prototype.")>-1?o(r):r}},5559:(e,t,r)=>{"use strict";varn=r(8612),o=r(210),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||n.call(s,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){vart=a(n,s,arguments);if(c&&u){varr=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}returnt};varp=function(){returna(n,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},1223:(e,t,r)=>{varn=r(5112),o=r(30),i=r(3070),s=n("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},1530:(e,t,r)=>{"use strict";varn=r(8710).charAt;e.exports=function(e,t,r){returnt+(r?n(e,t).length:1)}},8457:(e,t,r)=>{"use strict";varn=r(7854),o=r(9974),i=r(6916),s=r(7908),a=r(3411),c=r(7659),u=r(4411),l=r(6244),p=r(6135),d=r(8554),f=r(1246),g=n.Array;e.exports=function(e){vart=s(e),r=u(this),n=arguments.length,h=n>1?arguments[1]:void0,m=void0!==h;m&&(h=o(h,n>2?arguments[2]:void0));vary,v,E,b,S,_,w=f(t),O=0;if(!w||this==g&&c(w))for(y=l(t),v=r?newthis(y):g(y);y>O;O++)_=m?h(t[O],O):t[O],p(v,O,_);elsefor(S=(b=d(t,w)).next,v=r?newthis:[];!(E=i(S,b)).done;O++)_=m?a(b,h,[E.value,O],!0):E.value,p(v,O,_);returnv.length=O,v}},1589:(e,t,r)=>{varn=r(7854),o=r(1400),i=r(6244),s=r(6135),a=n.Array,c=Math.max;e.exports=function(e,t,r){for(varn=i(e),u=o(t,n),l=o(void0===r?n:r,n),p=a(c(l-u,0)),d=0;u<l;u++,d++)s(p,d,e[u]);returnp.length=d,p}},4362:(e,t,r)=>{varn=r(1589),o=Math.floor,i=function(e,t){varr=e.length,c=o(r/2);returnr<8?s(e,t):a(e,i(n(e,0,c),t),i(n(e,c),t),t)},s=function(e,t){for(varr,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}returne},a=function(e,t,r,n){for(varo=t.length,i=r.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?n(t[s],r[a])<=0?t[s++]:r[a++]:s<o?t[s++]:r[a++];returne};e.exports=i},3411:(e,t,r)=>{varn=r(9670),o=r(9212);e.exports=function(e,t,r,i){try{returni?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},7741:(e,t,r)=>{varn=r(1702)("".replace),o=String(Error("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,s=i.test(o);e.exports=function(e,t){if(s&&"string"==typeofe)for(;t--;)e=n(e,i,"");returne}},8544:(e,t,r)=>{varn=r(7293);e.exports=!n((function(){functione(){}returne.prototype.constructor=null,Object.getPrototypeOf(newe)!==e.prototype}))},4994:(e,t,r)=>{"use strict";varn=r(3383).IteratorPrototype,o=r(30),i=r(9114),s=r(8003),a=r(7497),c=function(){returnthis};e.exports=function(e,t,r,u){varl=t+" Iterator";returne.prototype=o(n,{next:i(+!u,r)}),s(e,l,!1,!0),a[l]=c,e}},6135:(e,t,r)=>{"use strict";varn=r(4948),o=r(3070),i=r(9114);e.exports=function(e,t,r){vars=n(t);sine?o.f(e,s,i(0,r)):e[s]=r}},654:(e,t,r)=>{"use strict";varn=r(2109),o=r(6916),i=r(1913),s=r(6530),a=r(614),c=r(4994),u=r(9518),l=r(7674),p=r(8003),d=r(8880),f=r(1320),g=r(5112),h=r(7497),m=r(3383),y=s.PROPER,v=s.CONFIGURABLE,E=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,S=g("iterator"),_=function(){returnthis};e.exports=function(e,t,r,s,g,m,w){c(r,t,s);varO,R,T,A=function(e){if(e===g&&C)returnC;if(!b&&einP)returnP[e];switch(e){case"keys":case"values":case"entries":returnfunction(){returnnewr(this,e)}}returnfunction(){returnnewr(this)}},k=t+" Iterator",I=!1,P=e.prototype,N=P[S]||P["@@iterator"]||g&&P[g],C=!b&&N||A(g),D="Array"==t&&P.entries||N;if(D&&(O=u(D.call(newe)))!==Object.prototype&&O.next&&(i||u(O)===E||(l?l(O,E):a(O[S])||f(O,S,_)),p(O,k,!0,!0),i&&(h[k]=_)),y&&"values"==g&&N&&"values"!==N.name&&(!i&&v?d(P,"name","values"):(I=!0,C=function(){returno(N,this)})),g)if(R={values:A("values"),keys:m?C:A("keys"),entries:A("entries")},w)for(TinR)(b||I||!(TinP))&&f(P,T,R[T]);elsen({target:t,proto:!0,forced:b||I},R);returni&&!w||P[S]===C||f(P,S,C,{name:g}),h[t]=C,R}},8324:e=>{e.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}},8509:(e,t,r)=>{varn=r(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void0:o},2914:(e,t,r)=>{varn=r(7293),o=r(9114);e.exports=!n((function(){vare=Error("a");return!("stack"ine)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},7007:(e,t,r)=>{"use strict";r(4916);varn=r(1702),o=r(1320),i=r(2261),s=r(7293),a=r(5112),c=r(8880),u=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,p){vard=a(e),f=!s((function(){vart={};returnt[d]=function(){return7},7!=""[e](t)})),g=f&&!s((function(){vart=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){returnr},r.flags="",r[d]=/./[d]),r.exec=function(){returnt=!0,null},r[d](""),!t}));if(!f||!g||r){varh=n(/./[d]),m=t(d,""[e],(function(e,t,r,o,s){vara=n(e),c=t.exec;returnc===i||c===l.exec?f&&!s?{done:!0,value:h(t,r,o)}:{done:!0,value:a(r,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(l,d,m[1])}p&&c(l[d],"sham",!0)}},647:(e,t,r)=>{varn=r(1702),o=r(7908),i=Math.floor,s=n("".charAt),a=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,p,d){varf=r+e.length,g=n.length,h=l;returnvoid0!==p&&(p=o(p),h=u),a(d,h,(function(o,a){varu;switch(s(a,0)){case"$":return"$";case"&":returne;case"`":returnc(t,0,r);case"'":returnc(t,f);case"<":u=p[c(a,1,-1)];break;default:varl=+a;if(0===l)returno;if(l>g){vard=i(l/10);return0===d?o:d<=g?void0===n[d-1]?s(a,1):n[d-1]+s(a,1):o}u=n[l-1]}returnvoid0===u?"":u}))}},8340:(e,t,r)=>{varn=r(111),o=r(8880);e.exports=function(e,t){n(t)&&"cause"int&&o(e,"cause",t.cause)}},3383:(e,t,r)=>{"use strict";varn,o,i,s=r(7293),a=r(614),c=r(30),u=r(9518),l=r(1320),p=r(5112),d=r(1913),f=p("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):g=!0),null==n||s((function(){vare={};returnn[f].call(e)!==e}))?n={}:d&&(n=c(n)),a(n[f])||l(n,f,(function(){returnthis})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},590:(e,t,r)=>{varn=r(7293),o=r(5112),i=r(1913),s=o("iterator");e.exports=!n((function(){vare=newURL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";returne.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(newURLSearchParams("?a=1"))||!t[s]||"a"!==newURL("https://a@b").username||"b"!==newURLSearchParams(newURLSearchParams("a=b")).get("a")||"xn--e1aybc"!==newURL("http://тест").host||"#%D0%B1"!==newURL("http://a#б").hash||"a1c3"!==r||"x"!==newURL("http://x",void0).host}))},6277:(e,t,r)=>{varn=r(1340);e.exports=function(e,t){returnvoid0===e?arguments.length<2?"":t:n(e)}},1574:(e,t,r)=>{"use strict";varn=r(9781),o=r(1702),i=r(6916),s=r(7293),a=r(1956),c=r(5181),u=r(5296),l=r(7908),p=r(8361),d=Object.assign,f=Object.defineProperty,g=o([].concat);e.exports=!d||s((function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;vare={},t={},r=Symbol();returne[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=a(d({},t)).join("")}))?function(e,t){for(varr=l(e),o=arguments.length,s=1,d=c.f,f=u.f;o>s;)for(varh,m=p(arguments[s++]),y=d?g(a(m),d(m)):a(m),v=y.length,E=0;v>E;)h=y[E++],n&&!i(f,m,h)||(r[h]=m[h]);returnr}:d},6048:(e,t,r)=>{varn=r(9781),o=r(3353),i=r(3070),s=r(9670),a=r(5656),c=r(1956);t.f=n&&!o?Object.defineProperties:function(e,t){s(e);for(varr,n=a(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);returne}},8006:(e,t,r)=>{varn=r(6324),o=r(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){returnn(e,o)}},9518:(e,t,r)=>{varn=r(7854),o=r(2597),i=r(614),s=r(7908),a=r(6200),c=r(8544),u=a("IE_PROTO"),l=n.Object,p=l.prototype;e.exports=c?l.getPrototypeOf:function(e){vart=s(e);if(o(t,u))returnt[u];varr=t.constructor;returni(r)&&tinstanceofr?r.prototype:tinstanceofl?p:null}},7651:(e,t,r)=>{varn=r(7854),o=r(6916),i=r(9670),s=r(614),a=r(4326),c=r(2261),u=n.TypeError;e.exports=function(e,t){varr=e.exec;if(s(r)){varn=o(r,e,t);returnnull!==n&&i(n),n}if("RegExp"===a(e))returno(c,e,t);throwu("RegExp#exec called on incompatible receiver")}},8710:(e,t,r)=>{varn=r(1702),o=r(9303),i=r(1340),s=r(4488),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){returnfunction(t,r){varn,l,p=i(s(t)),d=o(r),f=p.length;returnd<0||d>=f?e?"":void0:(n=c(p,d))<55296||n>56319||d+1===f||(l=c(p,d+1))<56320||l>57343?e?a(p,d):n:e?u(p,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3197:(e,t,r)=>{"use strict";varn=r(7854),o=r(1702),i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=n.RangeError,u=o(s.exec),l=Math.floor,p=String.fromCharCode,d=o("".charCodeAt),f=o([].join),g=o([].push),h=o("".replace),m=o("".split),y=o("".toLowerCase),v=function(e){returne+22+75*(e<26)},E=function(e,t,r){varn=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;returnl(n+36*e/(e+38))},b=function(e){vart,r,n=[],o=(e=function(e){for(vart=[],r=0,n=e.length;r<n;){varo=d(e,r++);if(o>=55296&&o<=56319&&r<n){vari=d(e,r++);56320==(64512&i)?g(t,((1023&o)<<10)+(1023&i)+65536):(g(t,o),r--)}elseg(t,o)}returnt}(e)).length,i=128,s=0,u=72;for(t=0;t<e.length;t++)(r=e[t])<128&&g(n,p(r));varh=n.length,m=h;for(h&&g(n,"-");m<o;){vary=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<y&&(y=r);varb=m+1;if(y-i>l((2147483647-s)/b))throwc(a);for(s+=(y-i)*b,i=y,t=0;t<e.length;t++){if((r=e[t])<i&&++s>2147483647)throwc(a);if(r==i){for(varS=s,_=36;;){varw=_<=u?1:_>=u+26?26:_-u;if(S<w)break;varO=S-w,R=36-w;g(n,p(v(w+O%R))),S=l(O/R),_+=36}g(n,p(v(S))),u=E(s,b,m==h),s=0,m++}}s++,i++}returnf(n,"")};e.exports=function(e){vart,r,n=[],o=m(h(y(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],g(n,u(i,r)?"xn--"+b(r):r);returnf(n,".")}},8053:(e,t,r)=>{varn=r(7854).TypeError;e.exports=function(e,t){if(e<t)thrown("Not enough arguments");returne}},9191:(e,t,r)=>{"use strict";varn=r(5005),o=r(2597),i=r(8880),s=r(7976),a=r(7674),c=r(9920),u=r(9587),l=r(6277),p=r(8340),d=r(7741),f=r(2914),g=r(1913);e.exports=function(e,t,r,h){varm=h?2:1,y=e.split("."),v=y[y.length-1],E=n.apply(null,y);if(E){varb=E.prototype;if(!g&&o(b,"cause")&&deleteb.cause,!r)returnE;varS=n("Error"),_=t((function(e,t){varr=l(h?t:e,void0),n=h?newE(e):newE;returnvoid0!==r&&i(n,"message",r),f&&i(n,"stack",d(n.stack,2)),this&&s(b,this)&&u(n,this,_),arguments.length>m&&p(n,arguments[m]),n}));if(_.prototype=b,"Error"!==v&&(a?a(_,S):c(_,S,{name:!0})),c(_,E),!g)try{b.name!==v&&i(b,"name",v),b.constructor=_}catch(e){}return_}}},6992:(e,t,r)=>{"use strict";varn=r(5656),o=r(1223),i=r(7497),s=r(9909),a=r(3070).f,c=r(654),u=r(1913),l=r(9781),p=s.set,d=s.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){p(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){vare=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void0,{value:void0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");varf=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&l&&"values"!==f.name)try{a(f,"name",{value:"values"})}catch(e){}},1703:(e,t,r)=>{varn=r(2109),o=r(7854),i=r(2104),s=r(9191),a=o.WebAssembly,c=7!==Error("e",{cause:7}).cause,u=function(e,t){varr={};r[e]=s(e,t,c),n({global:!0,forced:c},r)},l=function(e,t){if(a&&a[e]){varr={};r[e]=s("WebAssembly."+e,t,c),n({target:"WebAssembly",stat:!0,forced:c},r)}};u("Error",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("EvalError",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("RangeError",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("ReferenceError",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("SyntaxError",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("TypeError",(function(e){returnfunction(t){returni(e,this,arguments)}})),u("URIError",(function(e){returnfunction(t){returni(e,this,arguments)}})),l("CompileError",(function(e){returnfunction(t){returni(e,this,arguments)}})),l("LinkError",(function(e){returnfunction(t){returni(e,this,arguments)}})),l("RuntimeError",(function(e){returnfunction(t){returni(e,this,arguments)}}))},8862:(e,t,r)=>{varn=r(2109),o=r(7854),i=r(5005),s=r(2104),a=r(1702),c=r(7293),u=o.Array,l=i("JSON","stringify"),p=a(/./.exec),d=a("".charAt),f=a("".charCodeAt),g=a("".replace),h=a(1..toString),m=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,E=function(e,t,r){varn=d(r,t-1),o=d(r,t+1);returnp(y,e)&&!p(v,o)||p(v,e)&&!p(y,n)?"\\u"+h(f(e,0),16):e},b=c((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&n({target:"JSON",stat:!0,forced:b},{stringify:function(e,t,r){for(varn=0,o=arguments.length,i=u(o);n<o;n++)i[n]=arguments[n];vara=s(l,null,i);return"string"==typeofa?g(a,m,E):a}})},9720:(e,t,r)=>{varn=r(2109),o=r(4699).entries;n({target:"Object",stat:!0},{entries:function(e){returno(e)}})},4916:(e,t,r)=>{"use strict";varn=r(2109),o=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8783:(e,t,r)=>{"use strict";varn=r(8710).charAt,o=r(1340),i=r(9909),s=r(654),a=i.set,c=i.getterFor("String Iterator");s(String,"String",(function(e){a(this,{type:"String Iterator",string:o(e),index:0})}),(function(){vare,t=c(this),r=t.string,o=t.index;returno>=r.length?{value:void0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},5306:(e,t,r)=>{"use strict";varn=r(2104),o=r(6916),i=r(1702),s=r(7007),a=r(7293),c=r(9670),u=r(614),l=r(9303),p=r(7466),d=r(1340),f=r(4488),g=r(1530),h=r(8173),m=r(647),y=r(7651),v=r(5112)("replace"),E=Math.max,b=Math.min,S=i([].concat),_=i([].push),w=i("".indexOf),O=i("".slice),R="$0"==="a".replace(/./,"$0"),T=!!/./[v]&&""===/./[v]("a","$0");s("replace",(function(e,t,r){vari=T?"$":"$0";return[function(e,r){varn=f(this),i=null==e?void0:h(e,v);returni?o(i,e,n,r):o(t,d(n),e,r)},function(e,o){vars=c(this),a=d(e);if("string"==typeofo&&-1===w(o,i)&&-1===w(o,"$<")){varf=r(t,s,a,o);if(f.done)returnf.value}varh=u(o);h||(o=d(o));varv=s.global;if(v){varR=s.unicode;s.lastIndex=0}for(varT=[];;){varA=y(s,a);if(null===A)break;if(_(T,A),!v)break;""===d(A[0])&&(s.lastIndex=g(a,p(s.lastIndex),R))}for(vark,I="",P=0,N=0;N<T.length;N++){for(varC=d((A=T[N])[0]),D=E(b(l(A.index),a.length),0),x=[],M=1;M<A.length;M++)_(x,void0===(k=A[M])?k:String(k));varL=A.groups;if(h){varU=S([C],x,D,a);void0!==L&&_(U,L);varB=d(n(o,void0,U))}elseB=m(C,a,D,x,L,o);D>=P&&(I+=O(a,P,D)+B,P=D+C.length)}returnI+O(a,P)}]}),!!a((function(){vare=/./;returne.exec=function(){vare=[];returne.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!R||T)},3948:(e,t,r)=>{varn=r(7854),o=r(8324),i=r(8509),s=r(6992),a=r(8880),c=r(5112),u=c("iterator"),l=c("toStringTag"),p=s.values,d=function(e,t){if(e){if(e[u]!==p)try{a(e,u,p)}catch(t){e[u]=p}if(e[l]||a(e,l,t),o[t])for(varrins)if(e[r]!==s[r])try{a(e,r,s[r])}catch(t){e[r]=s[r]}}};for(varfino)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},1637:(e,t,r)=>{"use strict";r(6992);varn=r(2109),o=r(7854),i=r(5005),s=r(6916),a=r(1702),c=r(590),u=r(1320),l=r(2248),p=r(8003),d=r(4994),f=r(9909),g=r(5787),h=r(614),m=r(2597),y=r(9974),v=r(648),E=r(9670),b=r(111),S=r(1340),_=r(30),w=r(9114),O=r(8554),R=r(1246),T=r(8053),A=r(5112),k=r(4362),I=A("iterator"),P=f.set,N=f.getterFor("URLSearchParams"),C=f.getterFor("URLSearchParamsIterator"),D=i("fetch"),x=i("Request"),M=i("Headers"),L=x&&x.prototype,U=M&&M.prototype,B=o.RegExp,j=o.TypeError,$=o.decodeURIComponent,G=o.encodeURIComponent,V=a("".charAt),F=a([].join),H=a([].push),Y=a("".replace),K=a([].shift),W=a([].splice),Z=a("".split),q=a("".slice),z=/\+/g,J=Array(4),Q=function(e){returnJ[e-1]||(J[e-1]=B("((?:%[\\da-f]{2}){"+e+"})","gi"))},X=function(e){try{return$(e)}catch(t){returne}},ee=function(e){vart=Y(e,z," "),r=4;try{return$(t)}catch(e){for(;r;)t=Y(t,Q(r--),X);returnt}},te=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ne=function(e){returnre[e]},oe=function(e){returnY(G(e),te,ne)},ie=d((function(e,t){P(this,{type:"URLSearchParamsIterator",iterator:O(N(e).entries),kind:t})}),"Iterator",(function(){vare=C(this),t=e.kind,r=e.iterator.next(),n=r.value;returnr.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),se=function(e){this.entries=[],this.url=null,void0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeofe?"?"===V(e,0)?q(e,1):e:S(e)))};se.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){vart,r,n,o,i,a,c,u=R(e);if(u)for(r=(t=O(e,u)).next;!(n=s(r,t)).done;){if(i=(o=O(E(n.value))).next,(a=s(i,o)).done||(c=s(i,o)).done||!s(i,o).done)throwj("Expected sequence with length 2");H(this.entries,{key:S(a.value),value:S(c.value)})}elsefor(varline)m(e,l)&&H(this.entries,{key:l,value:S(e[l])})},parseQuery:function(e){if(e)for(vart,r,n=Z(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Z(t,"="),H(this.entries,{key:ee(K(r)),value:ee(F(r,"="))}))},serialize:function(){for(vare,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],H(r,oe(e.key)+"="+oe(e.value));returnF(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};varae=function(){g(this,ce);vare=arguments.length>0?arguments[0]:void0;P(this,newse(e))},ce=ae.prototype;if(l(ce,{append:function(e,t){T(arguments.length,2);varr=N(this);H(r.entries,{key:S(e),value:S(t)}),r.updateURL()},delete:function(e){T(arguments.length,1);for(vart=N(this),r=t.entries,n=S(e),o=0;o<r.length;)r[o].key===n?W(r,o,1):o++;t.updateURL()},get:function(e){T(arguments.length,1);for(vart=N(this).entries,r=S(e),n=0;n<t.length;n++)if(t[n].key===r)returnt[n].value;returnnull},getAll:function(e){T(arguments.length,1);for(vart=N(this).entries,r=S(e),n=[],o=0;o<t.length;o++)t[o].key===r&&H(n,t[o].value);returnn},has:function(e){T(arguments.length,1);for(vart=N(this).entries,r=S(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){T(arguments.length,1);for(varr,n=N(this),o=n.entries,i=!1,s=S(e),a=S(t),c=0;c<o.length;c++)(r=o[c]).key===s&&(i?W(o,c--,1):(i=!0,r.value=a));i||H(o,{key:s,value:a}),n.updateURL()},sort:function(){vare=N(this);k(e.entries,(function(e,t){returne.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(vart,r=N(this).entries,n=y(e,arguments.length>1?arguments[1]:void0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){returnnewie(this,"keys")},values:function(){returnnewie(this,"values")},entries:function(){returnnewie(this,"entries")}},{enumerable:!0}),u(ce,I,ce.entries,{name:"entries"}),u(ce,"toString",(function(){returnN(this).serialize()}),{enumerable:!0}),p(ae,"URLSearchParams"),n({global:!0,forced:!c},{URLSearchParams:ae}),!c&&h(M)){varue=a(U.has),le=a(U.set),pe=function(e){if(b(e)){vart,r=e.body;if("URLSearchParams"===v(r))returnt=e.headers?newM(e.headers):newM,ue(t,"content-type")||le(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(e,{body:w(0,S(r)),headers:w(0,t)})}returne};if(h(D)&&n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){returnD(e,arguments.length>1?pe(arguments[1]):{})}}),h(x)){varde=function(e){returng(this,L),newx(e,arguments.length>1?pe(arguments[1]):{})};L.constructor=de,de.prototype=L,n({global:!0,forced:!0},{Request:de})}}e.exports={URLSearchParams:ae,getState:N}},285:(e,t,r)=>{"use strict";r(8783);varn,o=r(2109),i=r(9781),s=r(590),a=r(7854),c=r(9974),u=r(1702),l=r(6048).f,p=r(1320),d=r(5787),f=r(2597),g=r(1574),h=r(8457),m=r(1589),y=r(8710).codeAt,v=r(3197),E=r(1340),b=r(8003),S=r(1637),_=r(9909),w=_.set,O=_.getterFor("URL"),R=S.URLSearchParams,T=S.getState,A=a.URL,k=a.TypeError,I=a.parseInt,P=Math.floor,N=Math.pow,C=u("".charAt),D=u(/./.exec),x=u([].join),M=u(1..toString),L=u([].pop),U=u([].push),B=u("".replace),j=u([].shift),$=u("".split),G=u("".slice),V=u("".toLowerCase),F=u([].unshift),H=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,W=/^0x/i,Z=/^[0-7]+$/,q=/^\d+$/,z=/^[\da-f]+$/i,J=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Q=/[\0\t\n\r #/:<>?@[\\\]^|]/,X=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ee=/[\t\n\r]/g,te=function(e){vart,r,n,o;if("number"==typeofe){for(t=[],r=0;r<4;r++)F(t,e%256),e=P(e/256);returnx(t,".")}if("object"==typeofe){for(t="",n=function(e){for(vart=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);returno>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=M(e[r],16),r<7&&(t+=":")));return"["+t+"]"}returne},re={},ne=g({},re,{" ":1,'"':1,"<":1,">":1,"`":1}),oe=g({},ne,{"#":1,"?":1,"{":1,"}":1}),ie=g({},oe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),se=function(e,t){varr=y(e,0);returnr>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},ae={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){varr;return2==e.length&&D(H,C(e,0))&&(":"==(r=C(e,1))||!t&&"|"==r)},ue=function(e){vart;returne.length>1&&ce(G(e,0,2))&&(2==e.length||"/"===(t=C(e,2))||"\\"===t||"?"===t||"#"===t)},le=function(e){return"."===e||"%2e"===V(e)},pe={},de={},fe={},ge={},he={},me={},ye={},ve={},Ee={},be={},Se={},_e={},we={},Oe={},Re={},Te={},Ae={},ke={},Ie={},Pe={},Ne={},Ce=function(e,t,r){varn,o,i,s=E(e);if(t){if(o=this.parse(s))throwk(o);this.searchParams=null}else{if(void0!==r&&(n=newCe(r,!0)),o=this.parse(s,null,n))throwk(o);(i=T(newR)).bindURL(this),this.searchParams=i}};Ce.prototype={type:"URL",parse:function(e,t,r){varo,i,s,a,c,u=this,l=t||pe,p=0,d="",g=!1,y=!1,v=!1;for(e=E(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=B(e,X,"")),e=B(e,ee,""),o=h(e);p<=o.length;){switch(i=o[p],l){casepe:if(!i||!D(H,i)){if(t)return"Invalid scheme";l=fe;continue}d+=V(i),l=de;break;casede:if(i&&(D(Y,i)||"+"==i||"-"==i||"."==i))d+=V(i);else{if(":"!=i){if(t)return"Invalid scheme";d="",l=fe,p=0;continue}if(t&&(u.isSpecial()!=f(ae,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)returnvoid(u.isSpecial()&&ae[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?l=Oe:u.isSpecial()&&r&&r.scheme==u.scheme?l=ge:u.isSpecial()?l=ve:"/"==o[p+1]?(l=he,p++):(u.cannotBeABaseURL=!0,U(u.path,""),l=Ie)}break;casefe:if(!r||r.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=m(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Ne;break}l="file"==r.scheme?Oe:me;continue;casege:if("/"!=i||"/"!=o[p+1]){l=me;continue}l=Ee,p++;break;casehe:if("/"==i){l=be;break}l=ke;continue;caseme:if(u.scheme=r.scheme,i==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=m(r.path),u.query=r.query;elseif("/"==i||"\\"==i&&u.isSpecial())l=ye;elseif("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=m(r.path),u.query="",l=Pe;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=m(r.path),u.path.length--,l=ke;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=m(r.path),u.query=r.query,u.fragment="",l=Ne}break;caseye:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=ke;continue}l=be}elsel=Ee;break;caseve:if(l=Ee,"/"!=i||"/"!=C(d,p+1))continue;p++;break;caseEe:if("/"!=i&&"\\"!=i){l=be;continue}break;casebe:if("@"==i){g&&(d="%40"+d),g=!0,s=h(d);for(varb=0;b<s.length;b++){varS=s[b];if(":"!=S||v){var_=se(S,ie);v?u.password+=_:u.username+=_}elsev=!0}d=""}elseif(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(g&&""==d)return"Invalid authority";p-=h(d).length+1,d="",l=Se}elsed+=i;break;caseSe:case_e:if(t&&"file"==u.scheme){l=Te;continue}if(":"!=i||y){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==d)return"Invalid host";if(t&&""==d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d))returna;if(d="",l=Ae,t)return;continue}"["==i?y=!0:"]"==i&&(y=!1),d+=i}else{if(""==d)return"Invalid host";if(a=u.parseHost(d))returna;if(d="",l=we,t==_e)return}break;casewe:if(!D(K,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=d){varw=I(d,10);if(w>65535)return"Invalid port";u.port=u.isSpecial()&&w===ae[u.scheme]?null:w,d=""}if(t)return;l=Ae;continue}return"Invalid port"}d+=i;break;caseOe:if(u.scheme="file","/"==i||"\\"==i)l=Re;else{if(!r||"file"!=r.scheme){l=ke;continue}if(i==n)u.host=r.host,u.path=m(r.path),u.query=r.query;elseif("?"==i)u.host=r.host,u.path=m(r.path),u.query="",l=Pe;else{if("#"!=i){ue(x(m(o,p),""))||(u.host=r.host,u.path=m(r.path),u.shortenPath()),l=ke;continue}u.host=r.host,u.path=m(r.path),u.query=r.query,u.fragment="",l=Ne}}break;caseRe:if("/"==i||"\\"==i){l=Te;break}r&&"file"==r.scheme&&!ue(x(m(o,p),""))&&(ce(r.path[0],!0)?U(u.path,r.path[0]):u.host=r.host),l=ke;continue;caseTe:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&ce(d))l=ke;elseif(""==d){if(u.host="",t)return;l=Ae}else{if(a=u.parseHost(d))returna;if("localhost"==u.host&&(u.host=""),t)return;d="",l=Ae}continue}d+=i;break;caseAe:if(u.isSpecial()){if(l=ke,"/"!=i&&"\\"!=i)continue}elseif(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=ke,"/"!=i))continue}elseu.fragment="",l=Ne;elseu.query="",l=Pe;break;caseke:if(i==n||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=V(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||U(u.path,"")):le(d)?"/"==i||"\\"==i&&u.isSpecial()||U(u.path,""):("file"==u.scheme&&!u.path.length&&ce(d)&&(u.host&&(u.host=""),d=C(d,0)+":"),U(u.path,d)),d="","file"==u.scheme&&(i==n||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)j(u.path);"?"==i?(u.query="",l=Pe):"#"==i&&(u.fragment="",l=Ne)}elsed+=se(i,oe);break;caseIe:"?"==i?(u.query="",l=Pe):"#"==i?(u.fragment="",l=Ne):i!=n&&(u.path[0]+=se(i,re));break;casePe:t||"#"!=i?i!=n&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":se(i,re)):(u.fragment="",l=Ne);break;caseNe:i!=n&&(u.fragment+=se(i,ne))}p++}},parseHost:function(e){vart,r,n;if("["==C(e,0)){if("]"!=C(e,e.length-1))return"Invalid host";if(!(t=function(e){vart,r,n,o,i,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,p=0,d=function(){returnC(e,p)};if(":"==d()){if(":"!=C(e,1))return;p+=2,l=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=r=0;r<4&&D(z,d());)t=16*t+I(d(),16),p++,r++;if("."==d()){if(0==r)return;if(p-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;p++}if(!D(K,d()))return;for(;D(K,d());){if(i=I(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;p++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==d()){if(p++,!d())return}elseif(d())return;c[u++]=t}else{if(null!==l)return;p++,l=++u}}if(null!==l)for(s=u-l,u=7;0!=u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;elseif(8!=u)return;returnc}(G(e,1,-1))))return"Invalid host";this.host=t}elseif(this.isSpecial()){if(e=v(e),D(J,e))return"Invalid host";if(null===(t=function(e){vart,r,n,o,i,s,a,c=$(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)returne;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))returne;if(i=10,o.length>1&&"0"==C(o,0)&&(i=D(W,o)?16:8,o=G(o,8==i?1:2)),""===o)s=0;else{if(!D(10==i?q:8==i?Z:z,o))returne;s=I(o,i)}U(r,s)}for(n=0;n<t;n++)if(s=r[n],n==t-1){if(s>=N(256,5-t))returnnull}elseif(s>255)returnnull;for(a=L(r),n=0;n<r.length;n++)a+=r[n]*N(256,3-n);returna}(e)))return"Invalid host";this.host=t}else{if(D(Q,e))return"Invalid host";for(t="",r=h(e),n=0;n<r.length;n++)t+=se(r[n],re);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){returnf(ae,this.scheme)},shortenPath:function(){vare=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ce(e[0],!0)||e.length--},serialize:function(){vare=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,s=e.path,a=e.query,c=e.fragment,u=t+":";returnnull!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=te(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+x(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(e){vart=this.parse(e);if(t)throwk(t);this.searchParams.update()},getOrigin:function(){vare=this.scheme,t=this.port;if("blob"==e)try{returnnewDe(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+te(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){returnthis.scheme+":"},setProtocol:function(e){this.parse(E(e)+":",pe)},getUsername:function(){returnthis.username},setUsername:function(e){vart=h(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(varr=0;r<t.length;r++)this.username+=se(t[r],ie)}},getPassword:function(){returnthis.password},setPassword:function(e){vart=h(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(varr=0;r<t.length;r++)this.password+=se(t[r],ie)}},getHost:function(){vare=this.host,t=this.port;returnnull===e?"":null===t?te(e):te(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){vare=this.host;returnnull===e?"":te(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_e)},getPort:function(){vare=this.port;returnnull===e?"":E(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=E(e))?this.port=null:this.parse(e,we))},getPathname:function(){vare=this.path;returnthis.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ae))},getSearch:function(){vare=this.query;returne?"?"+e:""},setSearch:function(e){""==(e=E(e))?this.query=null:("?"==C(e,0)&&(e=G(e,1)),this.query="",this.parse(e,Pe)),this.searchParams.update()},getSearchParams:function(){returnthis.searchParams.facade},getHash:function(){vare=this.fragment;returne?"#"+e:""},setHash:function(e){""!=(e=E(e))?("#"==C(e,0)&&(e=G(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};varDe=function(e){vart=d(this,xe),r=arguments.length>1?arguments[1]:void0,n=w(t,newCe(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},xe=De.prototype,Me=function(e,t){return{get:function(){returnO(this)[e]()},set:t&&function(e){returnO(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&l(xe,{href:Me("serialize","setHref"),origin:Me("getOrigin"),protocol:Me("getProtocol","setProtocol"),username:Me("getUsername","setUsername"),password:Me("getPassword","setPassword"),host:Me("getHost","setHost"),hostname:Me("getHostname","setHostname"),port:Me("getPort","setPort"),pathname:Me("getPathname","setPathname"),search:Me("getSearch","setSearch"),searchParams:Me("getSearchParams"),hash:Me("getHash","setHash")}),p(xe,"toJSON",(function(){returnO(this).serialize()}),{enumerable:!0}),p(xe,"toString",(function(){returnO(this).serialize()}),{enumerable:!0}),A){varLe=A.createObjectURL,Ue=A.revokeObjectURL;Le&&p(De,"createObjectURL",c(Le,A)),Ue&&p(De,"revokeObjectURL",c(Ue,A))}b(De,"URL"),o({global:!0,forced:!s,sham:!i},{URL:De})},251:(e,t,r)=>{"use strict";varn=r(2215),o=r(2584),i=r(609),s=r(8420),a=r(2847),c=r(5826),u=r(8923),l=r(3679),p=r(210),d=r(1924),f=r(3483),g=r(3216),h=r(7478),m=r(6430),y=r(3533),v=d("Date.prototype.getTime"),E=Object.getPrototypeOf,b=d("Object.prototype.toString"),S=p("%Set%",!0),_=d("Map.prototype.has",!0),w=d("Map.prototype.get",!0),O=d("Map.prototype.size",!0),R=d("Set.prototype.add",!0),T=d("Set.prototype.delete",!0),A=d("Set.prototype.has",!0),k=d("Set.prototype.size",!0);functionI(e,t,r,n){for(varo,i=g(e);(o=i.next())&&!o.done;)if(x(t,o.value,r,n))returnT(e,o.value),!0;return!1}functionP(e){returnvoid0===e?null:"object"!=typeofe?"symbol"!=typeofe&&("string"!=typeofe&&"number"!=typeofe||+e==+e):void0}functionN(e,t,r,n,o,i){vars=P(r);if(null!=s)returns;vara=w(t,s),c=y({},o,{strict:!1});return!(void0===a&&!_(t,s)||!x(n,a,c,i))&&!_(e,s)&&x(n,a,c,i)}functionC(e,t,r){varn=P(r);returnnull!=n?n:A(t,n)&&!A(e,n)}functionD(e,t,r,n,o,i){for(vars,a,c=g(e);(s=c.next())&&!s.done;)if(x(r,a=s.value,o,i)&&x(n,w(t,a),o,i))returnT(e,a),!0;return!1}functionx(e,t,r,p){vard=r||{};if(d.strict?i(e,t):e===t)return!0;if(l(e)!==l(t))return!1;if(!e||!t||"object"!=typeofe&&"object"!=typeoft)returnd.strict?i(e,t):e==t;varh,T=p.has(e),P=p.has(t);if(T&&P){if(p.get(e)===p.get(t))return!0}elseh={};returnT||p.set(e,h),P||p.set(t,h),function(e,t,r,i){varl,p;if(typeofe!=typeoft)return!1;if(null==e||null==t)return!1;if(b(e)!==b(t))return!1;if(o(e)!==o(t))return!1;vard=c(e),h=c(t);if(d!==h)return!1;varT=einstanceofError,P=tinstanceofError;if(T!==P)return!1;if((T||P)&&(e.name!==t.name||e.message!==t.message))return!1;varL=s(e),U=s(t);if(L!==U)return!1;if((L||U)&&(e.source!==t.source||a(e)!==a(t)))return!1;varB=u(e),j=u(t);if(B!==j)return!1;if((B||j)&&v(e)!==v(t))return!1;if(r.strict&&E&&E(e)!==E(t))return!1;if(m(e)!==m(t))return!1;var$=M(e),G=M(t);if($!==G)return!1;if($||G){if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}if(typeofe!=typeoft)return!1;varV=n(e),F=n(t);if(V.length!==F.length)return!1;for(V.sort(),F.sort(),l=V.length-1;l>=0;l--)if(V[l]!=F[l])return!1;for(l=V.length-1;l>=0;l--)if(p=V[l],!x(e[p],t[p],r,i))return!1;varH=f(e),Y=f(t);returnH===Y&&("Set"===H||"Set"===Y?function(e,t,r,n){if(k(e)!==k(t))return!1;for(varo,i,s,a=g(e),c=g(t);(o=a.next())&&!o.done;)if(o.value&&"object"==typeofo.value)s||(s=newS),R(s,o.value);elseif(!A(t,o.value)){if(r.strict)return!1;if(!C(e,t,o.value))return!1;s||(s=newS),R(s,o.value)}if(s){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeofi.value){if(!I(s,i.value,r.strict,n))return!1}elseif(!r.strict&&!A(e,i.value)&&!I(s,i.value,r.strict,n))return!1;return0===k(s)}return!0}(e,t,r,i):"Map"!==H||function(e,t,r,n){if(O(e)!==O(t))return!1;for(varo,i,s,a,c,u,l=g(e),p=g(t);(o=l.next())&&!o.done;)if(a=o.value[0],c=o.value[1],a&&"object"==typeofa)s||(s=newS),R(s,a);elseif(void0===(u=w(t,a))&&!_(t,a)||!x(c,u,r,n)){if(r.strict)return!1;if(!N(e,t,a,c,r,n))return!1;s||(s=newS),R(s,a)}if(s){for(;(i=p.next())&&!i.done;)if(a=i.value[0],u=i.value[1],a&&"object"==typeofa){if(!D(s,e,a,u,r,n))return!1}elseif(!(r.strict||e.has(a)&&x(w(e,a),u,r,n)||D(s,e,a,u,y({},r,{strict:!1}),n)))return!1;return0===k(s)}return!0}(e,t,r,i))}(e,t,d,p)}functionM(e){return!(!e||"object"!=typeofe||"number"!=typeofe.length)&&"function"==typeofe.copy&&"function"==typeofe.slice&&!(e.length>0&&"number"!=typeofe[0])&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}e.exports=function(e,t,r){returnx(e,t,r,h())}},4289:(e,t,r)=>{"use strict";varn=r(2215),o="function"==typeofSymbol&&"symbol"==typeofSymbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,c=r(1044)(),u=a&&c,l=function(e,t,r,n){varo;(!(tine)||"function"==typeof(o=n)&&"[object Function]"===i.call(o)&&n())&&(u?a(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},p=function(e,t){varr=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(vara=0;a<i.length;a+=1)l(e,i[a],t[i[a]],r[i[a]])};p.supportsDescriptors=!!u,e.exports=p},7187:e=>{"use strict";vart,r="object"==typeofReflect?Reflect:null,n=r&&"function"==typeofr.apply?r.apply:function(e,t,r){returnFunction.prototype.apply.call(e,t,r)};t=r&&"function"==typeofr.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){returnObject.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){returnObject.getOwnPropertyNames(e)};varo=Number.isNaN||function(e){returne!=e};functioni(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){returnnewPromise((function(r,n){functiono(r){e.removeListener(t,i),n(r)}functioni(){"function"==typeofe.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}h(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeofe.on&&h(e,"error",t,r)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void0,i.prototype._eventsCount=0,i.prototype._maxListeners=void0;vars=10;functiona(e){if("function"!=typeofe)thrownewTypeError('The "listener" argument must be of type Function. Received type '+typeofe)}functionc(e){returnvoid0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}functionu(e,t,r,n){varo,i,s,u;if(a(r),void0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void0===s)s=i[t]=r,++e._eventsCount;elseif("function"==typeofs?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;varl=newError("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}returne}functionl(){if(!this.fired)returnthis.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}functionp(e,t,r){varn={fired:!1,wrapFn:void0,target:e,type:t,listener:r},o=l.bind(n);returno.listener=r,n.wrapFn=o,o}functiond(e,t,r){varn=e._events;if(void0===n)return[];varo=n[t];returnvoid0===o?[]:"function"==typeofo?r?[o.listener||o]:[o]:r?function(e){for(vart=newArray(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];returnt}(o):g(o,o.length)}functionf(e){vart=this._events;if(void0!==t){varr=t[e];if("function"==typeofr)return1;if(void0!==r)returnr.length}return0}functiong(e,t){for(varr=newArray(t),n=0;n<t;++n)r[n]=e[n];returnr}functionh(e,t,r,n){if("function"==typeofe.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeofe.addEventListener)thrownewTypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeofe);e.addEventListener(t,(functiono(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){returns},set:function(e){if("number"!=typeofe||e<0||o(e))thrownewRangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void0},i.prototype.setMaxListeners=function(e){if("number"!=typeofe||e<0||o(e))thrownewRangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");returnthis._maxListeners=e,this},i.prototype.getMaxListeners=function(){returnc(this)},i.prototype.emit=function(e){for(vart=[],r=1;r<arguments.length;r++)t.push(arguments[r]);varo="error"===e,i=this._events;if(void0!==i)o=o&&void0===i.error;elseif(!o)return!1;if(o){vars;if(t.length>0&&(s=t[0]),sinstanceofError)throws;vara=newError("Unhandled error."+(s?" ("+s.message+")":""));throwa.context=s,a}varc=i[e];if(void0===c)return!1;if("function"==typeofc)n(c,this,t);else{varu=c.length,l=g(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){returnu(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){returnu(this,e,t,!0)},i.prototype.once=function(e,t){returna(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){returna(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){varr,n,o,i,s;if(a(t),void0===(n=this._events))returnthis;if(void0===(r=n[e]))returnthis;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(deleten[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));elseif("function"!=typeofr){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)returnthis;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void0!==n.removeListener&&this.emit("removeListener",e,s||t)}returnthis},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){vart,r,n;if(void0===(r=this._events))returnthis;if(void0===r.removeListener)return0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):deleter[e]),this;if(0===arguments.length){varo,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);returnthis.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);elseif(void0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);returnthis},i.prototype.listeners=function(e){returnd(this,e,!0)},i.prototype.rawListeners=function(e){returnd(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeofe.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){returnthis._eventsCount>0?t(this._events):[]}},9804:e=>{vart=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))thrownewTypeError("iterator must be a function");vari=e.length;if(i===+i)for(vars=0;s<i;s++)n.call(o,e[s],s,e);elsefor(varaine)t.call(e,a)&&n.call(o,e[a],a,e)}},7648:e=>{"use strict";vart="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){varo=this;if("function"!=typeofo||"[object Function]"!==n.call(o))thrownewTypeError(t+o);for(vari,s=r.call(arguments,1),a=function(){if(thisinstanceofi){vart=o.apply(this,s.concat(r.call(arguments)));returnObject(t)===t?t:this}returno.apply(e,s.concat(r.call(arguments)))},c=Math.max(0,o.length-s.length),u=[],l=0;l<c;l++)u.push("$"+l);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(a),o.prototype){varp=function(){};p.prototype=o.prototype,i.prototype=newp,p.prototype=null}returni}},8612:(e,t,r)=>{"use strict";varn=r(7648);e.exports=Function.prototype.bind||n},5972:e=>{"use strict";vart=function(){return"string"==typeoffunction(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;vare=r((function(){}),"name");return!!e&&!!e.configurable};varn=Function.prototype.bind;t.boundFunctionsHaveNames=function(){returnt()&&"function"==typeofn&&""!==function(){}.bind().name},e.exports=t},210:(e,t,r)=>{"use strict";varn=SyntaxError,o=Function,i=TypeError,s=function(e){try{returno('"use strict"; return ('+e+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(e){a=null}varc=function(){thrownewi},u=a?function(){try{returnc}catch(e){try{returna(arguments,"callee").get}catch(e){returnc}}}():c,l=r(1405)(),p=Object.getPrototypeOf||function(e){returne.__proto__},d={},f="undefined"==typeofUint8Array?void0:p(Uint8Array),g={"%AggregateError%":"undefined"==typeofAggregateError?void0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeofArrayBuffer?void0:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):void0,"%AsyncFromSyncIteratorPrototype%":void0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeofAtomics?void0:Atomics,"%BigInt%":"undefined"==typeofBigInt?void0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeofDataView?void0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeofFloat32Array?void0:Float32Array,"%Float64Array%":"undefined"==typeofFloat64Array?void0:Float64Array,"%FinalizationRegistry%":"undefined"==typeofFinalizationRegistry?void0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeofInt8Array?void0:Int8Array,"%Int16Array%":"undefined"==typeofInt16Array?void0:Int16Array,"%Int32Array%":"undefined"==typeofInt32Array?void0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):void0,"%JSON%":"object"==typeofJSON?JSON:void0,"%Map%":"undefined"==typeofMap?void0:Map,"%MapIteratorPrototype%":"undefined"!=typeofMap&&l?p((newMap)[Symbol.iterator]()):void0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeofPromise?void0:Promise,"%Proxy%":"undefined"==typeofProxy?void0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeofReflect?void0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeofSet?void0:Set,"%SetIteratorPrototype%":"undefined"!=typeofSet&&l?p((newSet)[Symbol.iterator]()):void0,"%SharedArrayBuffer%":"undefined"==typeofSharedArrayBuffer?void0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):void0,"%Symbol%":l?Symbol:void0,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeofUint8Array?void0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeofUint8ClampedArray?void0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeofUint16Array?void0:Uint16Array,"%Uint32Array%":"undefined"==typeofUint32Array?void0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeofWeakMap?void0:WeakMap,"%WeakRef%":"undefined"==typeofWeakRef?void0:WeakRef,"%WeakSet%":"undefined"==typeofWeakSet?void0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(8612),y=r(7642),v=m.call(Function.call,Array.prototype.concat),E=m.call(Function.apply,Array.prototype.splice),b=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),_=m.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,R=function(e){vart=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)thrownewn("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)thrownewn("invalid intrinsic syntax, expected opening `%`");varo=[];returnb(e,w,(function(e,t,r,n){o[o.length]=r?b(n,O,"$1"):t||e})),o},T=function(e,t){varr,o=e;if(y(h,o)&&(o="%"+(r=h[o])[0]+"%"),y(g,o)){vara=g[o];if(a===d&&(a=functione(t){varr;if("%AsyncFunction%"===t)r=s("async function () {}");elseif("%GeneratorFunction%"===t)r=s("function* () {}");elseif("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");elseif("%AsyncGenerator%"===t){varn=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}elseif("%AsyncIteratorPrototype%"===t){varo=e("%AsyncGenerator%");o&&(r=p(o.prototype))}returng[t]=r,r}(o)),void0===a&&!t)thrownewi("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:a}}thrownewn("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeofe||0===e.length)thrownewi("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeoft)thrownewi('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))thrownewn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");varr=R(e),o=r.length>0?r[0]:"",s=T("%"+o+"%",t),c=s.name,u=s.value,l=!1,p=s.alias;p&&(o=p[0],E(r,v([0,1],p)));for(vard=1,f=!0;d<r.length;d+=1){varh=r[d],m=S(h,0,1),b=S(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)thrownewn("property names with quotes must have matching quotes");if("constructor"!==h&&f||(l=!0),y(g,c="%"+(o+="."+h)+"%"))u=g[c];elseif(null!=u){if(!(hinu)){if(!t)thrownewi("base intrinsic for "+e+" exists, but the property is not available.");return}if(a&&d+1>=r.length){varw=a(u,h);u=(f=!!w)&&"get"inw&&!("originalValue"inw.get)?w.get:u[h]}elsef=y(u,h),u=u[h];f&&!l&&(g[c]=u)}}returnu}},932:e=>{"use strict";vart="undefined"!=typeofBigInt&&BigInt;e.exports=function(){return"function"==typeoft&&"function"==typeofBigInt&&"bigint"==typeoft(42)&&"bigint"==typeofBigInt(42)}},1044:(e,t,r)=>{"use strict";varn=r(210)("%Object.defineProperty%",!0),o=function(){if(n)try{returnn({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())returnnull;try{return1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1405:(e,t,r)=>{"use strict";varn="undefined"!=typeofSymbol&&Symbol,o=r(5419);e.exports=function(){return"function"==typeofn&&"function"==typeofSymbol&&"symbol"==typeofn("foo")&&"symbol"==typeofSymbol("bar")&&o()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeofSymbol||"function"!=typeofObject.getOwnPropertySymbols)return!1;if("symbol"==typeofSymbol.iterator)return!0;vare={},t=Symbol("test"),r=Object(t);if("string"==typeoft)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(tine[t]=42,e)return!1;if("function"==typeofObject.keys&&0!==Object.keys(e).length)return!1;if("function"==typeofObject.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;varn=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeofObject.getOwnPropertyDescriptor){varo=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";varn=r(5419);e.exports=function(){returnn()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";varn=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},2584:(e,t,r)=>{"use strict";varn=r(6410)(),o=r(1924)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeofe&&Symbol.toStringTagine)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeofe&&"number"==typeofe.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){returni(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},3376:(e,t,r)=>{"use strict";if(r(932)()){varn=BigInt.prototype.valueOf;e.exports=function(e){returnnull!=e&&"boolean"!=typeofe&&"string"!=typeofe&&"number"!=typeofe&&"symbol"!=typeofe&&"function"!=typeofe&&("bigint"==typeofe||function(e){try{returnn.call(e),!0}catch(e){}return!1}(e))}}elsee.exports=function(e){return!1}},6814:(e,t,r)=>{"use strict";varn=r(1924),o=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),s=r(6410)();e.exports=function(e){return"boolean"==typeofe||null!==e&&"object"==typeofe&&(s&&Symbol.toStringTagine?function(e){try{returno(e),!0}catch(e){return!1}}(e):"[object Boolean]"===i(e))}},8923:(e,t,r)=>{"use strict";varn=Date.prototype.getDay,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"object"==typeofe&&null!==e&&(i?function(e){try{returnn.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8379:e=>{"use strict";vart,r="function"==typeofMap&&Map.prototype?Map:null,n="function"==typeofSet&&Set.prototype?Set:null;r||(t=function(e){return!1});varo=r?Map.prototype.has:null,i=n?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeofe)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}returneinstanceofr}catch(e){}return!1}},4578:(e,t,r)=>{"use strict";varn=Number.prototype.toString,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"number"==typeofe||"object"==typeofe&&(i?function(e){try{returnn.call(e),!0}catch(e){return!1}}(e):"[object Number]"===o.call(e))}},8420:(e,t,r)=>{"use strict";varn,o,i,s,a=r(1924),c=r(6410)();if(c){n=a("Object.prototype.hasOwnProperty"),o=a("RegExp.prototype.exec"),i={};varu=function(){throwi};s={toString:u,valueOf:u},"symbol"==typeofSymbol.toPrimitive&&(s[Symbol.toPrimitive]=u)}varl=a("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeofe)return!1;vart=p(e,"lastIndex");if(!t||!n(t,"value"))return!1;try{o(e,s)}catch(e){returne===i}}:function(e){return!(!e||"object"!=typeofe&&"function"!=typeofe)&&"[object RegExp]"===l(e)}},9572:e=>{"use strict";vart,r="function"==typeofMap&&Map.prototype?Map:null,n="function"==typeofSet&&Set.prototype?Set:null;n||(t=function(e){return!1});varo=r?Map.prototype.has:null,i=n?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeofe)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}returneinstanceofn}catch(e){}return!1}},9981:(e,t,r)=>{"use strict";varn=String.prototype.valueOf,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"string"==typeofe||"object"==typeofe&&(i?function(e){try{returnn.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},2636:(e,t,r)=>{"use strict";varn=Object.prototype.toString;if(r(1405)()){varo=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeofe)return!0;if("[object Symbol]"!==n.call(e))return!1;try{returnfunction(e){return"symbol"==typeofe.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}elsee.exports=function(e){return!1}},5692:(e,t,r)=>{"use strict";varn=r(9804),o=r(3083),i=r(1924),s=i("Object.prototype.toString"),a=r(6410)(),c="undefined"==typeofglobalThis?r.g:globalThis,u=o(),l=i("Array.prototype.indexOf",!0)||function(e,t){for(varr=0;r<e.length;r+=1)if(e[r]===t)returnr;return-1},p=i("String.prototype.slice"),d={},f=r(882),g=Object.getPrototypeOf;a&&f&&g&&n(u,(function(e){vart=newc[e];if(Symbol.toStringTagint){varr=g(t),n=f(r,Symbol.toStringTag);if(!n){varo=g(r);n=f(o,Symbol.toStringTag)}d[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeofe)return!1;if(!a||!(Symbol.toStringTagine)){vart=p(s(e),8,-1);returnl(u,t)>-1}return!!f&&function(e){vart=!1;returnn(d,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},1718:e=>{"use strict";vart,r="function"==typeofWeakMap&&WeakMap.prototype?WeakMap:null,n="function"==typeofWeakSet&&WeakSet.prototype?WeakSet:null;r||(t=function(e){return!1});varo=r?r.prototype.has:null,i=n?n.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeofe)return!1;try{if(o.call(e,o),i)try{i.call(e,i)}catch(e){return!0}returneinstanceofr}catch(e){}return!1}},5899:(e,t,r)=>{"use strict";varn=r(210),o=r(1924),i=n("%WeakSet%",!0),s=o("WeakSet.prototype.has",!0);if(s){vara=o("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeofe)return!1;try{if(s(e,s),a)try{a(e,a)}catch(e){return!0}returneinstanceofi}catch(e){}return!1}}elsee.exports=function(e){return!1}},5826:e=>{vart={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2705:(e,t,r)=>{varn=r(5639).Symbol;e.exports=n},4239:(e,t,r)=>{varn=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void0;e.exports=function(e){returnnull==e?void0===e?"[object Undefined]":"[object Null]":s&&sinObject(e)?o(e):i(e)}},7561:(e,t,r)=>{varn=r(7990),o=/^\s+/;e.exports=function(e){returne?e.slice(0,n(e)+1).replace(o,""):e}},1957:(e,t,r)=>{varn="object"==typeofr.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9607:(e,t,r)=>{varn=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void0;e.exports=function(e){vart=i.call(e,a),r=e[a];try{e[a]=void0;varn=!0}catch(e){}varo=s.call(e);returnn&&(t?e[a]=r:deletee[a]),o}},2333:e=>{vart=Object.prototype.toString;e.exports=function(e){returnt.call(e)}},5639:(e,t,r)=>{varn=r(1957),o="object"==typeofself&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},7990:e=>{vart=/\s/;e.exports=function(e){for(varr=e.length;r--&&t.test(e.charAt(r)););returnr}},3279:(e,t,r)=>{varn=r(3218),o=r(1927),i=r(4841),s=Math.max,a=Math.min;e.exports=function(e,t,r){varc,u,l,p,d,f,g=0,h=!1,m=!1,y=!0;if("function"!=typeofe)thrownewTypeError("Expected a function");functionv(t){varr=c,n=u;returnc=u=void0,g=t,p=e.apply(n,r)}functionE(e){returng=e,d=setTimeout(S,t),h?v(e):p}functionb(e){varr=e-f;returnvoid0===f||r>=t||r<0||m&&e-g>=l}functionS(){vare=o();if(b(e))return_(e);d=setTimeout(S,function(e){varr=t-(e-f);returnm?a(r,l-(e-g)):r}(e))}function_(e){returnd=void0,y&&c?v(e):(c=u=void0,p)}functionw(){vare=o(),r=b(e);if(c=arguments,u=this,f=e,r){if(void0===d)returnE(f);if(m)returnclearTimeout(d),d=setTimeout(S,t),v(f)}returnvoid0===d&&(d=setTimeout(S,t)),p}returnt=i(t)||0,n(r)&&(h=!!r.leading,l=(m="maxWait"inr)?s(i(r.maxWait)||0,t):l,y="trailing"inr?!!r.trailing:y),w.cancel=function(){void0!==d&&clearTimeout(d),g=0,c=f=u=d=void0},w.flush=function(){returnvoid0===d?p:_(o())},w}},3218:e=>{e.exports=function(e){vart=typeofe;returnnull!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){returnnull!=e&&"object"==typeofe}},3448:(e,t,r)=>{varn=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeofe||o(e)&&"[object Symbol]"==n(e)}},1927:(e,t,r)=>{varn=r(5639);e.exports=function(){returnn.Date.now()}},4841:(e,t,r)=>{varn=r(7561),o=r(3218),i=r(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeofe)returne;if(i(e))returnNaN;if(o(e)){vart="function"==typeofe.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeofe)return0===e?e:+e;e=n(e);varr=a.test(e);returnr||c.test(e)?u(e.slice(2),r?2:8):s.test(e)?NaN:+e}},631:(e,t,r)=>{varn="function"==typeofMap&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeofo.get?o.get:null,s=n&&Map.prototype.forEach,a="function"==typeofSet&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"==typeofc.get?c.get:null,l=a&&Set.prototype.forEach,p="function"==typeofWeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeofWeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeofWeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,E=String.prototype.replace,b=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,w=Array.prototype.concat,O=Array.prototype.join,R=Array.prototype.slice,T=Math.floor,A="function"==typeofBigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,I="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?Symbol.prototype.toString:null,P="function"==typeofSymbol&&"object"==typeofSymbol.iterator,N="function"==typeofSymbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,D=("function"==typeofReflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){returne.__proto__}:null);functionx(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))returnt;varr=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeofe){varn=e<0?-T(-e):T(e);if(n!==e){varo=String(n),i=v.call(t,o.length+1);returnE.call(o,r,"$&_")+"."+E.call(E.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}returnE.call(t,r,"$&_")}varM=r(4654),L=M.custom,U=V(L)?L:null;functionB(e,t,r){varn="double"===(r.quoteStyle||t)?'"':"'";returnn+e+n}functionj(e){returnE.call(String(e),/"/g,""")}function$(e){return!("[object Array]"!==Y(e)||N&&"object"==typeofe&&Nine)}functionG(e){return!("[object RegExp]"!==Y(e)||N&&"object"==typeofe&&Nine)}functionV(e){if(P)returne&&"object"==typeofe&&einstanceofSymbol;if("symbol"==typeofe)return!0;if(!e||"object"!=typeofe||!I)return!1;try{returnI.call(e),!0}catch(e){}return!1}e.exports=functione(t,r,n,o){vara=r||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)thrownewTypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeofa.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))thrownewTypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');varc=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeofc&&"symbol"!==c)thrownewTypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))thrownewTypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeofa.numericSeparator)thrownewTypeError('option "numericSeparator", if provided, must be `true` or `false`');varh=a.numericSeparator;if(void0===t)return"undefined";if(null===t)return"null";if("boolean"==typeoft)returnt?"true":"false";if("string"==typeoft)returnfunctione(t,r){if(t.length>r.maxStringLength){varn=t.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");returne(v.call(t,0,r.maxStringLength),r)+o}returnB(E.call(E.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",r)}(t,a);if("number"==typeoft){if(0===t)return1/0/t>0?"0":"-0";varb=String(t);returnh?x(t,b):b}if("bigint"==typeoft){var_=String(t)+"n";returnh?x(t,_):_}varT=void0===a.depth?5:a.depth;if(void0===n&&(n=0),n>=T&&T>0&&"object"==typeoft)return$(t)?"[Array]":"[Object]";vark=function(e,t){varr;if("\t"===e.indent)r="\t";else{if(!("number"==typeofe.indent&&e.indent>0))returnnull;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void0===o)o=[];elseif(K(o,t)>=0)return"[Circular]";functionL(t,r,i){if(r&&(o=R.call(o)).push(r),i){vars={depth:a.depth};returnH(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,n+1,o)}returne(t,a,n+1,o)}if("function"==typeoft&&!G(t)){varF=function(e){if(e.name)returne.name;vart=y.call(m.call(e),/^function\s*([\w$]+)/);returnt?t[1]:null}(t),X=Q(t,L);return"[Function"+(F?": "+F:" (anonymous)")+"]"+(X.length>0?" { "+O.call(X,", ")+" }":"")}if(V(t)){varee=P?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeoft||P?ee:Z(ee)}if(function(e){return!(!e||"object"!=typeofe)&&("undefined"!=typeofHTMLElement&&einstanceofHTMLElement||"string"==typeofe.nodeName&&"function"==typeofe.getAttribute)}(t)){for(varte="<"+S.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+B(j(re[ne].value),"double",a);returnte+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+"</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";varoe=Q(t,L);returnk&&!function(e){for(vart=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(oe)?"["+J(oe,k)+"]":"[ "+O.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==Y(e)||N&&"object"==typeofe&&Nine)}(t)){varie=Q(t,L);return"cause"inError.prototype||!("cause"int)||C.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(w.call("[cause]: "+L(t.cause),ie),", ")+" }"}if("object"==typeoft&&c){if(U&&"function"==typeoft[U]&&M)returnM(t,{depth:T-n});if("symbol"!==c&&"function"==typeoft.inspect)returnt.inspect()}if(function(e){if(!i||!e||"object"!=typeofe)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}returneinstanceofMap}catch(e){}return!1}(t)){varse=[];returns.call(t,(function(e,r){se.push(L(r,t,!0)+" => "+L(e,t))})),z("Map",i.call(t),se,k)}if(function(e){if(!u||!e||"object"!=typeofe)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}returneinstanceofSet}catch(e){}return!1}(t)){varae=[];returnl.call(t,(function(e){ae.push(L(e,t))})),z("Set",u.call(t),ae,k)}if(function(e){if(!p||!e||"object"!=typeofe)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}returneinstanceofWeakMap}catch(e){}return!1}(t))returnq("WeakMap");if(function(e){if(!d||!e||"object"!=typeofe)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}returneinstanceofWeakSet}catch(e){}return!1}(t))returnq("WeakSet");if(function(e){if(!f||!e||"object"!=typeofe)return!1;try{returnf.call(e),!0}catch(e){}return!1}(t))returnq("WeakRef");if(function(e){return!("[object Number]"!==Y(e)||N&&"object"==typeofe&&Nine)}(t))returnZ(L(Number(t)));if(function(e){if(!e||"object"!=typeofe||!A)return!1;try{returnA.call(e),!0}catch(e){}return!1}(t))returnZ(L(A.call(t)));if(function(e){return!("[object Boolean]"!==Y(e)||N&&"object"==typeofe&&Nine)}(t))returnZ(g.call(t));if(function(e){return!("[object String]"!==Y(e)||N&&"object"==typeofe&&Nine)}(t))returnZ(L(String(t)));if(!function(e){return!("[object Date]"!==Y(e)||N&&"object"==typeofe&&Nine)}(t)&&!G(t)){varce=Q(t,L),ue=D?D(t)===Object.prototype:tinstanceofObject||t.constructor===Object,le=tinstanceofObject?"":"null prototype",pe=!ue&&N&&Object(t)===t&&Nint?v.call(Y(t),8,-1):le?"Object":"",de=(ue||"function"!=typeoft.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||le?"["+O.call(w.call([],pe||[],le||[]),": ")+"] ":"");return0===ce.length?de+"{}":k?de+"{"+J(ce,k)+"}":de+"{ "+O.call(ce,", ")+" }"}returnString(t)};varF=Object.prototype.hasOwnProperty||function(e){returneinthis};functionH(e,t){returnF.call(e,t)}functionY(e){returnh.call(e)}functionK(e,t){if(e.indexOf)returne.indexOf(t);for(varr=0,n=e.length;r<n;r++)if(e[r]===t)returnr;return-1}functionW(e){vart=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];returnr?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}functionZ(e){return"Object("+e+")"}functionq(e){returne+" { ? }"}functionz(e,t,r,n){returne+" ("+t+") {"+(n?J(r,n):O.call(r,", "))+"}"}functionJ(e,t){if(0===e.length)return"";varr="\n"+t.prev+t.base;returnr+O.call(e,","+r)+"\n"+t.prev}functionQ(e,t){varr=$(e),n=[];if(r){n.length=e.length;for(varo=0;o<e.length;o++)n[o]=H(e,o)?t(e[o],e):""}vari,s="function"==typeofk?k(e):[];if(P){i={};for(vara=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(varcine)H(e,c)&&(r&&String(Number(c))===c&&c<e.length||P&&i["$"+c]instanceofSymbol||(_.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeofk)for(varu=0;u<s.length;u++)C.call(e,s[u])&&n.push("["+t(s[u])+"]: "+t(e[s[u]],e));returnn}},4244:e=>{"use strict";vart=function(e){returne!=e};e.exports=function(e,r){return0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";varn=r(4289),o=r(5559),i=r(4244),s=r(5624),a=r(2281),c=o(s(),Object);n(c,{getPolyfill:s,implementation:i,shim:a}),e.exports=c},5624:(e,t,r)=>{"use strict";varn=r(4244);e.exports=function(){return"function"==typeofObject.is?Object.is:n}},2281:(e,t,r)=>{"use strict";varn=r(5624),o=r(4289);e.exports=function(){vare=n();returno(Object,{is:e},{is:function(){returnObject.is!==e}}),e}},8987:(e,t,r)=>{"use strict";varn;if(!Object.keys){varo=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=r(1414),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){vart=e.constructor;returnt&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeofwindow)return!1;for(vareinwindow)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeofwindow[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){vart=null!==e&&"object"==typeofe,r="[object Function]"===i.call(e),n=s(e),a=t&&"[object String]"===i.call(e),d=[];if(!t&&!r&&!n)thrownewTypeError("Object.keys called on a non-object");varg=u&&r;if(a&&e.length>0&&!o.call(e,0))for(varh=0;h<e.length;++h)d.push(String(h));if(n&&e.length>0)for(varm=0;m<e.length;++m)d.push(String(m));elsefor(varyine)g&&"prototype"===y||!o.call(e,y)||d.push(String(y));if(c)for(varv=function(e){if("undefined"==typeofwindow||!f)returnp(e);try{returnp(e)}catch(e){return!1}}(e),E=0;E<l.length;++E)v&&"constructor"===l[E]||!o.call(e,l[E])||d.push(l[E]);returnd}}e.exports=n},2215:(e,t,r)=>{"use strict";varn=Array.prototype.slice,o=r(1414),i=Object.keys,s=i?function(e){returni(e)}:r(8987),a=Object.keys;s.shim=function(){returnObject.keys?function(){vare=Object.keys(arguments);returne&&e.length===arguments.length}(1,2)||(Object.keys=function(e){returno(e)?a(n.call(e)):a(e)}):Object.keys=s,Object.keys||s},e.exports=s},1414:e=>{"use strict";vart=Object.prototype.toString;e.exports=function(e){varr=t.call(e),n="[object Arguments]"===r;returnn||(n="[object Array]"!==r&&null!==e&&"object"==typeofe&&"number"==typeofe.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},2837:(e,t,r)=>{"use strict";varn=r(2215),o=r(5419)(),i=r(1924),s=Object,a=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)thrownewTypeError("target must be an object");varr=s(e);if(1===arguments.length)returnr;for(vari=1;i<arguments.length;++i){varl=s(arguments[i]),p=n(l),d=o&&(Object.getOwnPropertySymbols||u);if(d)for(varf=d(l),g=0;g<f.length;++g){varh=f[g];c(l,h)&&a(p,h)}for(varm=0;m<p.length;++m){vary=p[m];if(c(l,y)){varv=l[y];r[y]=v}}}returnr}},3533:(e,t,r)=>{"use strict";varn=r(4289),o=r(5559),i=r(2837),s=r(8162),a=r(4489),c=o.apply(s()),u=function(e,t){returnc(Object,arguments)};n(u,{getPolyfill:s,implementation:i,shim:a}),e.exports=u},8162:(e,t,r)=>{"use strict";varn=r(2837);e.exports=function(){returnObject.assign?function(){if(!Object.assign)return!1;for(vare="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];varo=Object.assign({},r),i="";for(varsino)i+=s;returne!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;vare=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},4489:(e,t,r)=>{"use strict";varn=r(4289),o=r(8162);e.exports=function(){vare=o();returnn(Object,{assign:e},{assign:function(){returnObject.assign!==e}}),e}},3697:(e,t,r)=>{"use strict";varn=r(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))thrownewi("RegExp.prototype.flags getter called on non-object");vare="";returnthis.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},n&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:(e,t,r)=>{"use strict";varn=r(4289),o=r(5559),i=r(3697),s=r(1721),a=r(2753),c=o(s());n(c,{getPolyfill:s,implementation:i,shim:a}),e.exports=c},1721:(e,t,r)=>{"use strict";varn=r(3697),o=r(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){vare=i(RegExp.prototype,"flags");if(e&&"function"==typeofe.get&&"boolean"==typeofRegExp.prototype.dotAll&&"boolean"==typeofRegExp.prototype.hasIndices){vart="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),"dy"===t)returne.get}}returnn}},2753:(e,t,r)=>{"use strict";varn=r(4289).supportsDescriptors,o=r(1721),i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=TypeError,c=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!n||!c)thrownewa("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");vare=o(),t=c(u),r=i(t,"flags");returnr&&r.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},7478:(e,t,r)=>{"use strict";varn=r(210),o=r(1924),i=r(631),s=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),g=o("Map.prototype.has",!0),h=function(e,t){for(varr,n=e;null!==(r=n.next);n=r)if(r.key===t)returnn.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){vare,t,r,n={assert:function(e){if(!n.has(e))thrownews("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeofn||"function"==typeofn)){if(e)returnu(e,n)}elseif(c){if(t)returnd(t,n)}elseif(r)returnfunction(e,t){varr=h(e,t);returnr&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeofn||"function"==typeofn)){if(e)returnp(e,n)}elseif(c){if(t)returng(t,n)}elseif(r)returnfunction(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeofn||"function"==typeofn)?(e||(e=newa),l(e,n,o)):c?(t||(t=newc),f(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){varn=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};returnn}},4785:(e,t,r)=>{"use strict";r(1703),r(8862),r(3948),r(9720);classnextendsError{constructor(e){super(n._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,n)}static_prepareSuperMessage(e){try{returnJSON.stringify(e)}catch(t){returnString(e)}}}consto=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],i=({from:e,seen:t,to_:r,forceEnumerable:n})=>{consts=r||(Array.isArray(e)?[]:{});t.push(e);for(const[o,a]ofObject.entries(e))"function"!=typeofa&&(a&&"object"==typeofa?t.includes(e[o])?s[o]="[Circular]":s[o]=i({from:e[o],seen:t.slice(),forceEnumerable:n}):s[o]=a);for(const{property:i,enumerable:a}ofo)"string"==typeofe[i]&&Object.defineProperty(s,i,{value:e[i],enumerable:!!n||a,configurable:!0,writable:!0});returns};e.exports={serializeError:e=>"object"==typeofe&&null!==e?i({from:e,seen:[],forceEnumerable:!0}):"function"==typeofe?`[Function: ${e.name||"anonymous"}]`:e,deserializeError:e=>{if(einstanceofError)returne;if("object"==typeofe&&null!==e&&!Array.isArray(e)){constt=newError;returni({from:e,seen:[],to_:t}),t}returnnewn(e)}}},3679:(e,t,r)=>{"use strict";varn=r(9981),o=r(4578),i=r(6814),s=r(2636),a=r(3376);e.exports=function(e){returnnull==e||"object"!=typeofe&&"function"!=typeofe?null:n(e)?"String":o(e)?"Number":i(e)?"Boolean":s(e)?"Symbol":a(e)?"BigInt":void0}},6430:(e,t,r)=>{"use strict";varn=r(9804),o=r(3083),i=r(1924),s=i("Object.prototype.toString"),a=r(6410)(),c="undefined"==typeofglobalThis?r.g:globalThis,u=o(),l=i("String.prototype.slice"),p={},d=r(882),f=Object.getPrototypeOf;a&&d&&f&&n(u,(function(e){if("function"==typeofc[e]){vart=newc[e];if(Symbol.toStringTagint){varr=f(t),n=d(r,Symbol.toStringTag);if(!n){varo=f(r);n=d(o,Symbol.toStringTag)}p[e]=n.get}}}));varg=r(5692);e.exports=function(e){return!!g(e)&&(a&&Symbol.toStringTagine?function(e){vart=!1;returnn(p,(function(r,n){if(!t)try{varo=r.call(e);o===n&&(t=o)}catch(e){}})),t}(e):l(s(e),8,-1))}},4654:()=>{},3083:(e,t,r)=>{"use strict";varn=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeofglobalThis?r.g:globalThis;e.exports=function(){for(vare=[],t=0;t<n.length;t++)"function"==typeofo[n[t]]&&(e[e.length]=n[t]);returne}},882:(e,t,r)=>{"use strict";varn=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},3216:(e,t,r)=>{"use strict";varn=r(2584);if(r(1405)()||r(5419)()){varo=Symbol.iterator;e.exports=function(e){returnnull!=e&&void0!==e[o]?e[o]():n(e)?Array.prototype[o].call(e):void0}}else{vari=r(5826),s=r(9981),a=r(210),c=a("%Map%",!0),u=a("%Set%",!0),l=r(1924),p=l("Array.prototype.push"),d=l("String.prototype.charCodeAt"),f=l("String.prototype.slice"),g=function(e){vart=0;return{next:function(){varr,n=t>=e.length;returnn||(r=e[t],t+=1),{done:n,value:r}}}},h=function(e,t){if(i(e)||n(e))returng(e);if(s(e)){varr=0;return{next:function(){vart=function(e,t){if(t+1>=e.length)returnt+1;varr=d(e,t);if(r<55296||r>56319)returnt+1;varn=d(e,t+1);returnn<56320||n>57343?t+1:t+2}(e,r),n=f(e,r,t);returnr=t,{done:t>e.length,value:n}}}}returnt&&void0!==e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void0};if(c||u){varm=r(8379),y=r(9572),v=l("Map.prototype.forEach",!0),E=l("Set.prototype.forEach",!0);if("undefined"==typeofprocess||!process.versions||!process.versions.node)varb=l("Map.prototype.iterator",!0),S=l("Set.prototype.iterator",!0),_=function(e){vart=!1;return{next:function(){try{return{done:t,value:t?void0:e.next()}}catch(e){returnt=!0,{done:!0,value:void0}}}}};varw=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),O=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0);e.exports=function(e){returnfunction(e){if(m(e)){if(b)return_(b(e));if(w)returnw(e);if(v){vart=[];returnv(e,(function(e,r){p(t,[r,e])})),g(t)}}if(y(e)){if(S)return_(S(e));if(O)returnO(e);if(E){varr=[];returnE(e,(function(e){p(r,e)})),g(r)}}}(e)||h(e)}}elsee.exports=function(e){if(null!=e)returnh(e,!0)}}},3483:(e,t,r)=>{"use strict";varn=r(8379),o=r(9572),i=r(1718),s=r(5899);e.exports=function(e){if(e&&"object"==typeofe){if(n(e))return"Map";if(o(e))return"Set";if(i(e))return"WeakMap";if(s(e))return"WeakSet"}return!1}}},r={};functionn(e){varo=r[e];if(void0!==o)returno.exports;vari=r[e]={exports:{}};returnt[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){vars=1/0;for(l=0;l<e.length;l++){for(var[r,o,i]=e[l],a=!0,c=0;c<r.length;c++)(!1&i||s>=i)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(l--,1);varu=o();void0!==u&&(t=u)}}returnt}i=i||0;for(varl=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=e=>{vart=e&&e.__esModule?()=>e.default:()=>e;returnn.d(t,{a:t}),t},n.d=(e,t)=>{for(varrint)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeofglobalThis)returnglobalThis;try{returnthis||newFunction("return this")()}catch(e){if("object"==typeofwindow)returnwindow}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{vare={143:0};n.O.j=t=>0===e[t];vart=(t,r)=>{varo,i,[s,a,c]=r,u=0;if(s.some((t=>0!==e[t]))){for(oina)n.o(a,o)&&(n.m[o]=a[o]);if(c)varl=c(n)}for(t&&t(r);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;returnn.O(l)},r=self.webpackChunkdata_bridge=self.webpackChunkdata_bridge||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();varo=n.O(void0,[998],(()=>n(7771)));o=n.O(o),module.exports=o})();