client/data-bridge/dist/data-bridge.app.js
/*!/*@nomin*/(()=>{var e,t={8118:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r}},7771:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createServices:()=>No,launch:()=>Co}),r(8674),r(7727);var n=require("vue");const o={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);const p=["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"];var y=(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(){return h.includes(this.type)},isFrameless(){return g.includes(this.type)},opensInNewTab(){return null!==this.href&&this.newTab},tabindex(){return this.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(){return null===this.href},simulateSpaceOnButton(){return null===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)}]]);const b={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);class T extends Error{constructor(e){super(e[0].code),(0,R.Z)(this,"errors",void 0),this.errors=e}}class A extends Error{constructor(e){super("Saving failed."),(0,R.Z)(this,"errors",void 0),this.errors=e}}var k,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={}));var N,C=(0,P.Z)((0,P.Z)({},k),I);class D{constructor(e,t,r){(0,R.Z)(this,"entityId",void 0),(0,R.Z)(this,"propertyId",void 0),(0,R.Z)(this,"index",void 0),this.entityId=e,this.propertyId=t,this.index=r}resolveStatementGroup(e){var t,r;return null!==(t=null==e||null===(r=e[this.entityId])||void 0===r?void 0:r[this.propertyId])&&void 0!==t?t:null}resolveStatement(e){var t,r;return null!==(t=null===(r=this.resolveStatementGroup(e))||void 0===r?void 0:r[this.index])&&void 0!==t?t:null}resolveSnakInStatement(e){var t,r;return null!==(t=null===(r=this.resolveStatement(e))||void 0===r?void 0:r.mainsnak)&&void 0!==t?t:null}}function x(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==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={}));const M="function"==typeof Proxy;class L{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const i in e.settings){const t=e.settings[i];r[i]=t.defaultValue}const n="__vue-devtools-plugin-settings__"+e.id;let o=Object.assign({},r);try{const e=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=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{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)=>new Promise((r=>{this.targetQueue.push({method:t,args:e,resolve:r})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function U(e,t){const r=x(),n=x().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=M&&e.enableEarlyProxy;if(!n||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const i=o?new L(e,n):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}else n.emit("devtools-plugin:setup",e,t)}function B(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function j(e){return null!==e&&"object"==typeof e}function $(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function G(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;F(e,r,[],e._modules.root,!0),V(e,r,t)}function V(e,t,r){var o=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={};B(i,(function(t,r){s[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return s[r]()},enumerable:!0})})),e._state=(0,n.reactive)({data:t}),e.strict&&function(e){(0,n.watch)((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),o&&r&&e._withCommit((function(){o.data=null}))}function F(e,t,r,n,o){var i=!r.length,s=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!i&&!o){var a=Y(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){a[c]=n.state}))}var u=n.context=function(e,t,r){var n=""===t,o={dispatch:n?e.dispatch:function(r,n,o){var i=K(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:n?e.commit:function(r,n,o){var i=K(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return H(e,t)}},state:{get:function(){return Y(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){var n=t.root?r:s+r,o=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,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"==typeof o.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._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){return r(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)}))}function H(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function Y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function K(e,t,r){return j(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var W=0;function Z(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){var n=[];!function e(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}else r.rootNodes=[Q(t._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===e&&"vuex"===r.inspectorId){var n=r.nodeId;H(t,n),r.state=function(e,t,r){t="root"===r?t:t[r];var n=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var i=function(e){var t={};return Object.keys(e).forEach((function(r){var n=r.split("/");if(n.length>1){var o=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(){return e[r]}))}else t[r]=X((function(){return e[r]}))})),t}(t);o.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?J(e):e,editable:!1,value:X((function(){return i[e]}))}}))}return o}((o=t._modules,(s=(i=n).split("/").filter((function(e){return e}))).reduce((function(e,t,r){var n=e[t];if(!n)throw new Error('Missing module "'+t+'" for path "'+i+'".');return r===s.length-1?n:n._children}),"root"===i?o:o.root._children)),"root"===n?t.getters:t._makeLocalGettersCache,n)}var o,i,s})),r.on.editInspectorState((function(r){if(r.app===e&&"vuex"===r.inspectorId){var n=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){var n={};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){var n={};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){var n={},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}})}})}))}var q=8702998,z={label:"namespaced",textColor:16777215,backgroundColor:6710886};function J(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function Q(e,t){return{id:t||"root",label:J(t),tags:e.namespaced?[z]:[],children:Object.keys(e._children).map((function(r){return Q(e._children[r],t+r+"/")}))}}function X(e){try{return e()}catch(e){return e}}var ee=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?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){delete this._children[e]},ee.prototype.getChild=function(e){return this._children[e]},ee.prototype.hasChild=function(e){return e in this._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);var re=function(e){this.register([],e,!1)};re.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},re.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},re.prototype.update=function(e){!function e(t,r,n){if(r.update(n),n.modules)for(var o in n.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){var n=this;void 0===r&&(r=!0);var o=new ee(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){var t=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){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var ne=function(e){var t=this;void 0===e&&(e={});var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new re(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,r){return a.call(i,e,t,r)},this.strict=n;var c=this._modules.root.state;F(this,c,[],this._modules.root),V(this,c),r.forEach((function(e){return e(t)}))},oe={state:{configurable:!0}};function ie(e){return function(e){return Array.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]}})):[]}function se(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function ae(e,t,r){return e._modulesNamespaceMap[r]}ne.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&Z(e,this)},oe.state.get=function(){return this._state.data},oe.state.set=function(e){},ne.prototype.commit=function(e,t,r){var n=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){return e(a,n.state)})))},ne.prototype.dispatch=function(e,t){var r=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){return e.before})).forEach((function(e){return e.before(s,r.state)}))}catch(e){}var c=a.length>1?Promise.all(a.map((function(e){return e(i)}))):a[0](i);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,r.state)}))}catch(e){}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.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"==typeof e?{before:e}:e,this._actionSubscribers,t)},ne.prototype.watch=function(e,t,r){var o=this;return(0,n.watch)((function(){return e(o.state,o.getters)}),t,Object.assign({},r))},ne.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ne.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(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){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete Y(t.state,e.slice(0,-1))[e[e.length-1]]})),G(this)},ne.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},ne.prototype.hotUpdate=function(e){this._modules.update(e),G(this,!0)},ne.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ne.prototype,oe),se((function(e,t){var r={};return ie(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=ae(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,t,r):t[o]},r[n].vuex=!0})),r})),se((function(e,t){var r={};return ie(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var i=ae(this.$store,"mapMutations",e);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),se((function(e,t){var r={};return ie(t).forEach((function(t){var n=t.key,o=t.val;o=e+o,r[n]=function(){if(!e||ae(this.$store,"mapGetters",e))return this.$store.getters[o]},r[n].vuex=!0})),r})),se((function(e,t){var r={};return ie(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var i=ae(this.$store,"mapActions",e);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r}));var ce=function(){return(ce=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(){function e(){}return e.prototype.$init=function(e){},Object.defineProperty(e.prototype,"state",{get:function(){return this.__ctx__.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){return this.__ctx__.getters},enumerable:!1,configurable:!0}),e}(),le=function(){function e(){}return Object.defineProperty(e.prototype,"state",{get:function(){return this.__ctx__.state},enumerable:!1,configurable:!0}),e}(),pe=function(){function e(){}return e.prototype.$init=function(e){},Object.defineProperty(e.prototype,"state",{get:function(){return this.__ctx__.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){return this.__ctx__.getters},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"commit",{get:function(){return this.__ctx__.commit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dispatch",{get:function(){return this.__ctx__.dispatch},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actions",{get:function(){return this.__ctx__.actions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mutations",{get:function(){return this.__ctx__.mutations},enumerable:!1,configurable:!0}),e}(),de=function(){};function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){e.forEach((function(e){return e(t)}))}}function ge(e,t){return e.reduce((function(e,t){return e[t]}),t)}function he(e,t){var r={};return Object.keys(e).forEach((function(n){r[n]=t(e[n],n)})),r}function me(e,t){if(!e)throw new Error("[vuex-smart-module] "+t)}function ye(e){console.warn("[vuex-smart-module] DEPRECATED: "+e)}function ve(e,t,r,n){void 0===n&&(n={constructor:!0}),e.constructor!==t&&(Object.getOwnPropertyNames(e).forEach((function(t){if(!n[t]){n[t]=!0;var o=Object.getOwnPropertyDescriptor(e,t);r(o,t)}})),ve(Object.getPrototypeOf(e),t,r,n))}function Ee(e,t){var r=[];return ve(e,t,(function(e,t){"function"==typeof e.value&&r.push(t)})),r}function be(e){var t="The module need to be registered a store before using `Module#context` or `createMapper`";return{get path(){return me(void 0!==e.path,t),e.path},get namespace(){return me(void 0!==e.namespace,t),e.namespace}}}function Se(e,t,r,n,o){return"string"==typeof r?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)}function we(e,t,r,n,o){return Se(e.dispatch,t,r,n,o)}function Oe(e,t){var r=t.length,n={};return Object.keys(e.getters).forEach((function(o){var i=t===o.slice(0,r),s=o.slice(r);i&&s&&Object.defineProperty(n,s,{get:function(){return e.getters[o]},enumerable:!0})})),n}var Re=function(){function e(e,t,r){var n=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){return we(n.store,n.pos.namespace,e,t,r)}}return Object.defineProperty(e.prototype,"mutations",{get:function(){var e=this;if(this.__mutations__)return this.__mutations__;var t={},r=this.moduleOptions.mutations;return r&&Ee(r.prototype,le).forEach((function(r){Object.defineProperty(t,r,{value:function(t){return e.commit(r,t)},enumerable:!0})})),this.__mutations__=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actions",{get:function(){var e=this;if(this.__actions__)return this.__actions__;var t={},r=this.moduleOptions.actions;return r&&Ee(r.prototype,pe).forEach((function(r){Object.defineProperty(t,r,{value:function(t){return e.dispatch(r,t)},enumerable:!0})})),this.__actions__=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return ge(this.pos.path,this.store.state)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getters",{get:function(){return Oe(this.store,this.pos.namespace)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modules",{get:function(){var t=this,r={},n=this.moduleOptions.modules;return n?(Object.keys(n).forEach((function(o){var i=n[o];Object.defineProperty(r,o,{get:function(){return new e(be(i),t.store,i.options)}})})),r):r},enumerable:!1,configurable:!0}),e}(),Te=function(){function e(e){this.pos=e}return e.prototype.mapState=function(e){var t=this.pos;return Ae(e,(function(e){return function(){var r=ge(t.path,this.$store.state);if("function"==typeof e){var n=Oe(this.$store,t.namespace);return e.call(this,r,n)}return r[e]}}))},e.prototype.mapGetters=function(e){var t=this.pos;return Ae(e,(function(e){function r(){return this.$store.getters[t.namespace+e]}return r.vuex=!0,r}))},e.prototype.mapMutations=function(e){var t=this.pos;return Ae(e,(function(e){return function(){for(var r=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=function(e,n){return _e(r.$store,t.namespace,e,n)};return"function"==typeof e?e.apply(this,[i].concat(n)):i(e,n[0])}}))},e.prototype.mapActions=function(e){var t=this.pos;return Ae(e,(function(e){return function(){for(var r=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=function(e,n){return we(r.$store,t.namespace,e,n)};return"function"==typeof e?e.apply(this,[i].concat(n)):i(e,n[0])}}))},e}();function Ae(e,t){return he(Array.isArray(e)?e.reduce((function(e,t){return e[t]=t,e}),{}):e,t)}var ke=function(){function e(e){void 0===e&&(e={}),this.options=e,this.mapper=new Te(be(this))}return e.prototype.clone=function(){var t=ce({},this.options);return t.modules&&(t.modules=he(t.modules,(function(e){return e.clone()}))),new e(t)},e.prototype.context=function(e){return new Re(be(this),e,this.options)},e.prototype.mapState=function(e){return ye("`Module#mapState` is deprecated. Use `createMapper` instead."),this.mapper.mapState(e)},e.prototype.mapGetters=function(e){return ye("`Module#mapGetters` is deprecated. Use `createMapper` instead."),this.mapper.mapGetters(e)},e.prototype.mapMutations=function(e){return ye("`Module#mapMutations` is deprecated. Use `createMapper` instead."),this.mapper.mapMutations(e)},e.prototype.mapActions=function(e){return ye("`Module#mapActions` is deprecated. Use `createMapper` instead."),this.mapper.mapActions(e)},e.prototype.getStoreOptions=function(){var e=this.create([],""),t=e.options,r=e.injectStore;return t.actions||(t.actions={}),t.actions["vuex-smart-module/injectStore"]=function(){r(this)},ce(ce({},t),{plugins:[function(e){e.dispatch("vuex-smart-module/injectStore");var t=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;var r=this.options,n=r.namespaced,o=void 0===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){var i,s=u[n],a=null===(i=s.options.namespaced)||void 0===i||i?n+"/":"",c=s.create(e.concat(n),o?t+a:a);return r.options[n]=c.options,r.injectStore=fe(r.injectStore,c.injectStore),r}),{options:{},injectStore:de}):void 0,p=s&&function(e,t){var r=new e,n={};return ve(e.prototype,ue,(function(e,t){if("function"==typeof e.value||e.get){var o=e.value,i=e.get;n[t]=function(){var e=r;return i?i.call(e):o?o.bind(e):void 0}}}),{constructor:!0,$init:!0}),{getters:n,injectStore:function(e){var n=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){return n},configurable:!0}),r.$init(e)}}}(s,this),d=a&&function(e,t){var r=new e,n={};return ve(e.prototype,le,(function(e,t){"function"==typeof e.value&&(n[t]=function(e,n){var o=r;return r[t].call(o,n)})})),{mutations:n,injectStore:function(e){var n=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){return n},configurable:!0})}}}(a,this),f=c&&function(e,t){var r=new e,n={};return ve(e.prototype,pe,(function(e,t){"function"==typeof e.value&&(n[t]=function(e,n){var o=r;return r[t].call(o,n)})}),{constructor:!0,$init:!0}),{actions:n,injectStore:function(e){var n=t.context(e);Object.defineProperty(r,"__ctx__",{get:function(){return n},configurable:!0}),r.$init(e)}}}(c,this);return{options:{namespaced:o,state:function(){return i?new i:{}},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}();class Ie{constructor(){(0,R.Z)(this,"id",""),(0,R.Z)(this,"baseRevision",0),(0,R.Z)(this,"tempUserRedirectUrl",null)}}class Pe{constructor(e,t){(0,R.Z)(this,"id",void 0),(0,R.Z)(this,"statements",void 0),this.id=e,this.statements=t}}class Ne{constructor(e,t){(0,R.Z)(this,"entity",void 0),(0,R.Z)(this,"revisionId",void 0),this.entity=e,this.revisionId=t}}function Ce(e){return JSON.parse(JSON.stringify(e))}r(8862);const De=new ke({state:class{},mutations:class extends le{setStatements(e){this.state[e.entityId]=Ce(e.statements)}reset(){for(const e of Object.getOwnPropertyNames(this.state))delete this.state[e]}},actions:class extends pe{initStatements(e){return this.commit("setStatements",{entityId:e.entityId,statements:e.statements}),Promise.resolve()}},getters:class extends ue{get containsEntity(){return e=>void 0!==this.state[e]}get propertyExists(){return e=>null!==e.resolveStatementGroup(this.state)}get isStatementGroupAmbiguous(){return e=>{const t=e.resolveStatementGroup(this.state);return null!==t&&t.length>1}}get rank(){return e=>{var t;const r=e.resolveStatement(this.state);return null!==(t=null==r?void 0:r.rank)&&void 0!==t?t:null}}get dataValue(){return e=>{var t;const r=e.resolveSnakInStatement(this.state);return null!==(t=null==r?void 0:r.datavalue)&&void 0!==t?t:null}}get snakType(){return e=>{var t;const r=e.resolveSnakInStatement(this.state);return null!==(t=null==r?void 0:r.snaktype)&&void 0!==t?t:null}}get dataType(){return e=>{var t;const r=e.resolveSnakInStatement(this.state);return null!==(t=null==r?void 0:r.datatype)&&void 0!==t?t:null}}get dataValueType(){return e=>{var t,r;const n=e.resolveSnakInStatement(this.state);return null!==(t=null==n||null===(r=n.datavalue)||void 0===r?void 0:r.type)&&void 0!==t?t:null}}}});class xe{constructor(e,t){(0,R.Z)(this,"entityRevision",void 0),(0,R.Z)(this,"redirectUrl",void 0),this.entityRevision=e,this.redirectUrl=t}}const Me=new ke({state:Ie,mutations:class extends le{updateEntity(e){this.state.id=e.id}updateRevision(e){this.state.baseRevision=e}updateTempUserRedirectUrl(e){this.state.tempUserRedirectUrl=e}reset(){Object.assign(this.state,new Ie)}},actions:class extends pe{constructor(...e){super(...e),(0,R.Z)(this,"store",void 0),(0,R.Z)(this,"statementsModule",void 0)}$init(e){this.store=e,this.statementsModule=De.context(e)}entityInit(e){return this.store.$services.get("readingEntityRepository").getEntity(e.entity).then((e=>this.dispatch("entityWrite",new xe(e))))}entitySave(e){const t=this.state.id,r=new Pe(t,e.statements),n=new Ne(new Pe(t,this.statementsModule.state[t]),this.state.baseRevision);return this.store.$services.get("writingEntityRepository").saveEntity(r,n,e.assertUser).then((e=>this.dispatch("entityWrite",e)))}entityWrite(e){return this.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})}}});var Le;!function(e){e.REPLACE="replace",e.UPDATE="update"}(Le||(Le={}));var Ue,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={}));var je=Ue;class $e{apply(e,t,r){const n=t.resolveSnakInStatement(r);if(null===n)throw new Error(je.NO_SNAK_FOUND);if(void 0!==n.datavalue&&e.type!==n.datavalue.type)throw new Error(je.INCONSISTENT_PAYLOAD_TYPE);return n.snaktype="value",n.datavalue=e,r}}class Ge{apply(e,t,r){const n=t.resolveStatementGroup(r),o=t.resolveStatement(r);if(null===n)throw new Error(je.NO_STATEMENT_GROUP_FOUND);if(null===o)throw new Error(je.NO_SNAK_FOUND);const i=o.mainsnak;if(void 0!==i.datavalue&&e.type!==i.datavalue.type)throw new Error(je.INCONSISTENT_PAYLOAD_TYPE);o.rank="normal";const s=this.buildNewPreferredStatement(i,e);return n.push(s),r}buildNewPreferredStatement(e,t){return{rank:"preferred",type:"statement",mainsnak:{snaktype:"value",property:e.property,datatype:e.datatype,datavalue:t}}}}function Ve(e){switch(e){case Be.REPLACE:return new $e;case Be.UPDATE:return new Ge}}var Fe=r(251),He=r.n(Fe),Ye=r(4785);class Ke{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)}}class We extends le{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){var t;this.state.config=(0,P.Z)((0,P.Z)({},this.state.config),{},{stringMaxLength:null===(t=e.dataTypeLimits)||void 0===t?void 0:t.string.maxLength,dataRightsText:e.dataRightsText,dataRightsUrl:e.dataRightsUrl,termsOfUseUrl:e.termsOfUseUrl})}setTempUserConfig(e){this.state.tempUserEnabled=e.enabled}reset(){Object.assign(this.state,new Ke)}}function Ze(e){return t=>{t.subscribe((({type:t,payload:r})=>{(function(e,t){return e===We.prototype.addApplicationErrors.name})(t)&&r.forEach((t=>e.trackError(t.type)))}))}}const qe=new ke({state:Ke,getters:class extends ue{constructor(...e){super(...e),(0,R.Z)(this,"statementModule",void 0)}$init(e){this.statementModule=De.context(e)}get targetLabel(){var e;return null!==(e=this.state.targetLabel)&&void 0!==e?e:{language:"zxx",value:this.state.targetProperty}}get targetReferences(){try{var e;const t=this.state,r=t.entity.id;return null!==(e=t.statements[r][this.state.targetProperty][0].references)&&void 0!==e?e:[]}catch(e){return[]}}get isTargetValueModified(){if(this.state.applicationStatus===C.INITIALIZING)return!1;const e=this.state,t=e.entity.id;return!He()(this.state.targetValue,e.statements[t][this.state.targetProperty][0].mainsnak.datavalue,{strict:!0})}get canStartSaving(){return null!==this.state.editDecision&&this.getters.isTargetValueModified&&this.getters.applicationStatus===C.READY}get isGenericSavingError(){return this.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)))}get isAssertUserFailedError(){return 1===this.state.applicationErrors.length&&this.state.applicationErrors[0].type===N.ASSERT_USER_FAILED}get isEditConflictError(){return 1===this.state.applicationErrors.length&&this.state.applicationErrors[0].type===N.EDIT_CONFLICT}get canGoToPreviousState(){return this.getters.isGenericSavingError||this.getters.isAssertUserFailedError}get applicationStatus(){return this.state.applicationErrors.length>0?C.ERROR:this.state.applicationStatus}get reportIssueTemplateBody(){const e=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: "+(new Date).toISOString(),"Debug information:","```",r,"```"].join("\n")}get issueReportingLinkConfig(){const e=this.state.config;if(null===e.issueReportingLink)throw new Error("not correctly initialized");return e.issueReportingLink}get config(){return this.state.config}},mutations:We,actions:class extends pe{constructor(...e){super(...e),(0,R.Z)(this,"store",void 0),(0,R.Z)(this,"entityModule",void 0),(0,R.Z)(this,"statementModule",void 0),(0,R.Z)(this,"statementMutationFactory",void 0)}$init(e){this.store=e,this.entityModule=Me.context(e),this.statementModule=De.context(e),this.statementMutationFactory=Ve}relaunchBridge(e){return this.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);const t=e=>e instanceof T&&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})]);return r().catch((e=>{if(!t(e))throw e;return r().then((e=>(this.store.$services.get("tracker").trackRecoveredError(N.CENTRALAUTH_BADTOKEN),e)))})).then((e=>this.dispatch("initBridgeWithRemoteData",{results:e})),(e=>{const r=t(e)?N.CENTRALAUTH_BADTOKEN:N.INITIALIZATION_ERROR;throw this.commit("addApplicationErrors",[{type:r,info:e}]),e})).then((()=>{this.commit("setApplicationStatus",C.READY)}))}initBridgeWithRemoteData({results:[e,t,r,n,o]}){var i=this;return(0,O.Z)((function*(){if(!r.length){i.store.$services.get("tracker").trackPropertyDatatype(n);try{yield i.dispatch("renderReferences")}catch(e){i.store.$services.get("tracker").trackError("render_references")}return i.commit("setRepoConfig",e),i.commit("setTempUserConfig",t),i.dispatch("postEntityLoad")}i.commit("addApplicationErrors",r)}))()}renderReferences(){var e=this;return(0,O.Z)((function*(){const t=yield e.store.$services.get("referencesRenderingRepository").getRenderedReferences(e.getters.targetReferences);e.commit("setRenderedTargetReferences",t)}))()}postEntityLoad(){var e=this;return(0,O.Z)((function*(){const t=e.state,r=new D(t.entity.id,t.targetProperty,0);yield e.dispatch("validateEntityState",r),e.getters.applicationStatus!==C.ERROR&&e.commit("setTargetValue",r.resolveSnakInStatement(t.statements).datavalue)}))()}requestAndSetTargetLabel(e){return this.store.$services.get("entityLabelRepository").getLabel(e).then((e=>{this.commit("setTargetLabel",e)}),(e=>{}))}validateEntityState(e){return this.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)return Promise.resolve();if(this.statementModule.getters.isStatementGroupAmbiguous(e))return this.dispatch("addError",[{type:N.UNSUPPORTED_AMBIGUOUS_STATEMENT}]);if("deprecated"===this.statementModule.getters.rank(e))return this.dispatch("addError",[{type:N.UNSUPPORTED_DEPRECATED_STATEMENT}]);const t=this.statementModule.getters.snakType(e);if(null===t)throw new Error("If snak type is missing, there should have been an error earlier");if("value"!==t){const e={type:N.UNSUPPORTED_SNAK_TYPE,info:{snakType:t}};return this.dispatch("addError",[e])}const r=this.statementModule.getters.dataType(e);if(null===r)throw new Error("If snak is missing, there should have been an error earlier");if("string"!==r){const e={type:N.UNSUPPORTED_DATATYPE,info:{unsupportedDatatype:r}};return this.dispatch("addError",[e])}return"string"!==this.statementModule.getters.dataValueType(e)?this.dispatch("addError",[{type:N.UNSUPPORTED_DATAVALUE_TYPE}]):Promise.resolve()}setTargetValue(e){return this.state.applicationStatus!==C.READY?(this.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:{stack:(new Error).stack}}]),Promise.reject(null)):(this.commit("setTargetValue",e),Promise.resolve())}saveBridge(){var e=this;return(0,O.Z)((function*(){if(e.state.applicationStatus!==C.READY)return e.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:{stack:(new Error).stack}}]),Promise.reject(null);e.commit("setApplicationStatus",C.SAVING);const t=e.state,r=t.entity.id,n=new D(r,t.targetProperty,0);let o;try{o=e.statementMutationFactory(t.editDecision).apply(t.targetValue,n,Ce(t.statements))}catch(t){throw e.commit("addApplicationErrors",[{type:N.APPLICATION_LOGIC_ERROR,info:t}]),t}return e.entityModule.dispatch("entitySave",{statements:o[r],assertUser:e.state.assertUserWhenSaving}).catch((t=>{throw t instanceof A&&t.errors.some((e=>e.type===N.EDIT_CONFLICT))&&e.dispatch("purgeTargetPage"),t instanceof A?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(){return this.store.$services.get("purgeTitles").purge([this.state.pageTitle]).catch((()=>{this.store.$services.get("tracker").trackError("purge")}))}retrySave(){var e=this;return(0,O.Z)((function*(){return yield e.dispatch("goBackFromErrorToReady"),e.dispatch("saveBridge")}))()}goBackFromErrorToReady(){return this.commit("clearApplicationErrors"),this.commit("setApplicationStatus",C.READY),Promise.resolve()}addError(e){return this.commit("addApplicationErrors",e),Promise.resolve()}setEditDecision(e){return this.commit("setEditDecision",e),Promise.resolve()}trackErrorsFallingBackToGenericView(){var e=this;return(0,O.Z)((function*(){for(const t of e.state.applicationErrors)e.store.$services.get("tracker").trackUnknownError(t.type)}))()}trackSavingErrorsFallingBackToGenericView(){var e=this;return(0,O.Z)((function*(){for(const t of e.state.applicationErrors)e.store.$services.get("tracker").trackSavingUnknownError(t.type)}))()}dismissWarningAnonymousEdit(){return this.commit("setShowWarningAnonymousEdit",!1),Promise.resolve()}stopAssertingUserWhenSaving(){return this.commit("setAssertUserWhenSaving",!1),Promise.resolve()}},modules:{entity:Me,statements:De}});function ze(e){const t=function(e,t){void 0===t&&(t={});var r=e.create([],""),n=r.options,o=r.injectStore;return new ne(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"))]});return t.$services=e,t}var Je,Qe=(0,n.defineComponent)({computed:{rootModule(){return qe.context(this.$store)},entityModule(){return Me.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={}));var Xe,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(){return this.rootModule.state.tempUserEnabled},notificationMessageKey(){return this.tempUserEnabled?tt.ANONYMOUS_EDIT_WARNING_TEMPUSER_MESSAGE:tt.ANONYMOUS_EDIT_WARNING_MESSAGE},notificationType(){return this.tempUserEnabled?"notice":"warning"}},methods:{proceed(){this.$emit("proceed")}},compatConfig:{MODE:3}}),nt=(0,v.Z)(rt,[["render",function(e,t,r,o,i,s){const p=(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)]),void 0,!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={}));var ot=(0,P.Z)((0,P.Z)({},Xe),et);const it={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"};var pt=(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")])}]]);const ft={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"};var Et=(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(){return this.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(){return this.rootModule.state.editDecision},set(e){if(null===e)throw new Error("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){const a=(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})]),void 0,!0),_:1})])}]]);const wt={class:"wb-db-string-value"},Ot=["for"];var Rt=(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){const a=(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)}]]);const It=["value","maxlength"];r(4916),r(5306);var Pt,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:void 0}),mounted(){this.windowResizeHandler=Ct()((()=>this.resizeTextField()),100),window.addEventListener("resize",this.windowResizeHandler),this.resizeTextField()},unmounted(){void 0!==this.windowResizeHandler&&(window.removeEventListener("resize",this.windowResizeHandler),this.windowResizeHandler=void 0)},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(){const e=this.$el;e.style.height="0";const t=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=new Uint8Array(16);function Lt(){if(!Pt&&!(Pt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pt(Mt)}for(var Ut=/^(?:[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"==typeof e&&Ut.test(e)},jt=[],$t=0;$t<256;++$t)jt.push(($t+256).toString(16).substr(1));var Gt=function(e){var t=arguments.length>1&&void 0!==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))throw TypeError("Stringified UUID is invalid");return r},Vt=function(e,t,r){var n=(e=e||{}).random||(e.rng||Lt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return Gt(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:void 0},maxlength:{type:Number,required:!1,default:void 0},setDataValue:{required:!0,type:Function}},components:{PropertyLabel:kt,ResizingTextField:xt},data:()=>({id:Vt()}),computed:{value:{get(){return this.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){const a=(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"])])}]]);const Yt={class:"wb-db-references"},Kt={class:"wb-db-references__heading"},Wt={class:"wb-db-references__note"},Zt={class:"wb-db-references__list"},qt=["innerHTML"];var zt=(0,n.defineComponent)({mixins:[Qe],name:"ReferenceSection",computed:{renderedTargetReferences(){return this.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(){const e=this.rootModule.state.targetValue;if(null===e)throw new Error("not yet ready!");return e},targetLabel(){return this.rootModule.getters.targetLabel},valueMaxLength(){return this.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){const a=(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)])}]]);const er={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)];var nr=(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){const a=(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)])}]]);const ar={class:"wb-db-error"};r(2479);const cr={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"];var mr,yr=(0,n.defineComponent)({name:"BailoutActions",components:{EventEmittingButton:E},props:{originalHref:{type:String,required:!0},pageTitle:{required:!0,type:String}},computed:{editArticleUrl(){return this.$clientRouter.getPageUrl(this.pageTitle,{action:"edit"})}},compatConfig:{MODE:3}}),vr=(0,v.Z)(yr,[["render",function(e,t,r,o,i,s){const a=(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(){return this.rootModule.state.pageTitle},originalHref(){return this.rootModule.state.originalHref},messageHeaderKey(){switch(this.snakType){case"somevalue":return this.$messages.KEYS.SOMEVALUE_ERROR_HEAD;case"novalue":return this.$messages.KEYS.NOVALUE_ERROR_HEAD;default:throw new Error("No message for unsupported snak type "+this.snakType)}},messageBodyKey(){switch(this.snakType){case"somevalue":return this.$messages.KEYS.SOMEVALUE_ERROR_BODY;case"novalue":return this.$messages.KEYS.NOVALUE_ERROR_BODY;default:throw new Error("No message for unsupported snak type "+this.snakType)}}},compatConfig:{MODE:3}}),br=(0,v.Z)(Er,[["render",function(e,t,r,o,i,s){const a=(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)]),void 0,!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={}));const Sr={class:"wb-db-error-permission"},_r={class:"wb-db-error-permission__heading"},wr={class:"wb-db-error-permission-info"},Or=["innerHTML"],Rr=["innerHTML"];var Tr=(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)])}]]);const kr=["href"];var Ir=(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))])}]]);const Nr=["href"],Cr={key:1};var Dr=(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))])}]]);const Mr={[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"}};var Lr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorPermission",components:{ErrorPermissionInfo:Ar},props:{permissionErrors:{type:Array,required:!0}},computed:{entityTitle(){return this.rootModule.state.entityTitle}},methods:{getMessageHeader(e){return this.$messages.get(this.$messages.KEYS[this.messageHeaderKey(e)],...this.messageHeaderParameters(e))},getMessageBody(e){return this.$messages.get(this.$messages.KEYS[this.messageBodyKey(e)],...this.messageBodyParameters(e))},buildTalkPageNamespace(){if(this.entityTitle.includes(":")){const e=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){const t=[];switch(e.type){case mr.ITEM_FULLY_PROTECTED:t.push(this.$repoRouter.getPageUrl("Project:Page_protection_policy"),this.$repoRouter.getPageUrl("Project:Administrators"));break;case mr.ITEM_SEMI_PROTECTED:t.push(this.$repoRouter.getPageUrl("Project:Page_protection_policy"),this.$repoRouter.getPageUrl("Project:Autoconfirmed_users"));break;case mr.ITEM_CASCADE_PROTECTED:t.push("",this.$repoRouter.getPageUrl("Project:Administrators"))}return t},messageBodyParameters(e){const t=[];switch(e.type){case mr.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}case mr.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}case mr.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;case mr.ITEM_SEMI_PROTECTED:t.push(this.$repoRouter.getPageUrl("Special:Log/protect",{page:this.entityTitle}),this.$repoRouter.getPageUrl(this.buildTalkPageNamespace()));break;case mr.ITEM_CASCADE_PROTECTED:t.push(e.info.pages.length.toString(),this.convertToHtmlList(e.info.pages,this.$repoRouter));break;case mr.PAGE_CASCADE_PROTECTED:t.push(e.info.pages.length.toString(),this.convertToHtmlList(e.info.pages,this.$clientRouter))}return t},bdi(e){const t=document.createElement("bdi");return t.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){const a=(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))])}]]);const Br={class:"wb-db-error-unknown"},jr={class:"wb-db-error-unknown__heading"},$r=["innerHTML"];var Gr=(0,n.defineComponent)({mixins:[Qe],name:"ReportIssue",computed:{message(){return this.$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){const a=(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)]),void 0,!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"])])}]]);const Yr={class:"wb-db-unsupported-datatype"},Kr=["innerHTML"],Wr=["innerHTML"];var Zr=(0,n.defineComponent)({mixins:[Qe],name:"ErrorUnsupportedDatatype",components:{IconMessageBox:w,BailoutActions:vr},props:{dataType:{type:String,required:!0}},computed:{pageTitle(){return this.rootModule.state.pageTitle},originalHref(){return this.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){const a=(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)]),void 0,!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"])])}]]);const zr={class:"wb-db-deprecated-statement"},Jr=["innerHTML"],Qr=["innerHTML"];var Xr=(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(){return this.rootModule.state.pageTitle},originalHref(){return this.rootModule.state.originalHref}},compatConfig:{MODE:3}}),en=(0,v.Z)(Xr,[["render",function(e,t,r,o,i,s){const a=(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)]),void 0,!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"])])}]]);const tn={class:"wb-db-ambiguous-statement"},rn={class:"wb-db-ambiguous-statement__head"},nn=["innerHTML"];var on=(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(){return this.rootModule.state.pageTitle},originalHref(){return this.rootModule.state.originalHref}},compatConfig:{MODE:3}}),sn=(0,v.Z)(on,[["render",function(e,t,r,o,i,s){const a=(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)]),void 0,!0),_:1}),(0,n.createVNode)(c,{"original-href":e.originalHref,"page-title":e.pageTitle},null,8,["original-href","page-title"])])}]]);const an={class:"wb-db-error-saving"},cn={class:"wb-db-error-saving__heading"},un={class:"wb-db-error-saving__buttons"};var ln=(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){const a=(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)]),void 0,!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"])])])}]]);const dn={class:"wb-db-error-saving-assertuser"},fn={class:"wb-db-error-saving-assertuser__heading"},gn={class:"wb-db-error-saving-assertuser__buttons"};var hn=(0,n.defineComponent)({mixins:[Qe],name:"ErrorSavingAssertUser",components:{EventEmittingButton:E,IconMessageBox:w},props:{loginUrl:{required:!0,type:String}},computed:{publishOrSave(){return this.rootModule.getters.config.usePublish?this.$messages.KEYS.SAVING_ERROR_ASSERTUSER_PUBLISH:this.$messages.KEYS.SAVING_ERROR_ASSERTUSER_SAVE}},methods:{proceed(){var e=this;return(0,O.Z)((function*(){yield e.rootModule.dispatch("stopAssertingUserWhenSaving"),yield e.rootModule.dispatch("retrySave")}))()},back(){this.rootModule.dispatch("goBackFromErrorToReady")}},compatConfig:{MODE:3}}),mn=(0,v.Z)(hn,[["render",function(e,t,r,o,i,s){const a=(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)]),void 0,!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"])])])}]]);const yn={class:"wb-db-error-saving-edit-conflict"},vn={class:"wb-db-error-saving-edit-conflict__heading"};var En=(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){const a=(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)]),void 0,!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"])])}]]);function Sn(e){return Object.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(){return this.rootModule.state.applicationErrors},permissionErrors(){return this.applicationErrors.filter(Sn)},unsupportedDatatypeError(){for(const e of this.applicationErrors)if(e.type===N.UNSUPPORTED_DATATYPE)return e;return null},statementValueIsDeprecated(){return this.applicationErrors.some((e=>e.type===N.UNSUPPORTED_DEPRECATED_STATEMENT))},statementIsAmbiguous(){return this.applicationErrors.some((e=>e.type===N.UNSUPPORTED_AMBIGUOUS_STATEMENT))},unsupportedSnakTypeError(){for(const e of this.applicationErrors)if(e.type===N.UNSUPPORTED_SNAK_TYPE)return e;return null},isGenericSavingError(){return this.rootModule.getters.isGenericSavingError},isAssertUserFailedError(){return this.rootModule.getters.isAssertUserFailedError},isEditConflictError(){return this.rootModule.getters.isEditConflictError},loginUrl(){return this.$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){const a=(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"]))])}]]);const On={class:"wb-db-license"},Rn={class:"wb-db-license__button"},Tn={class:"wb-db-license__text"},An={class:"wb-db-license__heading"},kn=["innerHTML"];var In=(0,n.defineComponent)({name:"License",mixins:[Qe],components:{EventEmittingButton:E},emits:["close"],computed:{publishOrSave(){return this.rootModule.getters.config.usePublish?this.$messages.KEYS.PUBLISH_CHANGES:this.$messages.KEYS.SAVE_CHANGES},getBodyMessage(){var e,t,r;const n=this.rootModule.getters.config;return this.$messages.get(this.$messages.KEYS.LICENSE_BODY,this.publishOrSave,null!==(e=n.termsOfUseUrl)&&void 0!==e?e:"",null!==(t=n.dataRightsUrl)&&void 0!==t?t:"",null!==(r=n.dataRightsText)&&void 0!==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){const a=(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)])])}]]);const Nn={class:"wb-db-thankyou"},Cn={class:"wb-db-thankyou__head"},Dn={class:"wb-db-thankyou__body"},xn={class:"wb-db-thankyou__button"};var Mn=(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){const a=(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"])])])}]]);const Un=["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);var Hn,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(){const e=(0,n.createApp)(Tt,{term:this.rootModule.getters.targetLabel,inLanguage:this.$inLanguage}).mount(document.createElement("span")).$el;return this.$messages.get(this.$messages.KEYS.BRIDGE_DIALOG_TITLE,e)},canGoBack(){return this.rootModule.getters.canGoToPreviousState},isSaved(){return this.rootModule.getters.applicationStatus===C.SAVED},hasError(){return this.rootModule.getters.applicationStatus===C.ERROR},hasWarning(){return this.rootModule.state.showWarningAnonymousEdit},publishOrSave(){return this.rootModule.getters.config.usePublish?this.$messages.KEYS.PUBLISH_CHANGES:this.$messages.KEYS.SAVE_CHANGES},canStartSaving(){return this.rootModule.getters.canStartSaving},isSaving(){return this.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){const a=(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(){return this.isSaving||this.licenseIsVisible},isSaving(){return this.rootModule.getters.applicationStatus===C.SAVING},isInitializing(){return this.rootModule.getters.applicationStatus===C.INITIALIZING},isSaved(){return this.rootModule.getters.applicationStatus===C.SAVED},hasError(){return this.rootModule.getters.applicationStatus===C.ERROR},hasErrorRequiringReload(){return this.hasError&&this.rootModule.getters.isEditConflictError},repoLink(){return this.rootModule.state.originalHref},showWarningAnonymousEdit(){return this.rootModule.state.showWarningAnonymousEdit},tempUserRedirectUrl(){return this.entityModule.state.tempUserRedirectUrl},loginUrl(){return this.$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){const l=(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"])]),void 0,!0),_:1},8,["is-initializing","is-saving"]))])])}]]),Jn=r(7187);function Qn(e,t){e.config.globalProperties.$inLanguage=e=>{if(!e)throw new Error("mwLangCode must be provided");const r=t.resolve(e);return{lang:r.code,dir:r.directionality}}}class Xn{constructor(e){(0,R.Z)(this,"KEYS",tt),(0,R.Z)(this,"messagesRepository",void 0),this.messagesRepository=e}get(e,...t){return this.messagesRepository.get(e,...t)}getText(e,...t){return this.messagesRepository.getText(e,...t)}}function eo(e,t){e.config.globalProperties.$messages=new Xn(t)}function to(e,t){e.config.globalProperties.$repoRouter=t}function ro(e,t){e.config.globalProperties.$clientRouter=t}class no extends Error{}class oo extends Error{constructor(e){super("request error"),(0,R.Z)(this,"error",void 0),this.error=e}}class io{constructor(e){(0,R.Z)(this,"api",void 0),this.api=e}postWithEditTokenAndAssertUser(e){return Promise.resolve(this.api.postWithEditToken(this.api.assertCurrentUser(this.mapParameters(e))).catch(this.mwApiRejectionToError))}postWithEditToken(e){return Promise.resolve(this.api.postWithEditToken(this.mapParameters(e)).catch(this.mwApiRejectionToError))}get(e){return Promise.resolve(this.api.get(this.mapParameters(e)).catch(this.mwApiRejectionToError))}mapParameters(e){const t={};for(const r of Object.keys(e)){const n=e[r];n instanceof Set?t[r]=[...n]:t[r]=n}return t}mwApiRejectionToError(e,t,r,n){switch(e){case"http":throw new oo(t.xhr);case"ok-but-empty":throw new no(t);default:{const e=t;throw e.error?new T([e.error]):e.errors?new T(e.errors):new no("mw.Api rejected but result does not contain error(s)")}}}}class so extends Error{}function ao(e,t){if("object"!=typeof e.entities)throw new no("Result not well formed.");const r=e.entities[t];if(!r)throw new so("Result does not contain relevant entity.");if("missing"in r)throw new so("Entity flagged missing in response.");return r}function co(e){throw e instanceof T&&1===e.errors.length&&"no-such-entity"===e.errors[0].code?new so("Entity flagged missing in response."):e}class uo{constructor(e){(0,R.Z)(this,"api",void 0),this.api=e}getEntity(e){var t=this;return(0,O.Z)((function*(){const r=ao(yield t.api.get({action:"wbgetentities",ids:new Set([e]),props:new Set(["info","claims"])}).catch(co),e);return new Ne(new Pe(e,r.claims),r.lastrevid)}))()}}r(285),r(1637);class lo{constructor(e,t){(0,R.Z)(this,"api",void 0),(0,R.Z)(this,"tags",void 0),this.api=e,this.tags=t||void 0}saveEntity(e,t,r=!0){const n={action:"wbeditentity",id:e.id,baserevid:null==t?void 0:t.revisionId,data:JSON.stringify({claims:e.statements}),tags:this.tags};let o;return o=r?this.api.postWithEditTokenAndAssertUser(n):this.api.postWithEditToken(n),o.then((e=>{const t=e.tempuserredirect,r=t?new URL(t):void 0;return new xe(new Ne(new Pe(e.entity.id,e.entity.claims),e.entity.lastrevid),r)}),(e=>{if(!(e instanceof T))throw e;throw new A(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}}})))}))}}class po{constructor(e){(0,R.Z)(this,"api",void 0),(0,R.Z)(this,"requests",void 0),this.api=e,this.requests=[]}get(e){for(const o of this.requests){const t=this.mergeParams(o.params,e);if(!1!==t)return o.params=t,o.promise}let t,r;const n=new Promise(((e,n)=>{t=e,r=n}));return this.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}of this.requests)this.api.get(e).then(t,r);this.requests.length=0}mergeParams(e,t){const r=new Set([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),n={};for(const o of r){const r=void 0!==e[o],i=void 0!==t[o];if(!r||!i){n[o]=(r?e:t)[o];continue}const s=e[o],a=t[o];if(s instanceof Set&&a instanceof Set){const e=new Set;n[o]=e;for(const t of[s,a])for(const r of t)e.add(String(r));continue}if(s instanceof Array||a instanceof Array)return!1;if("boolean"==typeof s&&"boolean"==typeof a){if(s===a){n[o]=s;continue}return!1}const c=String(s);if(c!==String(a))return!1;n[o]=c}return n}}class fo{constructor(e){(0,R.Z)(this,"getUrl",void 0),this.getUrl=e}getPageUrl(e,t){return this.getUrl(e,t)}}class go{constructor(e){(0,R.Z)(this,"apiWritingRepository",void 0),this.apiWritingRepository=e}saveEntity(e,t,r=!0){var n=this;return(0,O.Z)((function*(){return t&&(e=n.trimEntity(e,t.entity)),n.apiWritingRepository.saveEntity(e,t,r)}))()}trimEntity(e,t){if(e.id!==t.id)throw new no("Entity ID mismatch");const r=this.trimStatementMap(e.statements,t.statements);return new Pe(e.id,r)}trimStatementMap(e,t){const r={},n=new Set([...Object.keys(e),...Object.keys(t)]);for(const o of n)if(o in t){const n=t[o];if(!(o in e))throw new no("Cannot remove statement group");{const t=e[o],i=this.trimStatementGroup(t,n);null!==i&&(r[o]=i)}}else r[o]=e[o];return r}trimStatementGroup(e,t){const r=function(e){const t={};for(const r of e)r.id&&(t[r.id]=r);return t}(t),n=[];for(const o of e){if(!o.id){n.push(o);continue}const e=r[o.id];if(delete r[o.id],e){const t=this.trimStatement(o,e);null!==t&&n.push(t)}else n.push(o)}if(Object.keys(r).length)throw new no("Cannot remove statement");return n.length?n:null}trimStatement(e,t){return He()(e,t)?null:e}}class ho{constructor(){(0,R.Z)(this,"services",{})}set(e,t){this.services[e]=t}get(e){if(void 0===this.services[e])throw new Error(e+" is undefined");return this.services[e]}}class mo{constructor(e,t){(0,R.Z)(this,"directionalityResolver",void 0),(0,R.Z)(this,"bcp47Resolver",void 0),this.directionalityResolver=t.getDir,this.bcp47Resolver=e.bcp47}resolve(e){return{code:this.bcp47Resolver(e),directionality:this.directionalityResolver(e)}}}class yo{constructor(e,t,r){(0,R.Z)(this,"repoConfig",void 0),(0,R.Z)(this,"wikiUrlencode",void 0),(0,R.Z)(this,"querySerializer",void 0),this.repoConfig=e,this.wikiUrlencode=t,this.querySerializer=r}getPageUrl(e,t){let r,n;return t&&(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"){return this.repoConfig.url+this.repoConfig.scriptPath+"/"+e}}class vo{constructor(e){(0,R.Z)(this,"mwMessages",void 0),this.mwMessages=e}get(e,...t){return this.mwMessages(e,...t).parse()}getText(e,...t){return this.mwMessages(e,...t).text()}}class Eo{constructor(e){(0,R.Z)(this,"api",void 0),this.api=e}getRepoConfiguration(){var e=this;return(0,O.Z)((function*(){const t=yield e.api.get({action:"query",meta:new Set(["wbdatabridgeconfig"]),errorformat:"raw",formatversion:2});if(e.responseWarnsAboutDisabledRepoConfiguration(t))throw new no("Result indicates repo API is disabled (see dataBridgeEnabled).");if(!e.isWellFormedResponse(t.query))throw new no("Result not well formed.");return t.query.wbdatabridgeconfig}))()}responseWarnsAboutDisabledRepoConfiguration(e){return Array.isArray(e.warnings)&&e.warnings.some((e=>"unrecognizedvalues"===e.code&&"query"===e.module))}isWellFormedResponse(e){var t,r;const n=e;return"object"==typeof n.wbdatabridgeconfig&&"string"==typeof n.wbdatabridgeconfig.dataRightsUrl&&"string"==typeof n.wbdatabridgeconfig.dataRightsText&&"string"==typeof n.wbdatabridgeconfig.termsOfUseUrl&&"number"==typeof(null===(t=n.wbdatabridgeconfig.dataTypeLimits)||void 0===t||null===(r=t.string)||void 0===r?void 0:r.maxLength)}}function bo(e){return(e||"error-type-undefined").toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/^[^a-z0-9]|[^a-z0-9]$/g,"")}class So{constructor(e){(0,R.Z)(this,"tracker",void 0),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",void 0),this.api=e}getDataType(e){var t=this;return(0,O.Z)((function*(){return ao(yield t.api.get({action:"wbgetentities",props:new Set(["datatype"]),ids:new Set([e]),errorformat:"raw",formatversion:2}).catch(co),e).datatype}))()}}class wo extends Error{}class Oo{constructor(e,t){(0,R.Z)(this,"forLanguageCode",void 0),(0,R.Z)(this,"api",void 0),this.forLanguageCode=e,this.api=t}getLabel(e){var t=this;return(0,O.Z)((function*(){const r=ao(yield t.api.get({action:"wbgetentities",props:new Set(["labels"]),ids:new Set([e]),languages:new Set([t.forLanguageCode]),languagefallback:!0,errorformat:"raw",formatversion:2}).catch(co),e);if(!(t.forLanguageCode in r.labels))throw new wo(`Could not find label for language '${t.forLanguageCode}'.`);const n=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={}));class Ro{constructor(e,t){(0,R.Z)(this,"repoRepository",void 0),(0,R.Z)(this,"clientRepository",void 0),this.repoRepository=e,this.clientRepository=t}canUseBridgeForItemAndPage(e,t){var r=this;return(0,O.Z)((function*(){const[n,o]=yield Promise.all([r.repoRepository.getPermissionErrors(e),r.clientRepository.getPermissionErrors(t)]),i=[];return i.push(...n.map(r.repoErrorToMissingPermissionsError,r)),i.push(...o.map(r.clientErrorToMissingPermissionsError,r)),i}))()}repoErrorToMissingPermissionsError(e){switch(e.type){case Hn.PROTECTED_PAGE:return{type:e.semiProtected?mr.ITEM_SEMI_PROTECTED:mr.ITEM_FULLY_PROTECTED,info:{right:e.right}};case Hn.CASCADE_PROTECTED_PAGE:return{type:mr.ITEM_CASCADE_PROTECTED,info:{pages:e.pages}};case Hn.BLOCKED:return{type:mr.BLOCKED_ON_REPO_ITEM,info:this.mapBlockInfoFromPermissionErrorTypeToPageNotEditable(e.blockinfo)};case Hn.UNKNOWN:return this.unknownPermissionErrorToMissingPermissionsError(e)}}clientErrorToMissingPermissionsError(e){switch(e.type){case Hn.PROTECTED_PAGE:throw new no("Data Bridge should never have been opened on this protected page!");case Hn.CASCADE_PROTECTED_PAGE:return{type:mr.PAGE_CASCADE_PROTECTED,info:{pages:e.pages}};case Hn.BLOCKED:return{type:mr.BLOCKED_ON_CLIENT_PAGE,info:this.mapBlockInfoFromPermissionErrorTypeToPageNotEditable(e.blockinfo)};case Hn.UNKNOWN:return this.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}}}}class To extends Error{constructor(e){super(`The title '${e}' is invalid.`),(0,R.Z)(this,"title",void 0),this.title=e}}class Ao{constructor(e){(0,R.Z)(this,"api",void 0),this.api=e}getPermissionErrors(e){var t=this;return(0,O.Z)((function*(){const r=(yield t.api.get({action:"query",titles:new Set([e]),prop:new Set(["info"]),meta:new Set(["siteinfo"]),intestactions:new Set(["edit"]),intestactionsdetail:"full",siprop:new Set(["restrictions"]),errorformat:"raw",formatversion:2})).query,n=function(e,t){for(const r of e.normalized||[])if(r.from===t){t=r.to;break}for(const r of e.pages||[])if(r.title===t)return r;return null}(r,e);if(null===n)throw new no(`API did not return information for page '${e}'.`);if(n.invalid)throw new To(e);!function(e){if(!("actions"in e))throw new no("API info did not return test actions.")}(n),function(e){if(!("restrictions"in e))throw new no("API siteinfo did not return restrictions.")}(r);const o=r.restrictions.semiprotectedlevels.map(t.rewriteCompatibilityRight);return n.actions.edit.map((e=>t.apiErrorToPermissionError(e,o)))}))()}apiErrorToPermissionError(e,t){switch(function(e){if(!("key"in e)||!("params"in e))throw new no("API returned wrong error format.")}(e),e.code){case"protectedpage":{const r=e.params[0];return{type:Hn.PROTECTED_PAGE,right:r,semiProtected:t.includes(r)}}case"cascadeprotected":{const t=this.parseWikitextPagesList(e.params[1]);if(t.length!==e.params[0])throw new no(`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:return e}}parseWikitextPagesList(e){const t=e.split("\n"),r=t.pop();if(""!==r)throw new no("Wikitext did not end in blank line: "+r);return t.map((e=>{if(!e.startsWith("*"))throw new no("Line does not look like a list item: "+e);let t=e.slice(1);if(t.startsWith(" ")&&(t=t.slice(1)),!t.startsWith("[[")||!t.endsWith("]]"))throw new no("List item does not look like a wikilink: "+t);let r=t.slice(2,-2);return r.startsWith(":")&&(r=r.slice(1)),r}))}}class ko{constructor(e){(0,R.Z)(this,"api",void 0),(0,R.Z)(this,"TITLES_LIMIT",50),this.api=e}purge(e){if(e.length>this.TITLES_LIMIT)throw new no(`You cannot purge more than ${this.TITLES_LIMIT} titles`);return Promise.resolve(this.api.post({action:"purge",titles:e,forcelinkupdate:!0,errorformat:"raw",formatversion:2}))}}class Io{constructor(e,t){(0,R.Z)(this,"api",void 0),(0,R.Z)(this,"language",void 0),this.api=e,this.language=t}getRenderedReferences(e){return Promise.all(e.map((e=>this.renderSingleReference(e))))}renderSingleReference(e){var t=this;return(0,O.Z)((function*(){const r=yield t.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))throw new no("Reference formatting server response not well formed.");return r.wbformatreference.html}))()}isWellFormedFormatReferenceResponse(e){var t;return"string"==typeof(null==e||null===(t=e.wbformatreference)||void 0===t?void 0:t.html)}}class Po{constructor(e){(0,R.Z)(this,"api",void 0),this.api=e}getTempUserConfiguration(){var e=this;return(0,O.Z)((function*(){const t=yield e.api.get({action:"query",meta:new Set(["siteinfo"]),siprop:new Set(["autocreatetempuser"]),errorformat:"raw",formatversion:2});if(!e.isWellFormedResponse(t.query))throw new no("Result not well formed.");return t.query.autocreatetempuser}))()}isWellFormedResponse(e){const t=e;return"object"==typeof t.autocreatetempuser&&"boolean"==typeof t.autocreatetempuser.enabled}}function No(e,t,r){const n=new ho,o=e.mw.config.get("wbRepo"),i=new yo(o,e.mw.util.wikiUrlencode,e.$.param),s=new e.mw.Api;if(void 0===e.mw.ForeignApi)throw new Error("mw.ForeignApi was not loaded!");const a=new e.mw.ForeignApi(`${o.url}${o.scriptPath}/api.php`),c=new io(a),u=new po(c);n.set("readingEntityRepository",new uo(u)),n.set("writingEntityRepository",new go(new lo(c,0===t.length?void 0:t)));const l=e.mw.config.get("wgPageContentLanguage");if(n.set("entityLabelRepository",new Oo(l,u)),n.set("propertyDatatypeRepository",new _o(u)),void 0===e.$.uls)throw new Error("$.uls was not loaded!");n.set("languageInfoRepository",new mo(e.mw.language,e.$.uls.data)),n.set("messagesRepository",new vo(e.mw.message)),n.set("wikibaseRepoConfigRepository",new Eo(u)),n.set("tempUserConfigRepository",new Po(u)),n.set("tracker",new So(r));const p=new io(s);n.set("editAuthorizationChecker",new Ro(new Ao(u),new Ao(p))),n.set("referencesRenderingRepository",new Io(p,l)),n.set("repoRouter",i),n.set("clientRouter",new fo(e.mw.util.getUrl));const d=new ko(s);return n.set("purgeTitles",d),n}function Co(e,t,r,n){const o=ze(n);o.dispatch("initBridge",r);const i=new Jn.EventEmitter,s=e(zn,{emitter:i});return s.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";var n=r(210),o=r(5559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},5559:(e,t,r)=>{"use strict";var n=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){var t=a(n,s,arguments);if(c&&u){var r=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var p=function(){return a(n,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},1223:(e,t,r)=>{var n=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";var n=r(8710).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},8457:(e,t,r)=>{"use strict";var n=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){var t=s(e),r=u(this),n=arguments.length,h=n>1?arguments[1]:void 0,m=void 0!==h;m&&(h=o(h,n>2?arguments[2]:void 0));var y,v,E,b,S,_,w=f(t),O=0;if(!w||this==g&&c(w))for(y=l(t),v=r?new this(y):g(y);y>O;O++)_=m?h(t[O],O):t[O],p(v,O,_);else for(S=(b=d(t,w)).next,v=r?new this:[];!(E=i(S,b)).done;O++)_=m?a(b,h,[E.value,O],!0):E.value,p(v,O,_);return v.length=O,v}},1589:(e,t,r)=>{var n=r(7854),o=r(1400),i=r(6244),s=r(6135),a=n.Array,c=Math.max;e.exports=function(e,t,r){for(var n=i(e),u=o(t,n),l=o(void 0===r?n:r,n),p=a(c(l-u,0)),d=0;u<l;u++,d++)s(p,d,e[u]);return p.length=d,p}},4362:(e,t,r)=>{var n=r(1589),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?s(e,t):a(e,i(n(e,0,c),t),i(n(e,c),t),t)},s=function(e,t){for(var r,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)}return e},a=function(e,t,r,n){for(var o=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++];return e};e.exports=i},3411:(e,t,r)=>{var n=r(9670),o=r(9212);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},7741:(e,t,r)=>{var n=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"==typeof e)for(;t--;)e=n(e,i,"");return e}},8544:(e,t,r)=>{var n=r(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,r)=>{"use strict";var n=r(3383).IteratorPrototype,o=r(30),i=r(9114),s=r(8003),a=r(7497),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),s(e,l,!1,!0),a[l]=c,e}},6135:(e,t,r)=>{"use strict";var n=r(4948),o=r(3070),i=r(9114);e.exports=function(e,t,r){var s=n(t);s in e?o.f(e,s,i(0,r)):e[s]=r}},654:(e,t,r)=>{"use strict";var n=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(){return this};e.exports=function(e,t,r,s,g,m,w){c(r,t,s);var O,R,T,A=function(e){if(e===g&&C)return C;if(!b&&e in P)return P[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(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(new e)))!==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(){return o(N,this)})),g)if(R={values:A("values"),keys:m?C:A("keys"),entries:A("entries")},w)for(T in R)(b||I||!(T in P))&&f(P,T,R[T]);else n({target:t,proto:!0,forced:b||I},R);return i&&!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)=>{var n=r(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},2914:(e,t,r)=>{var n=r(7293),o=r(9114);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},7007:(e,t,r)=>{"use strict";r(4916);var n=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){var d=a(e),f=!s((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),g=f&&!s((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!f||!g||r){var h=n(/./[d]),m=t(d,""[e],(function(e,t,r,o,s){var a=n(e),c=t.exec;return c===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)=>{var n=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){var f=r+e.length,g=n.length,h=l;return void 0!==p&&(p=o(p),h=u),a(d,h,(function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,f);case"<":u=p[c(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>g){var d=i(l/10);return 0===d?o:d<=g?void 0===n[d-1]?s(a,1):n[d-1]+s(a,1):o}u=n[l-1]}return void 0===u?"":u}))}},8340:(e,t,r)=>{var n=r(111),o=r(8880);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},3383:(e,t,r)=>{"use strict";var n,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(){var e={};return n[f].call(e)!==e}))?n={}:d&&(n=c(n)),a(n[f])||l(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},590:(e,t,r)=>{var n=r(7293),o=r(5112),i=r(1913),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.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(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},6277:(e,t,r)=>{var n=r(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},1574:(e,t,r)=>{"use strict";var n=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;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=a(d({},t)).join("")}))?function(e,t){for(var r=l(e),o=arguments.length,s=1,d=c.f,f=u.f;o>s;)for(var h,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]);return r}:d},6048:(e,t,r)=>{var n=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(var r,n=a(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);return e}},8006:(e,t,r)=>{var n=r(6324),o=r(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},9518:(e,t,r)=>{var n=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){var t=s(e);if(o(t,u))return t[u];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?p:null}},7651:(e,t,r)=>{var n=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){var r=e.exec;if(s(r)){var n=o(r,e,t);return null!==n&&i(n),n}if("RegExp"===a(e))return o(c,e,t);throw u("RegExp#exec called on incompatible receiver")}},8710:(e,t,r)=>{var n=r(1702),o=r(9303),i=r(1340),s=r(4488),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(s(t)),d=o(r),f=p.length;return d<0||d>=f?e?"":void 0:(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";var n=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){return e+22+75*(e<26)},E=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},b=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=d(e,r++);if(o>=55296&&o<=56319&&r<n){var i=d(e,r++);56320==(64512&i)?g(t,((1023&o)<<10)+(1023&i)+65536):(g(t,o),r--)}else g(t,o)}return t}(e)).length,i=128,s=0,u=72;for(t=0;t<e.length;t++)(r=e[t])<128&&g(n,p(r));var h=n.length,m=h;for(h&&g(n,"-");m<o;){var y=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<y&&(y=r);var b=m+1;if(y-i>l((2147483647-s)/b))throw c(a);for(s+=(y-i)*b,i=y,t=0;t<e.length;t++){if((r=e[t])<i&&++s>2147483647)throw c(a);if(r==i){for(var S=s,_=36;;){var w=_<=u?1:_>=u+26?26:_-u;if(S<w)break;var O=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++}return f(n,"")};e.exports=function(e){var t,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);return f(n,".")}},8053:(e,t,r)=>{var n=r(7854).TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},9191:(e,t,r)=>{"use strict";var n=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){var m=h?2:1,y=e.split("."),v=y[y.length-1],E=n.apply(null,y);if(E){var b=E.prototype;if(!g&&o(b,"cause")&&delete b.cause,!r)return E;var S=n("Error"),_=t((function(e,t){var r=l(h?t:e,void 0),n=h?new E(e):new E;return void 0!==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";var n=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(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var f=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)=>{var n=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){var r={};r[e]=s(e,t,c),n({global:!0,forced:c},r)},l=function(e,t){if(a&&a[e]){var r={};r[e]=s("WebAssembly."+e,t,c),n({target:"WebAssembly",stat:!0,forced:c},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},8862:(e,t,r)=>{var n=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){var n=d(r,t-1),o=d(r,t+1);return p(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(var n=0,o=arguments.length,i=u(o);n<o;n++)i[n]=arguments[n];var a=s(l,null,i);return"string"==typeof a?g(a,m,E):a}})},9720:(e,t,r)=>{var n=r(2109),o=r(4699).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},4916:(e,t,r)=>{"use strict";var n=r(2109),o=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8783:(e,t,r)=>{"use strict";var n=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(){var e,t=c(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},5306:(e,t,r)=>{"use strict";var n=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){var i=T?"$":"$0";return[function(e,r){var n=f(this),i=null==e?void 0:h(e,v);return i?o(i,e,n,r):o(t,d(n),e,r)},function(e,o){var s=c(this),a=d(e);if("string"==typeof o&&-1===w(o,i)&&-1===w(o,"$<")){var f=r(t,s,a,o);if(f.done)return f.value}var h=u(o);h||(o=d(o));var v=s.global;if(v){var R=s.unicode;s.lastIndex=0}for(var T=[];;){var A=y(s,a);if(null===A)break;if(_(T,A),!v)break;""===d(A[0])&&(s.lastIndex=g(a,p(s.lastIndex),R))}for(var k,I="",P=0,N=0;N<T.length;N++){for(var C=d((A=T[N])[0]),D=E(b(l(A.index),a.length),0),x=[],M=1;M<A.length;M++)_(x,void 0===(k=A[M])?k:String(k));var L=A.groups;if(h){var U=S([C],x,D,a);void 0!==L&&_(U,L);var B=d(n(o,void 0,U))}else B=m(C,a,D,x,L,o);D>=P&&(I+=O(a,P,D)+B,P=D+C.length)}return I+O(a,P)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!R||T)},3948:(e,t,r)=>{var n=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(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(t){e[r]=s[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},1637:(e,t,r)=>{"use strict";r(6992);var n=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){return J[e-1]||(J[e-1]=B("((?:%[\\da-f]{2}){"+e+"})","gi"))},X=function(e){try{return $(e)}catch(t){return e}},ee=function(e){var t=Y(e,z," "),r=4;try{return $(t)}catch(e){for(;r;)t=Y(t,Q(r--),X);return t}},te=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ne=function(e){return re[e]},oe=function(e){return Y(G(e),te,ne)},ie=d((function(e,t){P(this,{type:"URLSearchParamsIterator",iterator:O(N(e).entries),kind:t})}),"Iterator",(function(){var e=C(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.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,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?q(e,1):e:S(e)))};se.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,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)throw j("Expected sequence with length 2");H(this.entries,{key:S(a.value),value:S(c.value)})}else for(var l in e)m(e,l)&&H(this.entries,{key:l,value:S(e[l])})},parseQuery:function(e){if(e)for(var t,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(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],H(r,oe(e.key)+"="+oe(e.value));return F(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ae=function(){g(this,ce);var e=arguments.length>0?arguments[0]:void 0;P(this,new se(e))},ce=ae.prototype;if(l(ce,{append:function(e,t){T(arguments.length,2);var r=N(this);H(r.entries,{key:S(e),value:S(t)}),r.updateURL()},delete:function(e){T(arguments.length,1);for(var t=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(var t=N(this).entries,r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){T(arguments.length,1);for(var t=N(this).entries,r=S(e),n=[],o=0;o<t.length;o++)t[o].key===r&&H(n,t[o].value);return n},has:function(e){T(arguments.length,1);for(var t=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(var r,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(){var e=N(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=N(this).entries,n=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ie(this,"keys")},values:function(){return new ie(this,"values")},entries:function(){return new ie(this,"entries")}},{enumerable:!0}),u(ce,I,ce.entries,{name:"entries"}),u(ce,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),p(ae,"URLSearchParams"),n({global:!0,forced:!c},{URLSearchParams:ae}),!c&&h(M)){var ue=a(U.has),le=a(U.set),pe=function(e){if(b(e)){var t,r=e.body;if("URLSearchParams"===v(r))return t=e.headers?new M(e.headers):new M,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)})}return e};if(h(D)&&n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?pe(arguments[1]):{})}}),h(x)){var de=function(e){return g(this,L),new x(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);var n,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){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)F(t,e%256),e=P(e/256);return x(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=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);return o>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+"]"}return e},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){var r=y(e,0);return r>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){var r;return 2==e.length&&D(H,C(e,0))&&(":"==(r=C(e,1))||!t&&"|"==r)},ue=function(e){var t;return e.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){var n,o,i,s=E(e);if(t){if(o=this.parse(s))throw k(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ce(r,!0)),o=this.parse(s,null,n))throw k(o);(i=T(new R)).bindURL(this),this.searchParams=i}};Ce.prototype={type:"URL",parse:function(e,t,r){var o,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){case pe:if(!i||!D(H,i)){if(t)return"Invalid scheme";l=fe;continue}d+=V(i),l=de;break;case de: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)return void(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;case fe: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;case ge:if("/"!=i||"/"!=o[p+1]){l=me;continue}l=Ee,p++;break;case he:if("/"==i){l=be;break}l=ke;continue;case me: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;else if("/"==i||"\\"==i&&u.isSpecial())l=ye;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.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;case ye: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}else l=Ee;break;case ve:if(l=Ee,"/"!=i||"/"!=C(d,p+1))continue;p++;break;case Ee:if("/"!=i&&"\\"!=i){l=be;continue}break;case be:if("@"==i){g&&(d="%40"+d),g=!0,s=h(d);for(var b=0;b<s.length;b++){var S=s[b];if(":"!=S||v){var _=se(S,ie);v?u.password+=_:u.username+=_}else v=!0}d=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(g&&""==d)return"Invalid authority";p-=h(d).length+1,d="",l=Se}else d+=i;break;case Se: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))return a;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))return a;if(d="",l=we,t==_e)return}break;case we:if(!D(K,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=d){var w=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;case Oe: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;else if("?"==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;case Re: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;case Te:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&ce(d))l=ke;else if(""==d){if(u.host="",t)return;l=Ae}else{if(a=u.parseHost(d))return a;if("localhost"==u.host&&(u.host=""),t)return;d="",l=Ae}continue}d+=i;break;case Ae:if(u.isSpecial()){if(l=ke,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=ke,"/"!=i))continue}else u.fragment="",l=Ne;else u.query="",l=Pe;break;case ke: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)}else d+=se(i,oe);break;case Ie:"?"==i?(u.query="",l=Pe):"#"==i?(u.fragment="",l=Ne):i!=n&&(u.path[0]+=se(i,re));break;case Pe:t||"#"!=i?i!=n&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":se(i,re)):(u.fragment="",l=Ne);break;case Ne:i!=n&&(u.fragment+=se(i,ne))}p++}},parseHost:function(e){var t,r,n;if("["==C(e,0)){if("]"!=C(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,o,i,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,p=0,d=function(){return C(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}else if(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;else if(8!=u)return;return c}(G(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=v(e),D(J,e))return"Invalid host";if(null===(t=function(e){var t,r,n,o,i,s,a,c=$(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;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))return e;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))return null}else if(s>255)return null;for(a=L(r),n=0;n<r.length;n++)a+=r[n]*N(256,3-n);return a}(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(){return f(ae,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ce(e[0],!0)||e.length--},serialize:function(){var e=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+":";return null!==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){var t=this.parse(e);if(t)throw k(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+te(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(E(e)+":",pe)},getUsername:function(){return this.username},setUsername:function(e){var t=h(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=se(t[r],ie)}},getPassword:function(){return this.password},setPassword:function(e){var t=h(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=se(t[r],ie)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?te(e):te(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":te(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_e)},getPort:function(){var e=this.port;return null===e?"":E(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=E(e))?this.port=null:this.parse(e,we))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ae))},getSearch:function(){var e=this.query;return e?"?"+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(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+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}};var De=function(e){var t=d(this,xe),r=arguments.length>1?arguments[1]:void 0,n=w(t,new Ce(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(){return O(this)[e]()},set:t&&function(e){return O(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(){return O(this).serialize()}),{enumerable:!0}),p(xe,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),A){var Le=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";var n=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);function I(e,t,r,n){for(var o,i=g(e);(o=i.next())&&!o.done;)if(x(t,o.value,r,n))return T(e,o.value),!0;return!1}function P(e){return void 0===e?null:"object"!=typeof e?"symbol"!=typeof e&&("string"!=typeof e&&"number"!=typeof e||+e==+e):void 0}function N(e,t,r,n,o,i){var s=P(r);if(null!=s)return s;var a=w(t,s),c=y({},o,{strict:!1});return!(void 0===a&&!_(t,s)||!x(n,a,c,i))&&!_(e,s)&&x(n,a,c,i)}function C(e,t,r){var n=P(r);return null!=n?n:A(t,n)&&!A(e,n)}function D(e,t,r,n,o,i){for(var s,a,c=g(e);(s=c.next())&&!s.done;)if(x(r,a=s.value,o,i)&&x(n,w(t,a),o,i))return T(e,a),!0;return!1}function x(e,t,r,p){var d=r||{};if(d.strict?i(e,t):e===t)return!0;if(l(e)!==l(t))return!1;if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return d.strict?i(e,t):e==t;var h,T=p.has(e),P=p.has(t);if(T&&P){if(p.get(e)===p.get(t))return!0}else h={};return T||p.set(e,h),P||p.set(t,h),function(e,t,r,i){var l,p;if(typeof e!=typeof t)return!1;if(null==e||null==t)return!1;if(b(e)!==b(t))return!1;if(o(e)!==o(t))return!1;var d=c(e),h=c(t);if(d!==h)return!1;var T=e instanceof Error,P=t instanceof Error;if(T!==P)return!1;if((T||P)&&(e.name!==t.name||e.message!==t.message))return!1;var L=s(e),U=s(t);if(L!==U)return!1;if((L||U)&&(e.source!==t.source||a(e)!==a(t)))return!1;var B=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(typeof e!=typeof t)return!1;var V=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;var H=f(e),Y=f(t);return H===Y&&("Set"===H||"Set"===Y?function(e,t,r,n){if(k(e)!==k(t))return!1;for(var o,i,s,a=g(e),c=g(t);(o=a.next())&&!o.done;)if(o.value&&"object"==typeof o.value)s||(s=new S),R(s,o.value);else if(!A(t,o.value)){if(r.strict)return!1;if(!C(e,t,o.value))return!1;s||(s=new S),R(s,o.value)}if(s){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!I(s,i.value,r.strict,n))return!1}else if(!r.strict&&!A(e,i.value)&&!I(s,i.value,r.strict,n))return!1;return 0===k(s)}return!0}(e,t,r,i):"Map"!==H||function(e,t,r,n){if(O(e)!==O(t))return!1;for(var o,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"==typeof a)s||(s=new S),R(s,a);else if(void 0===(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=new S),R(s,a)}if(s){for(;(i=p.next())&&!i.done;)if(a=i.value[0],u=i.value[1],a&&"object"==typeof a){if(!D(s,e,a,u,r,n))return!1}else if(!(r.strict||e.has(a)&&x(w(e,a),u,r,n)||D(s,e,a,u,y({},r,{strict:!1}),n)))return!1;return 0===k(s)}return!0}(e,t,r,i))}(e,t,d,p)}function M(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&"function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0])&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}e.exports=function(e,t,r){return x(e,t,r,h())}},4289:(e,t,r)=>{"use strict";var n=r(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,c=r(1044)(),u=a&&c,l=function(e,t,r,n){var o;(!(t in e)||"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){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=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";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}h(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&h(e,"error",t,r)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,s,u;if(a(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?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;var l=new Error("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)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):g(o,o.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function h(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=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){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,s;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){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)return this;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]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9804:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s<i;s++)n.call(o,e[s],s,e);else for(var a in e)t.call(e,a)&&n.call(o,e[a],a,e)}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==n.call(o))throw new TypeError(t+o);for(var i,s=r.call(arguments,1),a=function(){if(this instanceof i){var t=o.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return o.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){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r((function(){}),"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==function(){}.bind().name},e.exports=t},210:(e,t,r)=>{"use strict";var n=SyntaxError,o=Function,i=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(e){a=null}var c=function(){throw new i},u=a?function(){try{return c}catch(e){try{return a(arguments,"callee").get}catch(e){return c}}}():c,l=r(1405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?void 0:p(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?p((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?p((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0: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){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return b(e,w,(function(e,t,r,n){o[o.length]=r?b(n,O,"$1"):t||e})),o},T=function(e,t){var r,o=e;if(y(h,o)&&(o="%"+(r=h[o])[0]+"%"),y(g,o)){var a=g[o];if(a===d&&(a=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return g[t]=r,r}(o)),void 0===a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:a}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=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(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=S(h,0,1),b=S(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new n("property names with quotes must have matching quotes");if("constructor"!==h&&f||(l=!0),y(g,c="%"+(o+="."+h)+"%"))u=g[c];else if(null!=u){if(!(h in u)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(a&&d+1>=r.length){var w=a(u,h);u=(f=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:u[h]}else f=y(u,h),u=u[h];f&&!l&&(g[c]=u)}}return u}},932:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},2584:(e,t,r)=>{"use strict";var n=r(6410)(),o=r(1924)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},3376:(e,t,r)=>{"use strict";if(r(932)()){var n=BigInt.prototype.valueOf;e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||function(e){try{return n.call(e),!0}catch(e){}return!1}(e))}}else e.exports=function(e){return!1}},6814:(e,t,r)=>{"use strict";var n=r(1924),o=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),s=r(6410)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(s&&Symbol.toStringTag in e?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Boolean]"===i(e))}},8923:(e,t,r)=>{"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8379:e=>{"use strict";var t,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var o=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"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},4578:(e,t,r)=>{"use strict";var n=Number.prototype.toString,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Number]"===o.call(e))}},8420:(e,t,r)=>{"use strict";var n,o,i,s,a=r(1924),c=r(6410)();if(c){n=a("Object.prototype.hasOwnProperty"),o=a("RegExp.prototype.exec"),i={};var u=function(){throw i};s={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=u)}var l=a("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!t||!n(t,"value"))return!1;try{o(e,s)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===l(e)}},9572:e=>{"use strict";var t,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var o=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"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},9981:(e,t,r)=>{"use strict";var n=String.prototype.valueOf,o=Object.prototype.toString,i=r(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},2636:(e,t,r)=>{"use strict";var n=Object.prototype.toString;if(r(1405)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},5692:(e,t,r)=>{"use strict";var n=r(9804),o=r(3083),i=r(1924),s=i("Object.prototype.toString"),a=r(6410)(),c="undefined"==typeof globalThis?r.g:globalThis,u=o(),l=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},p=i("String.prototype.slice"),d={},f=r(882),g=Object.getPrototypeOf;a&&f&&g&&n(u,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=g(t),n=f(r,Symbol.toStringTag);if(!n){var o=g(r);n=f(o,Symbol.toStringTag)}d[e]=n.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a||!(Symbol.toStringTag in e)){var t=p(s(e),8,-1);return l(u,t)>-1}return!!f&&function(e){var t=!1;return n(d,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},1718:e=>{"use strict";var t,r="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,n="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;r||(t=function(e){return!1});var o=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"!=typeof e)return!1;try{if(o.call(e,o),i)try{i.call(e,i)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},5899:(e,t,r)=>{"use strict";var n=r(210),o=r(1924),i=n("%WeakSet%",!0),s=o("WeakSet.prototype.has",!0);if(s){var a=o("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(s(e,s),a)try{a(e,a)}catch(e){return!0}return e instanceof i}catch(e){}return!1}}else e.exports=function(e){return!1}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},7561:(e,t,r)=>{var n=r(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[a]=r:delete e[a]),o}},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},7990:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},3279:(e,t,r)=>{var n=r(3218),o=r(1927),i=r(4841),s=Math.max,a=Math.min;e.exports=function(e,t,r){var c,u,l,p,d,f,g=0,h=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=c,n=u;return c=u=void 0,g=t,p=e.apply(n,r)}function E(e){return g=e,d=setTimeout(S,t),h?v(e):p}function b(e){var r=e-f;return void 0===f||r>=t||r<0||m&&e-g>=l}function S(){var e=o();if(b(e))return _(e);d=setTimeout(S,function(e){var r=t-(e-f);return m?a(r,l-(e-g)):r}(e))}function _(e){return d=void 0,y&&c?v(e):(c=u=void 0,p)}function w(){var e=o(),r=b(e);if(c=arguments,u=this,f=e,r){if(void 0===d)return E(f);if(m)return clearTimeout(d),d=setTimeout(S,t),v(f)}return void 0===d&&(d=setTimeout(S,t)),p}return t=i(t)||0,n(r)&&(h=!!r.leading,l=(m="maxWait"in r)?s(i(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),w.cancel=function(){void 0!==d&&clearTimeout(d),g=0,c=f=u=d=void 0},w.flush=function(){return void 0===d?p:_(o())},w}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},1927:(e,t,r)=>{var n=r(5639);e.exports=function(){return n.Date.now()}},4841:(e,t,r)=>{var n=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"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):s.test(e)?NaN:+e}},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"==typeof c.get?c.get:null,l=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&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"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function x(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return E.call(o,r,"$&_")+"."+E.call(E.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,r,"$&_")}var M=r(4654),L=M.custom,U=V(L)?L:null;function B(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function j(e){return E.call(String(e),/"/g,""")}function $(e){return!("[object Array]"!==Y(e)||N&&"object"==typeof e&&N in e)}function G(e){return!("[object RegExp]"!==Y(e)||N&&"object"==typeof e&&N in e)}function V(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,o){var a=r||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("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))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return e(v.call(t,0,r.maxStringLength),r)+o}return B(E.call(E.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",r)}(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var b=String(t);return h?x(t,b):b}if("bigint"==typeof t){var _=String(t)+"n";return h?x(t,_):_}var T=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=T&&T>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var k=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===o)o=[];else if(K(o,t)>=0)return"[Circular]";function L(t,r,i){if(r&&(o=R.call(o)).push(r),i){var s={depth:a.depth};return H(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,n+1,o)}return e(t,a,n+1,o)}if("function"==typeof t&&!G(t)){var F=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),X=Q(t,L);return"[Function"+(F?": "+F:" (anonymous)")+"]"+(X.length>0?" { "+O.call(X,", ")+" }":"")}if(V(t)){var ee=P?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||P?ee:Z(ee)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var te="<"+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);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+"</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var oe=Q(t,L);return k&&!function(e){for(var t=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"==typeof e&&N in e)}(t)){var ie=Q(t,L);return"cause"in Error.prototype||!("cause"in t)||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"==typeof t&&c){if(U&&"function"==typeof t[U]&&M)return M(t,{depth:T-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return s.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"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return l.call(t,(function(e){ae.push(L(e,t))})),z("Set",u.call(t),ae,k)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return q("WeakRef");if(function(e){return!("[object Number]"!==Y(e)||N&&"object"==typeof e&&N in e)}(t))return Z(L(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Z(L(A.call(t)));if(function(e){return!("[object Boolean]"!==Y(e)||N&&"object"==typeof e&&N in e)}(t))return Z(g.call(t));if(function(e){return!("[object String]"!==Y(e)||N&&"object"==typeof e&&N in e)}(t))return Z(L(String(t)));if(!function(e){return!("[object Date]"!==Y(e)||N&&"object"==typeof e&&N in e)}(t)&&!G(t)){var ce=Q(t,L),ue=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",pe=!ue&&N&&Object(t)===t&&N in t?v.call(Y(t),8,-1):le?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||le?"["+O.call(w.call([],pe||[],le||[]),": ")+"] ":"");return 0===ce.length?de+"{}":k?de+"{"+J(ce,k)+"}":de+"{ "+O.call(ce,", ")+" }"}return String(t)};var F=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return F.call(e,t)}function Y(e){return h.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Z(e){return"Object("+e+")"}function q(e){return e+" { ? }"}function z(e,t,r,n){return e+" ("+t+") {"+(n?J(r,n):O.call(r,", "))+"}"}function J(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=$(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=H(e,o)?t(e[o],e):""}var i,s="function"==typeof k?k(e):[];if(P){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var c in e)H(e,c)&&(r&&String(Number(c))===c&&c<e.length||P&&i["$"+c]instanceof Symbol||(_.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof k)for(var u=0;u<s.length;u++)C.call(e,s[u])&&n.push("["+t(s[u])+"]: "+t(e[s[u]],e));return n}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},609:(e,t,r)=>{"use strict";var n=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";var n=r(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},2281:(e,t,r)=>{"use strict";var n=r(5624),o=r(4289);e.exports=function(){var e=n();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var o=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){var t=e.constructor;return t&&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"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=s(e),a=t&&"[object String]"===i.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var g=u&&r;if(a&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(n&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var y in e)g&&"prototype"===y||!o.call(e,y)||d.push(String(y));if(c)for(var v=function(e){if("undefined"==typeof window||!f)return p(e);try{return p(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]);return d}}e.exports=n},2215:(e,t,r)=>{"use strict";var n=Array.prototype.slice,o=r(1414),i=Object.keys,s=i?function(e){return i(e)}:r(8987),a=Object.keys;s.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?a(n.call(e)):a(e)}):Object.keys=s,Object.keys||s},e.exports=s},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},2837:(e,t,r)=>{"use strict";var n=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)throw new TypeError("target must be an object");var r=s(e);if(1===arguments.length)return r;for(var i=1;i<arguments.length;++i){var l=s(arguments[i]),p=n(l),d=o&&(Object.getOwnPropertySymbols||u);if(d)for(var f=d(l),g=0;g<f.length;++g){var h=f[g];c(l,h)&&a(p,h)}for(var m=0;m<p.length;++m){var y=p[m];if(c(l,y)){var v=l[y];r[y]=v}}}return r}},3533:(e,t,r)=>{"use strict";var n=r(4289),o=r(5559),i=r(2837),s=r(8162),a=r(4489),c=o.apply(s()),u=function(e,t){return c(Object,arguments)};n(u,{getPolyfill:s,implementation:i,shim:a}),e.exports=u},8162:(e,t,r)=>{"use strict";var n=r(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var o=Object.assign({},r),i="";for(var s in o)i+=s;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=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";var n=r(4289),o=r(8162);e.exports=function(){var e=o();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},3697:(e,t,r)=>{"use strict";var n=r(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.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";var n=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";var n=r(3697),o=r(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return n}},2753:(e,t,r)=>{"use strict";var n=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)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(u),r=i(t,"flags");return r&&r.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},7478:(e,t,r)=>{"use strict";var n=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(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return d(t,n)}else if(r)return function(e,t){var r=h(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return g(t,n)}else if(r)return function(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),l(e,n,o)):c?(t||(t=new c),f(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},4785:(e,t,r)=>{"use strict";r(1703),r(8862),r(3948),r(9720);class n extends Error{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{return JSON.stringify(e)}catch(t){return String(e)}}}const o=[{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})=>{const s=r||(Array.isArray(e)?[]:{});t.push(e);for(const[o,a]of Object.entries(e))"function"!=typeof a&&(a&&"object"==typeof a?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}of o)"string"==typeof e[i]&&Object.defineProperty(s,i,{value:e[i],enumerable:!!n||a,configurable:!0,writable:!0});return s};e.exports={serializeError:e=>"object"==typeof e&&null!==e?i({from:e,seen:[],forceEnumerable:!0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e,deserializeError:e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e&&!Array.isArray(e)){const t=new Error;return i({from:e,seen:[],to_:t}),t}return new n(e)}}},3679:(e,t,r)=>{"use strict";var n=r(9981),o=r(4578),i=r(6814),s=r(2636),a=r(3376);e.exports=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e?null:n(e)?"String":o(e)?"Number":i(e)?"Boolean":s(e)?"Symbol":a(e)?"BigInt":void 0}},6430:(e,t,r)=>{"use strict";var n=r(9804),o=r(3083),i=r(1924),s=i("Object.prototype.toString"),a=r(6410)(),c="undefined"==typeof globalThis?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"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=f(t),n=d(r,Symbol.toStringTag);if(!n){var o=f(r);n=d(o,Symbol.toStringTag)}p[e]=n.get}}}));var g=r(5692);e.exports=function(e){return!!g(e)&&(a&&Symbol.toStringTag in e?function(e){var t=!1;return n(p,(function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}})),t}(e):l(s(e),8,-1))}},4654:()=>{},3083:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},882:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},3216:(e,t,r)=>{"use strict";var n=r(2584);if(r(1405)()||r(5419)()){var o=Symbol.iterator;e.exports=function(e){return null!=e&&void 0!==e[o]?e[o]():n(e)?Array.prototype[o].call(e):void 0}}else{var i=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){var t=0;return{next:function(){var r,n=t>=e.length;return n||(r=e[t],t+=1),{done:n,value:r}}}},h=function(e,t){if(i(e)||n(e))return g(e);if(s(e)){var r=0;return{next:function(){var t=function(e,t){if(t+1>=e.length)return t+1;var r=d(e,t);if(r<55296||r>56319)return t+1;var n=d(e,t+1);return n<56320||n>57343?t+1:t+2}(e,r),n=f(e,r,t);return r=t,{done:t>e.length,value:n}}}}return t&&void 0!==e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void 0};if(c||u){var m=r(8379),y=r(9572),v=l("Map.prototype.forEach",!0),E=l("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var b=l("Map.prototype.iterator",!0),S=l("Set.prototype.iterator",!0),_=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch(e){return t=!0,{done:!0,value:void 0}}}}};var w=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){return function(e){if(m(e)){if(b)return _(b(e));if(w)return w(e);if(v){var t=[];return v(e,(function(e,r){p(t,[r,e])})),g(t)}}if(y(e)){if(S)return _(S(e));if(O)return O(e);if(E){var r=[];return E(e,(function(e){p(r,e)})),g(r)}}}(e)||h(e)}}else e.exports=function(e){if(null!=e)return h(e,!0)}}},3483:(e,t,r)=>{"use strict";var n=r(8379),o=r(9572),i=r(1718),s=r(5899);e.exports=function(e){if(e&&"object"==typeof e){if(n(e))return"Map";if(o(e))return"Set";if(i(e))return"WeakMap";if(s(e))return"WeakSet"}return!1}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var s=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);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={143:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[s,a,c]=r,u=0;if(s.some((t=>0!==e[t]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=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;return n.O(l)},r=self.webpackChunkdata_bridge=self.webpackChunkdata_bridge||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[998],(()=>n(7771)));o=n.O(o),module.exports=o})();