weboffice-js-sdk 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WebOfficeJSSDK=t():e.WebOfficeJSSDK=t()}(self,(()=>(()=>{var e={1121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.alphabet=e,this.lookup=this.createLookupTable()}return e.getBytes=function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);t.push(255&n)}return t},e.getString=function(e){return String.fromCharCode.apply(this,e)},e.createInstance=function(){return this.createInstanceWithGmpCharacterSet()},e.createInstanceWithGmpCharacterSet=function(){return new e(e.CharacterSets.GMP)},e.createInstanceWithInvertedCharacterSet=function(){return new e(e.CharacterSets.INVERTED)},e.translate=function(e,t){for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];r.push(t[i])}return r},e.convert=function(e,t,r){for(var n=[],o=e;o.length>0;){for(var i=[],s=0,a=0,c=o;a<c.length;a++){var u=(255&c[a])+s*t,l=(u-u%r)/r;s=u%r,(i.length>0||l>0)&&i.push(l)}n.push(s),o=i}for(var f=0;f<e.length-1&&0===e[f];f++)n.push(0);return n.reverse()},e.prototype.encode=function(t){var r=e.convert(t,e.STANDARD_BASE,e.TARGET_BASE);return e.translate(r,this.alphabet)},e.prototype.decode=function(t){var r=e.translate(t,this.lookup);return e.convert(r,e.TARGET_BASE,e.STANDARD_BASE)},e.prototype.encodeStr=function(t){return e.getString(this.encode(e.getBytes(t)))},e.prototype.decodeStr=function(t){return e.getString(this.decode(e.getBytes(t)))},e.prototype.createLookupTable=function(){for(var e=new Array(256),t=0;t<256;t++)e[this.alphabet[t]]=255&t;return e},e.CharacterSets={GMP:["0".charCodeAt(0),"1".charCodeAt(0),"2".charCodeAt(0),"3".charCodeAt(0),"4".charCodeAt(0),"5".charCodeAt(0),"6".charCodeAt(0),"7".charCodeAt(0),"8".charCodeAt(0),"9".charCodeAt(0),"A".charCodeAt(0),"B".charCodeAt(0),"C".charCodeAt(0),"D".charCodeAt(0),"E".charCodeAt(0),"F".charCodeAt(0),"G".charCodeAt(0),"H".charCodeAt(0),"I".charCodeAt(0),"J".charCodeAt(0),"K".charCodeAt(0),"L".charCodeAt(0),"M".charCodeAt(0),"N".charCodeAt(0),"O".charCodeAt(0),"P".charCodeAt(0),"Q".charCodeAt(0),"R".charCodeAt(0),"S".charCodeAt(0),"T".charCodeAt(0),"U".charCodeAt(0),"V".charCodeAt(0),"W".charCodeAt(0),"X".charCodeAt(0),"Y".charCodeAt(0),"Z".charCodeAt(0),"a".charCodeAt(0),"b".charCodeAt(0),"c".charCodeAt(0),"d".charCodeAt(0),"e".charCodeAt(0),"f".charCodeAt(0),"g".charCodeAt(0),"h".charCodeAt(0),"i".charCodeAt(0),"j".charCodeAt(0),"k".charCodeAt(0),"l".charCodeAt(0),"m".charCodeAt(0),"n".charCodeAt(0),"o".charCodeAt(0),"p".charCodeAt(0),"q".charCodeAt(0),"r".charCodeAt(0),"s".charCodeAt(0),"t".charCodeAt(0),"u".charCodeAt(0),"v".charCodeAt(0),"w".charCodeAt(0),"x".charCodeAt(0),"y".charCodeAt(0),"z".charCodeAt(0)],INVERTED:["0".charCodeAt(0),"1".charCodeAt(0),"2".charCodeAt(0),"3".charCodeAt(0),"4".charCodeAt(0),"5".charCodeAt(0),"6".charCodeAt(0),"7".charCodeAt(0),"8".charCodeAt(0),"9".charCodeAt(0),"a".charCodeAt(0),"b".charCodeAt(0),"c".charCodeAt(0),"d".charCodeAt(0),"e".charCodeAt(0),"f".charCodeAt(0),"g".charCodeAt(0),"h".charCodeAt(0),"i".charCodeAt(0),"j".charCodeAt(0),"k".charCodeAt(0),"l".charCodeAt(0),"m".charCodeAt(0),"n".charCodeAt(0),"o".charCodeAt(0),"p".charCodeAt(0),"q".charCodeAt(0),"r".charCodeAt(0),"s".charCodeAt(0),"t".charCodeAt(0),"u".charCodeAt(0),"v".charCodeAt(0),"w".charCodeAt(0),"x".charCodeAt(0),"y".charCodeAt(0),"z".charCodeAt(0),"A".charCodeAt(0),"B".charCodeAt(0),"C".charCodeAt(0),"D".charCodeAt(0),"E".charCodeAt(0),"F".charCodeAt(0),"G".charCodeAt(0),"H".charCodeAt(0),"I".charCodeAt(0),"J".charCodeAt(0),"K".charCodeAt(0),"L".charCodeAt(0),"M".charCodeAt(0),"N".charCodeAt(0),"O".charCodeAt(0),"P".charCodeAt(0),"Q".charCodeAt(0),"R".charCodeAt(0),"S".charCodeAt(0),"T".charCodeAt(0),"U".charCodeAt(0),"V".charCodeAt(0),"W".charCodeAt(0),"X".charCodeAt(0),"Y".charCodeAt(0),"Z".charCodeAt(0)]},e.STANDARD_BASE=256,e.TARGET_BASE=62,e}();t.default=r},1582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this.timeout=e,this.db=new Map,this.nextGc=null,this.gcDelay=t||5}get size(){return this.db.size}get all(){const e=new Set;return this.db.forEach(((t,r)=>{e.add(r)})),e}add(e){return this.db.set(e,Date.now()+this.timeout),this.scheduleGc(),this}has(e){return this.db.has(e)}delete(e){return this.db.has(e)&&(this.db.delete(e),this.scheduleGc(!0)),this}gc(){const e=Date.now();this.db.forEach(((t,r)=>{t<e&&this.db.delete(r)})),this.nextGc=null,this.scheduleGc()}scheduleGc(e=!1){if(e&&this.nextGc&&(clearTimeout(this.nextGc),this.nextGc=null),null!==this.nextGc||0===this.db.size)return;let t=-1;this.db.forEach((e=>{(-1===t||e<t)&&(t=e)})),-1===t&&(t=Date.now());const r=t-Date.now()+this.gcDelay;this.nextGc=setTimeout(this.gc.bind(this),r)}}t.default=r,e.exports=r,e.exports.default=r},7820:e=>{"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},5323:(e,t,r)=>{"use strict";var n=r(7820);e.exports=function(){return"object"==typeof r.g&&r.g&&r.g.Math===Math&&r.g.Array===Array?r.g:n}},1436:e=>{var t;self,t=()=>(()=>{var e={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},8:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.clearNodeFolder=function(e){e=(0,i.fillOptionsWithDefaults)(e);var t=(0,o.chooseMethod)(e);return"node"===t.type?t.clearNodeFolder().then((function(){return!0})):n.PROMISE_RESOLVED_FALSE},t.enforceOptions=function(e){a=e};var n=r(202),o=r(632),i=r(423),s=new Set;t.OPEN_BROADCAST_CHANNELS=s;var a,c=0,u=function(e,t){var r,u;this.id=c++,s.add(this),this.name=e,a&&(t=a),this.options=(0,i.fillOptionsWithDefaults)(t),this.method=(0,o.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,u=(r=this).method.create(r.name,r.options),(0,n.isPromise)(u)?(r._prepP=u,u.then((function(e){r._state=e}))):r._state=u};function l(e,t,r){var o={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:n.PROMISE_RESOLVED_VOID).then((function(){var t=e.method.postMessage(e._state,o);return e._uMP.add(t),t.catch().then((function(){return e._uMP.delete(t)})),t}))}function f(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function d(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&f(e)){var t=function(t){e._addEL[t.type].forEach((function(e){var r=e.time-1e5;t.time>=r&&e.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function h(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!f(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}t.BroadcastChannel=u,u._pubkey=!0,u.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return l(this,"message",e)},postInternal:function(e){return l(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};h(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,d(this,"message",t)):this._onML=null},addEventListener:function(e,t){d(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){h(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){s.delete(this),this.closed=!0;var t=this._prepP?this._prepP:n.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},437:(e,t,r)=>{"use strict";var n=r(585);e.exports={BroadcastChannel:n.BroadcastChannel,createLeaderElection:n.createLeaderElection,clearNodeFolder:n.clearNodeFolder,enforceOptions:n.enforceOptions,beLeader:n.beLeader}},585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return n.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return n.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"beLeader",{enumerable:!0,get:function(){return o.beLeader}}),Object.defineProperty(t,"clearNodeFolder",{enumerable:!0,get:function(){return n.clearNodeFolder}}),Object.defineProperty(t,"createLeaderElection",{enumerable:!0,get:function(){return o.createLeaderElection}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return n.enforceOptions}});var n=r(991),o=r(550)},550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beLeader=a,t.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e);var r=new i(e,t);return e._befC.push((function(){return r.die()})),e._leaderElector=r,r};var n=r(202),o=r(499),i=function(e,t){var r=this;this.broadcastChannel=e,this._options=t,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,n.randomToken)(),this._aplQ=n.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var o=function(e){"leader"===e.context&&("death"===e.action&&(r.hasLeader=!1),"tell"===e.action&&(r.hasLeader=!0))};this.broadcastChannel.addEventListener("internal",o),this._lstns.push(o)};function s(e,t){var r={context:"leader",action:t,token:e.token};return e.broadcastChannel.postInternal(r)}function a(e){e.isLeader=!0,e.hasLeader=!0;var t=(0,o.add)((function(){return e.die()}));e._unl.push(t);var r=function(t){"leader"===t.context&&"apply"===t.action&&s(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._dpLC||(e._dpLC=!0,e._dpL(),s(e,"tell"))};return e.broadcastChannel.addEventListener("internal",r),e._lstns.push(r),s(e,"tell")}i.prototype={applyOnce:function(e){var t=this;return this.isLeader?(0,n.sleep)(0,!0):this.isDead?(0,n.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then((function(){return function(){if(t.isLeader)return n.PROMISE_RESOLVED_TRUE;var r,o=!1,i=new Promise((function(e){r=function(){o=!0,e()}})),c=[],u=function(e){"leader"===e.context&&e.token!=t.token&&(c.push(e),"apply"===e.action&&e.token>t.token&&r(),"tell"===e.action&&(r(),t.hasLeader=!0))};t.broadcastChannel.addEventListener("internal",u);var l=e?4*t._options.responseTime:t._options.responseTime;return s(t,"apply").then((function(){return Promise.race([(0,n.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).then((function(){return s(t,"apply")})).then((function(){return Promise.race([(0,n.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).catch((function(){})).then((function(){return t.broadcastChannel.removeEventListener("internal",u),!o&&a(t).then((function(){return!0}))}))}()})).then((function(){t._aplQC=t._aplQC-1})),this._aplQ.then((function(){return t.isLeader})))},awaitLeadership:function(){return this._aLP||(this._aLP=(e=this).isLeader?n.PROMISE_RESOLVED_VOID:new Promise((function(t){var r=!1;function o(){r||(r=!0,e.broadcastChannel.removeEventListener("internal",i),t(!0))}e.applyOnce().then((function(){e.isLeader&&o()})),function t(){return(0,n.sleep)(e._options.fallbackInterval).then((function(){if(!e.isDead&&!r)return e.isLeader?void o():e.applyOnce(!0).then((function(){e.isLeader?o():t()}))}))}();var i=function(t){"leader"===t.context&&"death"===t.action&&(e.hasLeader=!1,e.applyOnce().then((function(){e.isLeader&&o()})))};e.broadcastChannel.addEventListener("internal",i),e._lstns.push(i)}))),this._aLP;var e},set onduplicate(e){this._dpL=e},die:function(){var e=this;return this._lstns.forEach((function(t){return e.broadcastChannel.removeEventListener("internal",t)})),this._lstns=[],this._unl.forEach((function(e){return e.remove()})),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,s(this,"death")}}},632:(e,t,r)=>{"use strict";var n=r(318);r(8),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,u).filter(Boolean);if(e.type){if("simulate"===e.type)return a.default;var r=t.find((function(t){return t.type===e.type}));if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||c.isNode||(t=t.filter((function(e){return"idb"!==e.type})));var n=t.find((function(e){return e.canBeUsed()}));if(n)return n;throw new Error("No useable method found in "+JSON.stringify(u.map((function(e){return e.type}))))};var o=n(r(115)),i=n(r(122)),s=n(r(924)),a=n(r(574)),c=r(202),u=[o.default,i.default,s.default]},122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=C,t.canBeUsed=S,t.cleanOldMessages=p,t.close=g,t.create=v,t.createDatabase=u,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(a).objectStore(a),r=[];return new Promise((function(e){t.openCursor().onsuccess=function(t){var n=t.target.result;n?(r.push(n.value),n.continue()):e(r)}}))},t.getIdb=c,t.getMessagesHigherThan=f,t.getOldMessages=h,t.microSeconds=void 0,t.onMessage=w,t.postMessage=b,t.removeMessageById=d,t.type=void 0,t.writeMessage=l;var n=r(202),o=r(151),i=r(423),s=n.microSeconds;t.microSeconds=s;var a="messages";function c(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function u(e){var t="pubkey.broadcast-channel-0-"+e,r=c().open(t,1);return r.onupgradeneeded=function(e){e.target.result.createObjectStore(a,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(){e(r.result)}}))}function l(e,t,r){var n={uuid:t,time:(new Date).getTime(),data:r},o=e.transaction([a],"readwrite");return new Promise((function(e,t){o.oncomplete=function(){return e()},o.onerror=function(e){return t(e)},o.objectStore(a).add(n)}))}function f(e,t){var r=e.transaction(a).objectStore(a),n=[];return new Promise((function(e){(function(){try{var e=IDBKeyRange.bound(t+1,1/0);return r.openCursor(e)}catch(e){return r.openCursor()}}()).onsuccess=function(r){var o=r.target.result;o?o.value.id<t+1?o.continue(t+1):(n.push(o.value),o.continue()):e(n)}}))}function d(e,t){var r=e.transaction([a],"readwrite").objectStore(a).delete(t);return new Promise((function(e){r.onsuccess=function(){return e()}}))}function h(e,t){var r=(new Date).getTime()-t,n=e.transaction(a).objectStore(a),o=[];return new Promise((function(e){n.openCursor().onsuccess=function(t){var n=t.target.result;if(n){var i=n.value;if(!(i.time<r))return void e(o);o.push(i),n.continue()}else e(o)}}))}function p(e,t){return h(e,t).then((function(t){return Promise.all(t.map((function(t){return d(e,t.id)})))}))}function v(e,t){return t=(0,i.fillOptionsWithDefaults)(t),u(e).then((function(r){var i={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,n.randomToken)(),eMIs:new o.ObliviousSet(2*t.idb.ttl),writeBlockPromise:n.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){i.closed=!0,t.idb.onclose&&t.idb.onclose()},m(i),i}))}function m(e){e.closed||y(e).then((function(){return(0,n.sleep)(e.options.idb.fallbackInterval)})).then((function(){return m(e)}))}function y(e){return e.closed?n.PROMISE_RESOLVED_VOID:e.messagesCallback?f(e.db,e.lastCursorId).then((function(t){var r=t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}(t,e)})).sort((function(e,t){return e.time-t.time}));return r.forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),n.PROMISE_RESOLVED_VOID})):n.PROMISE_RESOLVED_VOID}function g(e){e.closed=!0,e.db.close()}function b(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return l(e.db,e.uuid,t)})).then((function(){0===(0,n.randomInt)(0,10)&&p(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function w(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,y(e)}function S(){return!n.isNode&&!!c()}function C(e){return 2*e.idb.fallbackInterval}t.type="idb";var E={create:v,close:g,onMessage:w,postMessage:b,canBeUsed:S,type:"idb",averageResponseTime:C,microSeconds:s};t.default=E},924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=f,t.averageResponseTime=y,t.canBeUsed=m,t.close=p,t.create=h,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=v,t.postMessage=l,t.removeStorageEventListener=d,t.storageKey=u,t.type=void 0;var n=r(151),o=r(423),i=r(202),s=i.microSeconds;t.microSeconds=s;var a="localstorage";function c(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return"pubkey.broadcastChannel-"+e}function l(e,t){return new Promise((function(r){(0,i.sleep)().then((function(){var n=u(e.channelName),o={token:(0,i.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},s=JSON.stringify(o);c().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()}))}))}function f(e,t){var r=u(e),n=function(e){e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",n),n}function d(e){window.removeEventListener("storage",e)}function h(e,t){if(t=(0,o.fillOptionsWithDefaults)(t),!m())throw new Error("BroadcastChannel: localstorage cannot be used");var r=(0,i.randomToken)(),s=new n.ObliviousSet(t.localstorage.removeTimeout),a={channelName:e,uuid:r,eMIs:s};return a.listener=f(e,(function(e){a.messagesCallback&&e.uuid!==r&&e.token&&!s.has(e.token)&&(e.data.time&&e.data.time<a.messagesCallbackTime||(s.add(e.token),a.messagesCallback(e.data)))})),a}function p(e){d(e.listener)}function v(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function m(){if(i.isNode)return!1;var e=c();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function y(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=a;var g={create:h,close:p,onMessage:v,postMessage:l,canBeUsed:m,type:a,averageResponseTime:y,microSeconds:s};t.default=g},115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=f,t.canBeUsed=l,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0;var n=r(202),o=n.microSeconds;t.microSeconds=o;var i="native";function s(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function a(e){e.bc.close(),e.subFns=[]}function c(e,t){try{return e.bc.postMessage(t,!1),n.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function u(e,t){e.messagesCallback=t}function l(){if(n.isNode&&"undefined"==typeof window)return!1;if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1}function f(){return 150}t.type=i;var d={create:s,close:a,onMessage:u,postMessage:c,canBeUsed:l,type:i,averageResponseTime:f,microSeconds:o};t.default=d},574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=f,t.canBeUsed=l,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0;var n=r(202).microSeconds;t.microSeconds=n;var o="simulate";t.type=o;var i=new Set;function s(e){var t={name:e,messagesCallback:null};return i.add(t),t}function a(e){i.delete(e)}function c(e,t){return new Promise((function(r){return setTimeout((function(){Array.from(i).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),r()}),5)}))}function u(e,t){e.messagesCallback=t}function l(){return!0}function f(){return 5}var d={create:s,close:a,onMessage:u,postMessage:c,canBeUsed:l,type:o,averageResponseTime:f,microSeconds:n};t.default=d},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}},202:(e,t,r)=>{"use strict";var n=r(155);Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.isPromise=function(e){return!(!e||"function"!=typeof e.then)},t.microSeconds=function(){var e=(new Date).getTime();return e===a?1e3*e+ ++c:(a=e,c=0,1e3*e)},t.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},t.randomToken=function(){return Math.random().toString(36).substring(2)},t.sleep=function(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))};var o=Promise.resolve(!1);t.PROMISE_RESOLVED_FALSE=o;var i=Promise.resolve(!0);t.PROMISE_RESOLVED_TRUE=i;var s=Promise.resolve();t.PROMISE_RESOLVED_VOID=s;var a=0,c=0,u="[object process]"===Object.prototype.toString.call(void 0!==n?n:0);t.isNode=u},227:(e,t,r)=>{var n=r(155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,s=null;function a(...e){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=t.formatters[o];if("function"==typeof i){const t=e[s];r=i.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},643:e=>{e.exports=!1},824:e=>{var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=o?i(a,c,o,"day"):c>=n?i(a,c,n,"hour"):c>=r?i(a,c,r,"minute"):c>=t?i(a,c,t,"second"):a+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObliviousSet:()=>n,now:()=>i,removeTooOldValues:()=>o});var n=function(){function e(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return e.prototype.has=function(e){return this.set.has(e)},e.prototype.add=function(e){var t=this;this.timeMap.set(e,i()),this.set.add(e),setTimeout((function(){o(t)}),0)},e.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},e}();function o(e){for(var t=i()-e.ttl,r=e.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;if(!(e.timeMap.get(n)<t))return;e.timeMap.delete(n),e.set.delete(n)}}function i(){return(new Date).getTime()}},155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],u=!1,l=-1;function f(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},279:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},797:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.assert=t.AssertError=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Error);t.AssertError=o,t.assert=function(e,t,r){if(t(e))return e;throw new o(r)}},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOURCE_NAMESPACE=void 0,t.SOURCE_NAMESPACE="OfficeSDKBroadcastChannel"},758:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InvokeError=t.MessageTimeoutError=t.MessageError=void 0;var o=function(e){function t(t){var r=e.call(this,t)||this;return r.name="MessageError",Object.setPrototypeOf(r,i.prototype),r}return n(t,e),t}(Error);t.MessageError=o;var i=function(e){function t(r){var n=e.call(this,r)||this;return n.name="MessageTimeoutError",Object.setPrototypeOf(n,t.prototype),n}return n(t,e),t}(Error);t.MessageTimeoutError=i;var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name="InvokeError",Object.setPrototypeOf(r,i.prototype),r}return n(t,e),t}(Error);t.InvokeError=s},607:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfficeSDKMessageEvent=t.isOfficeSDKMessageEventLike=t.OfficeSDKBroadcastChannel=void 0;var s=i(r(623));t.OfficeSDKBroadcastChannel=s.default;var a=r(928);Object.defineProperty(t,"isOfficeSDKMessageEventLike",{enumerable:!0,get:function(){return a.isOfficeSDKMessageEventLike}}),Object.defineProperty(t,"OfficeSDKMessageEvent",{enumerable:!0,get:function(){return a.OfficeSDKMessageEvent}}),o(r(928),t),o(r(623),t),o(r(758),t),o(r(86),t),o(r(601),t)},928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfficeSDKMessageEventLike=t.OfficeSDKMessageEvent=void 0;var n=r(131),o=r(797),i=r(601),s=function(e){var t=e.data,r=e.context,s=e.time,a=e.origin,c=e.emitter,u=e.channelId,l=Object.assign({},r,{channelId:u});"string"==typeof l.messageId&&""!==l.messageId.trim()||(l.messageId=(0,n.uuid)()),Object.defineProperties(this,{data:{enumerable:!0,value:t},context:{enumerable:!0,value:l},time:{enumerable:!0,value:null!=s?s:Date.now()},id:{enumerable:!0,get:function(){return l.messageId}},source:{enumerable:!0,value:i.SOURCE_NAMESPACE},origin:{enumerable:!0,value:a},emitter:{enumerable:!0,value:c},channelId:{enumerable:!0,get:function(){return l.channelId}}}),(0,o.assert)(this.context.channelId,(function(e){return"string"==typeof e&&e.length>0}),"channel id must be a non-empty string"),(0,o.assert)(this.id,(function(e){return"string"==typeof e&&e.length>0}),"id must be a non-empty string"),(0,o.assert)(this.time,(function(e){return"number"==typeof e&&e>=0}),"time must be a positive number")};t.OfficeSDKMessageEvent=s,t.isOfficeSDKMessageEventLike=function(e){if(e instanceof s)return!0;if("object"==typeof e&&null!=e){var t=e;return t.source===i.SOURCE_NAMESPACE&&"string"==typeof t.channelId&&t.channelId.length>0&&null!=t.context}return!1}},623:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextType=t.DEBUG_NAMESPACE=t.INVOKE_DEFAUTL_TIMEOUT=void 0;var a=r(437),c=r(279),u=r(797),l=r(758),f=r(928),d=r(86),h=s(r(227)),p=s(r(675)),v=r(131);t.INVOKE_DEFAUTL_TIMEOUT=6e4,t.DEBUG_NAMESPACE="SM_CHAN";var m,y=function(){function e(e){var r,i=this;this.invokeHandlers=new Map,this.eventHandlers=new Map,this.emitterId=(0,v.uuid)(),this._debugNamespace=t.DEBUG_NAMESPACE,this.debug=!0===e.debug,this.debugNamespace=null!==(r=e.debugNamespace)&&void 0!==r?r:t.DEBUG_NAMESPACE,this.autoStructuredClone=!0===e.autoStructuredClone,Object.defineProperty(this,"id",{enumerable:!0,value:"string"==typeof e.channelId?(0,u.assert)(e.channelId.trim(),(function(e){return e.length>0}),"channelId must be a non-empty string"):(0,v.uuid)()}),this.emitter=new c.TinyEmitter;var s=new a.BroadcastChannel(this.id,e.broadcastChannelOptions);s.addEventListener("message",(function(e){n(i,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:try{t=this.initMessageEvent(e)}catch(t){return(r=new l.MessageError(null!==(n=null==t?void 0:t.message)&&void 0!==n?n:"message cannot be handled")).originMessage=e.data,this.emit("messageError",r),[2]}return[4,this.distributeMessage(t)];case 1:return o.sent(),[2]}}))})).catch((function(e){return n(i,void 0,void 0,(function(){return o(this,(function(t){return this.emit("error",e),[2]}))}))}))})),this.channel=s}return e.prototype.initMessageEvent=function(e){var t=Object.assign({emitter:this.emitterId},e,{channelId:this.id});return"string"!=typeof t.origin&&(t.origin=location.origin),new f.OfficeSDKMessageEvent(t)},e.prototype.structuredClone=function(e){return this.autoStructuredClone?(0,d.structuredClone)(e,{replacer:function(){}}):e},e.prototype.addEventListener=function(e,t,r){var n=this.eventHandlers.get(e);Array.isArray(n)||(n=[]),n.push([t,r]),this.eventHandlers.set(e,n)},e.prototype.on=function(e,t,r){var n=this;return this.addEventListener(e,t,r),function(){n.off(e,t,r)}},e.prototype.once=function(e,t,r){var n=this,o=function(r,o){n.off(e,t,o),t(r,o)};return o.handler=t,this.addEventListener(e,o,r),function(){n.off(e,t,r)}},e.prototype.off=function(e,t,r){if(1===arguments.length)this.eventHandlers.delete(e);else{var n=this.eventHandlers.get(e);Array.isArray(n)&&("*"===(null==r?void 0:r.audience)?this.eventHandlers.delete(e):this.eventHandlers.set(e,n.filter((function(e){var n=e[0],o=e[1];return n!==t&&n.handler!==t||(null==o?void 0:o.audience)===(null==r?void 0:r.audience)}))))}},e.prototype.emit=function(e,t,r){var n=this.eventHandlers.get(e);if(this.log("emit event",{name:e,data:t,context:r,handlers:n}),Array.isArray(n))for(var o=0,i=n;o<i.length;o++){var s=i[o],a=s[0];g(s[1],r)&&a(t,r)}},e.prototype.postMessage=function(e,t){return n(this,void 0,void 0,(function(){var r,n,i,s;return o(this,(function(o){switch(o.label){case 0:try{n=this.structuredClone(e),r=(0,f.isOfficeSDKMessageEventLike)(n)?this.initMessageEvent(n):this.initMessageEvent({data:n,context:null!=t?this.mergeContexts([t]):t})}catch(t){throw this.log("message invalid",e,t),(s=new l.MessageError(null==t?void 0:t.message)).originMessage=n,s}o.label=1;case 1:return o.trys.push([1,3,,4]),this.log("pre postMessage",{message:n,origin:e,context:t,structuredCloned:this.autoStructuredClone}),[4,this.channel.postMessage(r)];case 2:return o.sent(),this.emit("postMessage",r,r.context),this.log("postMessage success",r),[3,4];case 3:throw i=o.sent(),this.log("post message error",i),(s=new l.MessageError(null==i?void 0:i.message)).originMessage=e,s;case 4:return[2]}}))}))},e.prototype.distributeMessage=function(e){var t,r,i;return n(this,void 0,void 0,(function(){var n,s;return o(this,(function(o){switch(o.label){case 0:return(null===(t=(n=e).context)||void 0===t?void 0:t.channelId)!==this.id||n.emitter===this.emitterId?(this.log("discard message",n),[2]):"function"!=typeof this.onMessageArrive?[3,2]:[4,this.onMessageArrive(n)];case 1:if(!((s=o.sent())instanceof f.OfficeSDKMessageEvent))return this.log("skip distributing message by `onMessageArrive`",{message:s,origin:e}),[2];n=s,o.label=2;case 2:return this.log("distribute message",{message:n,origin:e}),(null===(r=n.context)||void 0===r?void 0:r.type)!==m.InvokeRequest?[3,4]:[4,this.handleInvokeRequest(n)];case 3:return o.sent(),[2];case 4:return(null===(i=n.context)||void 0===i?void 0:i.type)===m.InvokeResponse?(this.handleInvokeResponse(n),[2]):(this.emit("message",n,n.context),[2])}}))}))},e.prototype.handleInvokeRequest=function(e){return n(this,void 0,void 0,(function(){var t,r,n,i,s,a,c,u,l,f,d;return o(this,(function(o){switch(o.label){case 0:if(!(0,p.default)(e.data))throw this.log("invalid invoke request",e),new Error("InvokeRequest data must be an object");if(t=e.data,r=t.name,n=t.args,i=this.invokeHandlers.get(r),this.log("handle invoke request",{message:e,handlers:i}),s=e.context,!Array.isArray(i)||0===i.length)return this.log("no invoke handlers",r),[2];a=0,c=i,o.label=1;case 1:if(!(a<c.length))return[3,8];if(!g((u=c[a]).context,s))return[3,7];l={data:void 0},o.label=2;case 2:return o.trys.push([2,4,,5]),f=l,[4,u.handler.apply(u,n)];case 3:return f.data=o.sent(),[3,5];case 4:return d=o.sent(),l.error=d,[3,5];case 5:return[4,this.postMessage(l,Object.assign({},s,{type:m.InvokeResponse}))];case 6:return o.sent(),[2];case 7:return a++,[3,1];case 8:return this.log("no invoke handler found",r),[2]}}))}))},e.prototype.handleInvokeResponse=function(e){if(this.log("handle invoke response",e),"string"!=typeof e.id)throw new l.InvokeError("Invoke response context id is invalid");this.emitter.emit(e.id,e.data)},e.prototype.mergeContexts=function(e){return Object.assign.apply(Object,i([{channelId:this.id}],e,!1))},e.prototype.invoke=function(e,r,i){return n(this,void 0,void 0,(function(){var n,s,a,c,u,f=this;return o(this,(function(o){switch(o.label){case 0:return n={name:e,args:r},s="number"==typeof(null==i?void 0:i.timeout)&&(null==i?void 0:i.timeout)>0?null==i?void 0:i.timeout:t.INVOKE_DEFAUTL_TIMEOUT,a=(0,v.uuid)(),c=new Promise((function(t,n){f.emitter.once(a,(function(o){if(o.error instanceof l.InvokeError)n(o.error);else if(null!=o.error){var i=new l.InvokeError("string"==typeof o.error?o.error:o.error.message);i.method=e,i.arguments=r,n(i)}else t(o.data)})),setTimeout((function(){f.emitter.off(a),n(new l.MessageTimeoutError("".concat(e," invoke timeout")))}),s)})),[4,this.postMessage(n,Object.assign({},i,{messageId:a,timeout:s,type:m.InvokeRequest}))];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,c];case 3:return[2,o.sent()];case 4:throw u=o.sent(),this.log("invoke error",{id:a,name:e,args:r,payload:n,error:u}),u;case 5:return[2]}}))}))},e.prototype.addInvokeHandler=function(e,t,r){var n=this.invokeHandlers.get(e);Array.isArray(n)||(n=[]),n.push({handler:t,context:r}),this.invokeHandlers.set(e,n)},e.prototype.removeInvokeHandler=function(e,t,r){var n=this.invokeHandlers.get(e);Array.isArray(n)&&this.invokeHandlers.set(e,n.filter((function(e){var n;return e.handler!==t||(null===(n=e.context)||void 0===n?void 0:n.audience)!==(null==r?void 0:r.audience)})))},Object.defineProperty(e.prototype,"debug",{get:function(){return h.default.enabled(this._debugNamespace)},set:function(e){h.default.enable(e?this._debugNamespace:"-".concat(this._debugNamespace))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"debugNamespace",{get:function(){return this._debugNamespace},set:function(e){var t=this.debug;h.default.enable("-".concat(this._debugNamespace)),this.log=(0,h.default)(e),this._debugNamespace=e,t&&h.default.enable(e)},enumerable:!1,configurable:!0}),e}();function g(e,t){var r=null==e?void 0:e.audience,n=null==t?void 0:t.audience;return r===n||"*"===r||"*"===n}t.default=y,function(e){e[e.InvokeRequest=0]="InvokeRequest",e[e.InvokeResponse=1]="InvokeResponse"}(m=t.ContextType||(t.ContextType={}))},86:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.structuredClone=void 0;var o=n(r(675)),i=r(928);function s(e,t){try{return e instanceof t}catch(e){return!1}}t.structuredClone=function e(t,r){if(void 0===r&&(r={}),"string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t||t instanceof Date||t instanceof RegExp||t instanceof Boolean||t instanceof String||t instanceof i.OfficeSDKMessageEvent)return t;try{for(var n=0,a=[window.ArrayBuffer,window.Map,window.Set,window.DataView,window.File,window.FileList,window.Blob,window.ImageBitmap,window.ImageData];n<a.length;n++)if(s(t,a[n]))return t}catch(e){}if((0,o.default)(t)){var c=t,u={};for(var l in c)!0===Object.prototype.hasOwnProperty.call(c,l)&&(u[l]=e(c[l],r));return u}if(Array.isArray(t))return t.map((function(t){return e(t,r)}));if(t instanceof Error)return t.message;try{if(t instanceof Object.getPrototypeOf(Uint8Array))return t}catch(e){}if("function"==typeof r.replacer){var f=Object.assign({},r);return f.replacer=void 0,e(r.replacer(t),f)}throw new Error("".concat(String(t)," could not be cloned"))}},131:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuid=void 0,t.uuid=function(){for(var e,t=[],r=(null!==(e=window.crypto)&&void 0!==e?e:window.msCrypto).getRandomValues(new Uint8Array(20)),n=0;n<r.length;n++)t.push(r[n].toString(16).padStart(2,"0"));for(var o=0,i=[4,7,10,13];o<i.length;o++)t[i[o]]="-";return t.join("")}},499:(e,t,r)=>{"use strict";r.r(t),r.d(t,{add:()=>f,getSize:()=>p,removeAll:()=>h,runAll:()=>d});var n=r(643),o=r.n(n);const i={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function(){e()}),!0)}}};var s=r(199),a=r.n(s),c=o()?a():i,u=new Set,l=!1;function f(e){if(l||(l=!0,c.add(d)),"function"!=typeof e)throw new Error("Listener is no function");return u.add(e),{remove:function(){return u.delete(e)},run:function(){return u.delete(e),e()}}}function d(){var e=[];return u.forEach((function(t){e.push(t()),u.delete(t)})),Promise.all(e)}function h(){u.clear()}function p(){return u.size}},199:()=>{},675:(e,t,r)=>{"use strict";function n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}r.r(t),r.d(t,{default:()=>n})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(607)})(),e.exports=t()},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],u=!1,l=-1;function f(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},6532:(e,t,r)=>{"use strict";var n,o=r(5606);(n=void 0!==o&&"[object process]"==={}.toString.call(o)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(n.Proxy=r(7780)(),n.Proxy.revocable=n.Proxy.revocable)},7780:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function n(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const o=Object,i=Boolean(o.create)||!({__proto__:null}instanceof o),s=o.create||(i?function(e){return n(e),{__proto__:e}}:function(e){if(n(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),a=function(){return null},c=o.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:a);return e=function(u,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(u)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){u=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const h=c(u);let p,v=!1,m=!1;"function"==typeof u?(p=function(){const e=this&&this.constructor===p,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,u,t):!e&&l.apply?l.apply(u,this,t):e?(t.unshift(u),new(u.bind.apply(u,t))):u.apply(this,t)},v=!0):u instanceof Array?(p=[],m=!0):p=i||null!==h?s(h):{};const y=l.get?function(e){return f("get"),l.get(this,e,p)}:function(e){return f("get"),this[e]},g=l.set?function(e,t){f("set"),l.set(this,e,t,p)}:function(e,t){f("set"),this[e]=t},b=o.getOwnPropertyNames(u),w={};b.forEach((function(e){if((v||m)&&e in p)return;const t=o.getOwnPropertyDescriptor(u,e),r={enumerable:Boolean(t.enumerable),get:y.bind(u,e),set:g.bind(u,e)};o.defineProperty(p,e,r),w[e]=!0}));let S=!0;if(v||m){const e=o.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return n(t),e.__proto__=t,e}:a);h&&e(p,h)||(S=!1)}if(l.get||!S)for(let e in u)w[e]||o.defineProperty(p,e,{get:y.bind(u,e)});return o.seal(u),o.seal(p),p},e.revocable=function(r,n){return{proxy:new e(r,n),revoke:t}},e}},1504:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},4780:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},c=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Event=t.OfficeSDK=t.MessageEvent=void 0,r(5781),r(2701),r(2288),r(7782),r(6532);var l=r(1436),f=r(4339),d=r(611),h=r(1504),p=u(r(5323)),v=r(4057),m=u(r(1582)),y=r(9368),g=r(2748),b=(0,p.default)(),w="smjssdk",S="smParams",C=["zh-CN","en","ja","ar-SA","ru-RU"];t.MessageEvent=v.InvokeMethod;var E,O=function(e){function t(t){var r,n,o,i=this;(i=e.call(this)||this)._fileType=v.FileType.Unknown,i.messageHandler=function(){},i.emitter=new h.TinyEmitter,i._readyState=v.ReadyState.Loading,i.collaborators=[],i.connectOptions=t,i.uuid=(0,d.v4)(),i.userUuid=t.userUuid,(0,y.assert)(t.container,(function(e){return e instanceof HTMLElement}),'container is not an HTMLElement: "'.concat(String(t.container),'"')),(0,y.assert)(t.container,(function(e){return!["iframe","frame","embed","object"].includes(e.tagName.toLowerCase())}),'invalid container element type: "'.concat(t.container.tagName,'",DIV are recommended.'));try{i.endpoint=new URL(t.endpoint)}catch(e){throw new Error('invalid endpoint: "'.concat(t.endpoint,'"'))}i.sameOrigin=i.endpoint.origin===b.location.origin,!1===/\/sdk\/v2\/*/i.test(i.endpoint.pathname)&&console.warn('Generally the endpoint should end with "/sdk/v2", please make sure it is correct: "'.concat(i.endpoint.toString(),'"')),i.apiAdaptor=t.apiAdaptor?t.apiAdaptor.toString():"",i.apiAdaptorContext=t.apiAdaptorContext?JSON.stringify(t.apiAdaptorContext):"";try{i.startParams=new f.StartParams(null!==(o=null!==(r=t.smParams)&&void 0!==r?r:new URLSearchParams(null===(n=b.location)||void 0===n?void 0:n.search).get(S))&&void 0!==o?o:"")}catch(e){i.startParams=new f.StartParams}"boolean"==typeof t.debug&&(i.startParams.debug=i.connectOptions.debug),i.onViewportResize=function(){s(i,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.channel.postMessage({event:v.SDKEvent.ViewportResize,payload:this.getContainerRect()})];case 1:return e.sent(),[2]}}))})).catch((function(e){i.emit("error",new Error("Failed to emit resize event: ".concat(String(e))))}))},i.initChannel();var c=t.messageExpires;return"number"!=typeof c&&(c=3e5),i.messageExpires=(0,y.assert)(c,(function(e){return!isNaN(e)&&e>0}),'"messageExpires" is not an valid number: "'.concat(c,'"')),i.handledMessageCache=new m.default(c),i.sameOrigin||(i.messageHandler=function(e){var t=e.data;(0,l.isOfficeSDKMessageEventLike)(t)&&i.shouldHandleMessage(t)&&(i.handledMessageCache.add(t.id),i.channel.distributeMessage(e.data).catch((function(e){i.emit("error",e)})))}),i}return o(t,e),Object.defineProperty(t.prototype,"fileType",{get:function(){return this._fileType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._readyState},enumerable:!1,configurable:!0}),t.prototype.getEditor=function(){return this.editor},t.prototype.setCredentials=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[e],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.setSignature=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[{signature:e}],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.setToken=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[{token:e}],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.getPerformanceEntries=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.RequestPerformanceEntries,[],{audience:w})];case 1:return[2,e.sent()]}}))}))},t.prototype.disconnect=function(){var e;this.removeLoadingOverlay(),(null===(e=this.element)||void 0===e?void 0:e.parentElement)instanceof HTMLElement&&this.element.parentElement.removeChild(this.element),window.removeEventListener("message",this.messageHandler),window.visualViewport?window.visualViewport.removeEventListener("resize",this.onViewportResize):window.removeEventListener("resize",this.onViewportResize)},t.prototype.init=function(){return s(this,void 0,void 0,(function(){var e,t,r=this;return a(this,(function(n){switch(n.label){case 0:if(this._readyState!==v.ReadyState.Loading)return[2];this._readyState=v.ReadyState.LoadingEditor,this.setupLoadingOverlay(),n.label=1;case 1:return n.trys.push([1,4,,5]),this.sameOrigin||window.addEventListener("message",this.messageHandler),e=this,[4,this.initIframe()];case 2:return e.element=n.sent(),this.connectOptions.container.appendChild(this.element),this.editor=this.initEditor(),[4,new Promise((function(e,t){var n=function(o){return s(r,void 0,void 0,(function(){var r,i,s,c;return a(this,(function(a){return r=o.state,i=o.error,s=o.fileType,this._readyState=r,s&&this._fileType===v.FileType.Unknown&&(this._fileType=s),c=!1,i?(c=!0,t("string"==typeof i?new Error(i):i)):r===v.ReadyState.Ready&&(c=!0,e(void 0)),c&&(this.removeLoadingOverlay(),this.off(E.ReadyState,n)),[2]}))}))};r.on(E.ReadyState,n)}))];case 3:return n.sent(),[3,5];case 4:throw t=n.sent(),this.removeLoadingOverlay(),t;case 5:switch(this.fileType){case v.FileType.Document:this.document=this.editor;break;case v.FileType.DocumentPro:this.documentPro=this.editor;break;case v.FileType.Spreadsheet:this.spreadsheet=this.editor;break;case v.FileType.Presentation:this.presentation=this.editor;break;case v.FileType.Table:this.table=this.editor;break;case v.FileType.Form:this.form=this.editor;break;case v.FileType.Flowchart:this.flowchart=this.editor}return[2]}}))}))},t.prototype.setupLoadingOverlay=function(){var e;if(!this.loadingOverlay&&this.connectOptions.showLoading){var t=this.connectOptions.container;this.ensureLoadingStyle();var r=document.createElement("div");r.setAttribute("data-office-sdk-loading","true"),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.right="0",r.style.bottom="0",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.backgroundColor="rgba(255, 255, 255, 0.75)",r.style.zIndex="9999",r.style.pointerEvents="auto";var n=document.createElement("div");n.style.width="32px",n.style.height="32px",n.style.backgroundImage="url(".concat(g.LoadingSvg,")"),n.style.backgroundRepeat="no-repeat",n.style.backgroundPosition="center",n.style.backgroundSize="contain",n.style.animation="office-sdk-loading-spin 0.8s linear infinite",r.appendChild(n);var o,i="function"==typeof b.getComputedStyle&&(null===(e=b.getComputedStyle(t))||void 0===e?void 0:e.position)||t.style.position;i&&"static"!==i||(o=t.style.position,t.style.position="relative"),t.appendChild(r),this.loadingOverlay={overlay:r,container:t,originalPosition:o}}},t.prototype.removeLoadingOverlay=function(){if(this.loadingOverlay){var e=this.loadingOverlay,t=e.overlay,r=e.container,n=e.originalPosition;t.parentElement===r&&r.removeChild(t),void 0!==n&&(r.style.position=n),this.loadingOverlay=void 0}},t.prototype.ensureLoadingStyle=function(){var e,t,r,n,o="office-sdk-loading-style";if(!(null===(e=b.document)||void 0===e?void 0:e.getElementById(o))){var i=null===(t=b.document)||void 0===t?void 0:t.createElement("style");i&&(i.id=o,i.textContent="\n@keyframes office-sdk-loading-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}",null===(n=null===(r=b.document)||void 0===r?void 0:r.head)||void 0===n||n.appendChild(i))}},t.prototype.initIframe=function(){var e;return s(this,void 0,void 0,(function(){var t,r,n,o,i,s;return a(this,(function(a){return t=this.connectOptions,(r=document.createElement("iframe")).style.border="none",r.style.overflow="hidden",r.style.width="100%",r.style.height="100%",r.style.display="block","allow"in r?r.allow=null!==(e=this.connectOptions.allowPolicy)&&void 0!==e?e:"fullscreen *;clipboard-read *;clipboard-write *;":r.allowFullscreen=!0,(n=this.endpoint).pathname="".concat(n.pathname,"/collab-files/").concat((0,y.assert)(t.fileId,M,'"fileId" is missing or empty: '.concat(t.fileId))).replace(/\/+/g,"/"),(o=t.params)&&Object.keys(o).forEach((function(e){n.searchParams.set(e,o[e])})),"string"==typeof t.deviceMode&&n.searchParams.set("deviceMode",t.deviceMode.trim()),n.searchParams.set(S,this.startParams.toString()),t.showLoadingEffect&&n.searchParams.set("loadingEffect","true"),"string"==typeof t.lang&&C.includes(t.lang)&&n.searchParams.set("lang",t.lang),n.searchParams.set("jsver",null!=="2.0.2"?"2.0.2":""),i=(0,y.assert)(t.token,M,'"token" is missing or empty: "'.concat(t.token,'"')),s=(0,y.assert)(t.signature,M,'"signature" is missing or empty: "'.concat(t.signature,'"')),n.searchParams.set("token",i),n.searchParams.set("signature",s),n.searchParams.set("uuid",this.uuid),this.userUuid&&n.searchParams.set("userUuid",this.userUuid),r.src=n.toString(),[2,r]}))}))},t.prototype.initChannel=function(){var e=this,t=this.channel=new l.OfficeSDKBroadcastChannel({channelId:this.startParams.channelId,debug:this.connectOptions.debug,autoStructuredClone:!0,debugNamespace:"SM_SDK_CHAN"});this.startParams.channelId||(this.startParams.channelId=t.id),t.on("error",(function(t){e.emit("error",t)})),t.on("messageError",(function(t){e.emit("error",t)})),this.sameOrigin||t.on("postMessage",(function(t){var r,n;null===(n=null===(r=e.element)||void 0===r?void 0:r.contentWindow)||void 0===n||n.postMessage(t,"*")}),{audience:"*"}),t.on("message",(function(t){var r=t.data;(null==r?void 0:r.event)===v.InvokeMethod.ReadyState&&e.emit(E.ReadyState,r.payload)}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.Error,(function(t){e.emit(E.Error,t)}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.SDKInit,(function(){return s(e,void 0,void 0,(function(){var e,t=this;return a(this,(function(r){return e={},Object.keys(this.connectOptions).forEach((function(r){var n=t.connectOptions[r];e[r]=n,"function"==typeof n&&(e["has".concat(r[0].toUpperCase()).concat(r.slice(1))]=!0)})),e.apiAdaptor=this.apiAdaptor,e.apiAdaptorContext=this.apiAdaptorContext,[2,i(i({},e),{uuid:this.uuid})]}))}))}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.DispatchSDKEvent,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){return this.emit.apply(this,c([t],r,!1)),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.DispatchEditorEvent,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){return"collaboratorsChanged"===t&&this.updateCollaborators(r),this.emitter.emit(t,r),[2]}))}))}),{audience:w}),this.bindContainerMethodHandlers(),window.visualViewport?window.visualViewport.addEventListener("resize",this.onViewportResize):window.addEventListener("resize",this.onViewportResize)},t.prototype.bindContainerMethodHandlers=function(){var e=this,t=this.channel;t.addInvokeHandler(v.ContainerMethod.GenerateUrl,(function(t,r,n){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.generateUrl)throw new Error('"'.concat(v.ContainerMethod.GenerateUrl,'" not found'));return[4,Promise.resolve(this.connectOptions.generateUrl(t,r,n))];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.HandleCustomTask,(function(t){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.handleCustomTask)throw new Error('"'.concat(v.ContainerMethod.HandleCustomTask,'" not found'));return[4,Promise.resolve(this.connectOptions.handleCustomTask(t))];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.OpenLink,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){if("function"!=typeof this.connectOptions.openLink)throw new Error('"'.concat(v.ContainerMethod.OpenLink,'" not found'));return this.connectOptions.openLink(t,r),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetFileInfoFromUrl,(function(t){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.getFileInfoFromUrl)throw new Error('"'.concat(v.ContainerMethod.GetFileInfoFromUrl,'" not a function'));return[4,this.connectOptions.getFileInfoFromUrl(t)];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.MentionClickHandlerForMobile,(function(t){return s(e,void 0,void 0,(function(){var e;return a(this,(function(r){if("function"!=typeof this.connectOptions.mentionClickHandlerForMobile)throw new Error('"'.concat(v.ContainerMethod.MentionClickHandlerForMobile,'" not found'));return"object"==typeof t&&null!=t&&(e=this.element.getBoundingClientRect(),t.x+=e.x,t.y+=e.y,t.isMention&&(t.mentionInfo.left+=e.x,t.mentionInfo.top+=e.y)),this.connectOptions.mentionClickHandlerForMobile(t),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetContainerRect,(function(){return s(e,void 0,void 0,(function(){return a(this,(function(e){return[2,this.getContainerRect()]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.ShowToast,(function(t){return s(e,void 0,void 0,(function(){var e,r;return a(this,(function(n){return null===(r=(e=this.connectOptions).showToast)||void 0===r||r.call(e,t),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetCredentials,(function(){return s(e,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:return[4,null===(t=(e=this.connectOptions).getCredentials)||void 0===t?void 0:t.call(e)];case 1:return[2,r.sent()]}}))}))}),{audience:w})},t.prototype.initEditor=function(){var e=this,t=function(e){return"saveStatusDidChange"===e?"saveStatusChanged":e},r={on:function(r,n){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return r=t(r),this.emitter.on(r,n),[4,this.channel.invoke(v.InvokeMethod.ListenEditorEvent,[r],{audience:w})];case 1:return e.sent(),[2]}}))}))},off:function(r,n){r=t(r),e.emitter.off(r,n)},getCollaborators:function(){return c([],e.collaborators,!0)}},n=function(t){return void 0===t&&(t=[]),new Proxy((function(){}),{get:function(e,o){return 0===t.length&&Object.prototype.hasOwnProperty.call(r,o)?r[o]:"string"==typeof o&&["call","apply","bind"].includes(o)?e[o]:"string"==typeof o?n(c(c([],t,!0),[o],!1)):void 0},apply:function(r,n,o){if(t.length>0)return e.channel.invoke(v.InvokeMethod.InvokeEditorMethod,[t.join("."),o],{audience:w})}})};return n()},t.prototype.shouldHandleMessage=function(e){return!(e.channelId!==this.channel.id||e.time+this.messageExpires<Date.now()||this.handledMessageCache.has(e.context.messageId))},t.prototype.getContainerRect=function(){var e,t=this.element.getBoundingClientRect(),r={viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,top:t.top,left:t.left,bottom:t.bottom,right:t.right,scrollTop:null===(e=document.scrollingElement)||void 0===e?void 0:e.scrollTop,visualViewport:{}};return window.visualViewport&&(r.visualViewport={width:window.visualViewport.width,height:window.visualViewport.height,offsetLeft:window.visualViewport.offsetLeft,offsetTop:window.visualViewport.offsetTop,pageLeft:window.visualViewport.pageLeft,pageTop:window.visualViewport.pageTop,scale:window.visualViewport.scale}),r},t.prototype.updateCollaborators=function(e){if(e&&"object"==typeof e&&Array.isArray(e.collaborators)){var t=e;this.collaborators=c([],t.collaborators,!0)}},t}(h.TinyEmitter);function M(e){return"string"==typeof e&&e.trim().length>0}t.OfficeSDK=O,function(e){e.SDKInit="SDKInit",e.Error="error",e.ReadyState="readyState",e.EditorEvent="editorEvent"}(E=t.Event||(t.Event={}))},9368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t,r){if(t(e))return e;throw new Error(r)}},2748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingSvg=void 0,t.LoadingSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0idXJsKCNwYXR0ZXJuMF8yNDA3NV8yMjMyNikiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMF8yNDA3NV8yMjMyNiIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPgo8dXNlIHhsaW5rOmhyZWY9IiNpbWFnZTBfMjQwNzVfMjIzMjYiIHRyYW5zZm9ybT0ic2NhbGUoMC4wMTA0MTY3KSIvPgo8L3BhdHRlcm4+CjxpbWFnZSBpZD0iaW1hZ2UwXzI0MDc1XzIyMzI2IiB3aWR0aD0iOTYiIGhlaWdodD0iOTYiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBR0FBQUFCZ0NBWUFBQURpbUhjNEFBQUFBWE5TUjBJQXJzNGM2UUFBQ2R0SlJFRlVlRjd0WFMyWTJ6Z1FWWmtEU3dzTEM1Y1dGaFlXSGoxWWVPd08zckdEaGFVSEZ4WVdMbDFZdUhCcFlNSnkzeWdhN1dnOG94bkpkcktKc3lTT0xjM1Blek1qMlpHOGI4THQ3NndJdkRtcjlwdnljQ1BnekVGd0krQkdRQWgvM3o4ZmRpR0VUUWlCZnY3ejVkMHNBZkxuL2ZPQnk0YnZmODBrZndxSHN6allZNEFHK3B4QWVYWE1SWFFQRGljbkFFRHBNYlExV2srbHA4Y1gydWRrQlBRQ1FvMzFrbkJLWGErZWdEbkFRQ2RQU1FEbzlPcWJRc0tpR1NDQlB3eWJzTi9EVVB2eXg4OXAzejJBY0owOStzQXkycytqdDVlRVJRaEFFS2dURnNqY2FlbTdKeW9sM1pxc0ZwdVdJbUYyQWpnQUVnbTFjM2hOYS9QSDU3ZFZtMEUvbHpGRkgyUXJsV2ZwYjgyRVdRbEE1OEVJYnJqM25OWFBpc1IvZjJ3UFhBWitsMnl3OUVsa3prbkNMQVJRcDZtVE5ZZTFkbFlmeTNtUExSN2RWaHNyRUx5Wk1Cc0JYb1ZUMmxuZ28yd2dZWXFlbHI1ZW16U1prd2c0cGFQZ2dOZlpVOXJsdFdsMkFscWRIR0JjYUFrdG1BcVNQcTJPdHRyWGFOcW9lYXQ5S0tBckE2aHpITmhXb0QzdGU1M2pKQXdEVEE1SzdFYjJlOXF3WUFJWlg0M1oyYXdaQUk1WndGTm5hVnM4bG9DWDJ2V0NUOGNEUzFlOFR4QXlsQk5tK2R4amEzTUdmSU5wWHZJT0RlU2dXb0FYNUtTSXl6S0dFTDUrcXMvMWU4c0YyazUxUVViVTdCMzVodlp5dXhPQnJTUTBFWkFkU0ZZQkVTTm5pR0Z3TVRwSVBtRWd5QVFtbytINlVxQkxaSDM3Q2ZjS3N1MW9IN1c1OEFGdEpyYno2eTNseUUwQWdDOEJxZ0U4eWc1S0dndXJGb043bzE4amdnSStBbDhEV2NzQ2N0NGJVSDRDZm00UG85RGx4Yk1wbDA4YjlUWGlJQ09pYnkyMVZQS1Y0T0VOS2hjQmhZSHhGakVaNnpsV0hQTkd5SndSMzBVQ2dvcSswcUFERWlRTVVodVBqeVlCR3ZneEFMQytLMFJnbXlLeVlNcTIwQ0E3bGF6b0svTWxCM29LSlA0ZGdqR1dXOUlQMjNqOGRCRkFnU3hBNVVxcGtTUkxXZ3lhQ3VJYy9ZRUlIang1NWtiS2xOVUcrdnh1QkZ1VmdHd0lteWYzbEVwUE5Nd0IzbHd5V24zWE1JSHpOUktxQkh5SDZSb2JtMmlHZXE5ZEd2aElZcXYvMmpqZVJRQlZMb0d1amIvY0NDc0Y1NHJZcGVSSUpHaHpFSTRKL2E3aG9HWUFLSjdEcVdzZ0lPSWdQYXRvQUtpSmdBaSs5ZUFEbFZjTXUzVHdhU25LV0J2ei94RlpwTDJFaDVnQnJ1aFhDTm9NSWV6Mjl1amZFRHl2b3FrTEU4UFNOZ0lTd0Fnb3l1YmZSenBUdjJ1Si9wd0ZEOXZqK2xMK0lJdVhwMHFHL1A1eC9KQnhsQUhBZEFHeVJBU1pjMldqaHJTNDlncWpuNWNpaWsvck1RL01FUUgvUFd3UGtXVUNLQ3F4UHNIUWE0dDhtdUhmV1JaazhBbFdGRGZwK0RlV0JlTU1JRXBNQmJDa1BOVjhWTVlWdklvQ1BxTVJHS0JXTUlyWDB4SjhpbEZCQUFnSFd5RURRRURQOFNvSVNFQnErRWo0NGJscUJrUjJxZkRHNDJzSEh4TXBCNnFCRDRLZU41Mmt3RFl6b0RkajEwYkFIRGlKSldnT3diMHlMcUVmWmtDdnJZdGt3RnFpbjVlaEdnbkRKZ1MyRWo4M1I3eHlCaUNyMWhPSTRqNkRLRmdyQWRwOUZ5V0d0L2xDcHFJRkFlb3o3UVIwN1RFSUZkcWJtcGZVRHdLVzQwVnZpcTNmVEJDdlRNRDk0L1lBNllKcGt6L3hKMkFrSVcxanpJOWswL20xWmNBSUwwQ2ZZS1JoaVcxR0plZyszUU1Vei9OWjVLZGJnK052OG9TSXRZRVBXQmQ0OGFDVTFpM1FOcHNRdnR3ZG53c1ZHVkRza3NZTnU0bFo2OXJhU2xBazRYRjdpTGpVTUpKd0RDR01TeEJrQU44bDdSRk0yTHlrR2o3VjFpYndoZDNudmd5SXorU0dzSSszZE93OUF1UTdDcHZxMUtYMWp5VEU1eEhDZXhZa3ZFaGJtUUFMY0txTXRWMGJDUUIrRVp3S2RqeUFoODBROW1FL0hnTitQTzRPUE5Kalp4aHk0K3pvSlJPNDBEWFdmem9HVUd5T1U5RngxZEF3S3dkaDdCejJoUkFrZ2dvcHpoRkdMNjJNOU5vYkF4WnhJbmhoaEdjaWVKdjAvZlBkcHB3RmdVRG94SVY2enEydC9DQnBJZ2tKNElqYmJuK3NIQUpCb3pHQUNwTkFSeUgwR2oxR1Juc2o2dEw2OFlEVmNMSHd5aVVJQlVZZ090YkFySldBM3NCUlM5QlVnYjM5TDYxZkViQ054dE5nbFRPQUNaUjJGM0tkdHd4b1kyR1VBZEQ5NTY5ZDNEdlY4a2ZKV1FzSk5QcEhPeW1GYmE2eHFwUHpZZ1pBb3grL2RuR3JqclNMa1F1UnNtSk5CRmpBMXpEODlPRTRCWVcvNGlkSllMWVZmTHFia0FwdXlhSkxhNHVWUXQxSlNhSmR3bFBOQUJBY3AwMHBDMXFQMTBDQUYzd0FYc05QelFBY0I2WkU1TFdUZ0VIYWl4SEhaN1F5YnFvQ01PeWFTWmlLejQyQTN0Qk5zOFFKM1dOWGt3QXNROWJxaURnclVsNUJjNDBaOEFCVGRJSys5SU84aGdtMmxYQVJOMmpRTkpOQXJwRlRVelkxZXM3Wkh6SFJnczZEazVzQVpIdktzZ3VJbG12SkJBNis5cFlZbWdIU3NwU1BaUDR2M2dmUUNNc2sxTjUrd3Q4Y2tnVEVWUk5EQ0IvZnY5eHduRE42cCtnRzhPT1VNcjNsWlFTc2hBOS95VWNJUVFKL2RDTldFUEIwdkN1dXZoYUNHWmJmcGtLSXVPUXNnQ0JFVERJT0ZQREthelBpUFVBS1JEaG9KZ0FFWkFPczlYZTFBbmpCbWZDUWdqQ1NZTTFLS2hocDRGY3pJQktBQm5nR0E2a0FrcFNxR1RHbFJDelZWd1JmWGJ0SnBvT2NDQ2cvbFZKc3ZxeWpNQVM5OVJCQzJ1Qkd2a3Nob1JwNFBCc01VaXlmL1FTa1p4dDBWeVFmSU9oK3NkRUxrRkpSdEF4YUtxSzljbFh3aFlCU1gvQkUybG9URVpNQU1QenhhUmUzTGtramNrRUlhOFBKUW9KZUl3a1VlR25yTGQveGlGamtsWWRwK3hIZFlYcm5tQVc2Q01EeFFGc2NCOWM5MTJnN09MYWl3eHUxVTlzQitEMzJqOEJQaHNCNUQvam1JRXdkd3l5b3JGQjByMVBsTXM1RmhPWlRMYUFzLy9HNjF5ZDNCdEJTVkRNQzJubVhTdElkbWQ2SW1ScnQyQi9BcjluYTR3ZjYwK0pMRXdGSVFnMEVDcW9YcktMUEVNTGR1Mlh1b0JGMENxNW1ZN01mYWVCdEFiK3BCUEZ5NUFWWGJlZFllOVRxakthTEFqL1pia05BcTgzTkdSQ3o0UG40bUtMNHF3RnFnRzB0ZTJsMUtwY1p5YzZGR09pMXNZdUFvaFF4Y1BrUDFkUmZDMmlPRFczZjZxQVU5WnB0a2wxdVA0YmpVNG9QbldXem13QUE2OWZ6eXpvaURkeWFjeUJEV2pXZzlmRTZDZUJycXp1c2dMRDhrT1MyQmdlMVlSSUJHZ2xTOUxTZW8rUmdYNitqR0JnMWNqMzJlTExBYTVOVytTWVRnQ1RBSjMrUnQ3Uzh4WHRPa3VmSkFBNCtYeDdTWW1PdExkam5zY2NhY21ZaEFKV0E4M2hzclMzU25CdTlqWjJ0VTdLY1Joc3MvWlJnN3pINlp0bGdnVDVyQ2VMS0tBa3RobmpiV3M2Zlc3L1hEMnczYXdaSW1kQnFrTlgrbkFSWXVpM2JwZXVMRU9BaHduRWZKdnBqZ2JCRUJsZzZlNEJmTkFPb1FVOHdWWFZZcUsyendhNXcvYjF6cm8wa1dMOGl4cG1XOU05N3lMa2x3UWY5aTJaQVNjUWg3aXJrVG52VzJXQWJMeGljZEkySXZMMVUrT2NaWGwyTzJLbzJPUmtCYU1YVDloRDNJeGMvbmFZOXlPSXZuZWxhS3lCSVFwYkpkRkJVYUp2M2I5K2NGSk9US2lzeVluczQ0R3RveGRlK2t6ZWlla3NQRHpVZ0czUlk4dUVWa2FjRy9tUmpnQ2RGRWFqOEV0SUVmaS93R2hGTHlmZjRxTFU1V3daTU1mcWErdDRJT0RPYk53SnVCSndaZ1RPci94OGdaQ1haZUNqMmJRQUFBQUJKUlU1RXJrSmdnZz09Ii8+CjwvZGVmcz4KPC9zdmc+Cg=="},5098:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var i=r(4780);t.connect=function(e){return n(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(t=new i.OfficeSDK(e)).init()];case 1:return n.sent(),[2,t];case 2:throw r=n.sent(),console.log("Failed to init OfficeSDK",{error:r,options:e}),r;case 3:return[2]}}))}))}},8156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.START_PARAMS_FIELD=t.Flowchart=t.Form=t.Table=t.Presentation=t.Spreadsheet=t.Document=t.DocumentPro=void 0;var a=i(r(1810));t.DocumentPro=a;var c=i(r(9105));t.Document=c;var u=i(r(8724));t.Spreadsheet=u;var l=i(r(1260));t.Presentation=l;var f=i(r(7642));t.Table=f;var d=i(r(6954));t.Form=d;var h=i(r(4054));t.Flowchart=h,s(r(4057),t),s(r(5098),t),s(r(4780),t),t.START_PARAMS_FIELD="smParams"},9105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},611:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NIL:()=>P,parse:()=>m,stringify:()=>l,v1:()=>v,v3:()=>M,v4:()=>k,v5:()=>_,validate:()=>a,version:()=>T});var o=new Uint8Array(16);function i(){if(!n&&!(n="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 n(o)}const s=/^(?:[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,a=function(e){return"string"==typeof e&&s.test(e)};for(var c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!a(r))throw TypeError("Stringified UUID is invalid");return r};var f,d,h=0,p=0;const v=function(e,t,r){var n=t&&r||0,o=t||new Array(16),s=(e=e||{}).node||f,a=void 0!==e.clockseq?e.clockseq:d;if(null==s||null==a){var c=e.random||(e.rng||i)();null==s&&(s=f=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=d=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,m=u-h+(v-p)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||u>h)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=u,p=v,d=a;var y=(1e4*(268435455&(u+=122192928e5))+v)%4294967296;o[n++]=y>>>24&255,o[n++]=y>>>16&255,o[n++]=y>>>8&255,o[n++]=255&y;var g=u/4294967296*1e4&268435455;o[n++]=g>>>8&255,o[n++]=255&g,o[n++]=g>>>24&15|16,o[n++]=g>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var b=0;b<6;++b)o[n+b]=s[b];return t||l(o)},m=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=m(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),(s=r(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return l(s)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,o,i){return b((s=b(b(t,e),b(n,i)))<<(a=o)|s>>>32-a,r);var s,a}function S(e,t,r,n,o,i,s){return w(t&r|~t&n,e,t,o,i,s)}function C(e,t,r,n,o,i,s){return w(t&n|r&~n,e,t,o,i,s)}function E(e,t,r,n,o,i,s){return w(t^r^n,e,t,o,i,s)}function O(e,t,r,n,o,i,s){return w(r^(t|~n),e,t,o,i,s)}const M=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=r,c=n,u=o,l=i;r=S(r,n,o,i,e[s],7,-680876936),i=S(i,r,n,o,e[s+1],12,-389564586),o=S(o,i,r,n,e[s+2],17,606105819),n=S(n,o,i,r,e[s+3],22,-1044525330),r=S(r,n,o,i,e[s+4],7,-176418897),i=S(i,r,n,o,e[s+5],12,1200080426),o=S(o,i,r,n,e[s+6],17,-1473231341),n=S(n,o,i,r,e[s+7],22,-45705983),r=S(r,n,o,i,e[s+8],7,1770035416),i=S(i,r,n,o,e[s+9],12,-1958414417),o=S(o,i,r,n,e[s+10],17,-42063),n=S(n,o,i,r,e[s+11],22,-1990404162),r=S(r,n,o,i,e[s+12],7,1804603682),i=S(i,r,n,o,e[s+13],12,-40341101),o=S(o,i,r,n,e[s+14],17,-1502002290),r=C(r,n=S(n,o,i,r,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=C(i,r,n,o,e[s+6],9,-1069501632),o=C(o,i,r,n,e[s+11],14,643717713),n=C(n,o,i,r,e[s],20,-373897302),r=C(r,n,o,i,e[s+5],5,-701558691),i=C(i,r,n,o,e[s+10],9,38016083),o=C(o,i,r,n,e[s+15],14,-660478335),n=C(n,o,i,r,e[s+4],20,-405537848),r=C(r,n,o,i,e[s+9],5,568446438),i=C(i,r,n,o,e[s+14],9,-1019803690),o=C(o,i,r,n,e[s+3],14,-187363961),n=C(n,o,i,r,e[s+8],20,1163531501),r=C(r,n,o,i,e[s+13],5,-1444681467),i=C(i,r,n,o,e[s+2],9,-51403784),o=C(o,i,r,n,e[s+7],14,1735328473),r=E(r,n=C(n,o,i,r,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=E(i,r,n,o,e[s+8],11,-2022574463),o=E(o,i,r,n,e[s+11],16,1839030562),n=E(n,o,i,r,e[s+14],23,-35309556),r=E(r,n,o,i,e[s+1],4,-1530992060),i=E(i,r,n,o,e[s+4],11,1272893353),o=E(o,i,r,n,e[s+7],16,-155497632),n=E(n,o,i,r,e[s+10],23,-1094730640),r=E(r,n,o,i,e[s+13],4,681279174),i=E(i,r,n,o,e[s],11,-358537222),o=E(o,i,r,n,e[s+3],16,-722521979),n=E(n,o,i,r,e[s+6],23,76029189),r=E(r,n,o,i,e[s+9],4,-640364487),i=E(i,r,n,o,e[s+12],11,-421815835),o=E(o,i,r,n,e[s+15],16,530742520),r=O(r,n=E(n,o,i,r,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=O(i,r,n,o,e[s+7],10,1126891415),o=O(o,i,r,n,e[s+14],15,-1416354905),n=O(n,o,i,r,e[s+5],21,-57434055),r=O(r,n,o,i,e[s+12],6,1700485571),i=O(i,r,n,o,e[s+3],10,-1894986606),o=O(o,i,r,n,e[s+10],15,-1051523),n=O(n,o,i,r,e[s+1],21,-2054922799),r=O(r,n,o,i,e[s+8],6,1873313359),i=O(i,r,n,o,e[s+15],10,-30611744),o=O(o,i,r,n,e[s+6],15,-1560198380),n=O(n,o,i,r,e[s+13],21,1309151649),r=O(r,n,o,i,e[s+4],6,-145523070),i=O(i,r,n,o,e[s+11],10,-1120210379),o=O(o,i,r,n,e[s+2],15,718787259),n=O(n,o,i,r,e[s+9],21,-343485551),r=b(r,a),n=b(n,c),o=b(o,u),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(g(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),k=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();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 l(n)};function R(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function x(e,t){return e<<t|e>>>32-t}const _=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];a[c]=u}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[f][h];for(var p=16;p<80;++p)d[p]=x(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var v=r[0],m=r[1],y=r[2],g=r[3],b=r[4],w=0;w<80;++w){var S=Math.floor(w/20),C=x(v,5)+R(S,m,y,g)+b+t[S]+d[w]>>>0;b=g,g=y,y=x(m,30)>>>0,m=v,v=C}r[0]=r[0]+v>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),P="00000000-0000-0000-0000-000000000000",T=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},3836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3931:function(e,t){"use strict";var r,n,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.convertFileType=t.FileTypeAlias=t.FileType=void 0,function(e){e.DocumentPro="documentPro",e.Document="document",e.Spreadsheet="spreadsheet",e.Presentation="presentation",e.Table="table",e.Form="form",e.Flowchart="flowchart",e.Mindmap="mindmap",e.Board="board",e.Unknown="unknown"}(n=t.FileType||(t.FileType={})),t.FileTypeAlias=((r={})[n.Document]="docs",r[n.DocumentPro]="docx",r[n.Spreadsheet]="sheets",r[n.Presentation]="presentation",r[n.Table]="table",r[n.Form]="form",r[n.Mindmap]="mindmap",r[n.Board]="board",r[n.Flowchart]="flowchart",r),t.convertFileType=function(e){var r,s,a,c;if("string"==typeof e){try{for(var u=o(Object.entries(n)),l=u.next();!l.done;l=u.next()){var f=i(l.value,2),d=f[0],h=f[1];if(d===e||h===e)return h}}catch(e){r={error:e}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}try{for(var p=o(Object.entries(t.FileTypeAlias)),v=p.next();!v.done;v=p.next()){var m=i(v.value,2);if(d=m[0],(h=m[1])===e)return d}}catch(e){a={error:e}}finally{try{v&&!v.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}}else switch(e){case-2:return n.Document;case-4:return n.Spreadsheet;case-6:return n.DocumentPro;case-7:return n.Mindmap;case-8:return n.Form;case-9:return n.Board;case-10:return n.Presentation;case-11:return n.Table;case-13:return n.Flowchart}return n.Unknown}},5313:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadyState=t.isSDKEventMessage=t.SDKEvent=void 0,t.SDKEvent=Object.freeze({ViewportResize:"ViewportResize",ReadyState:"ReadyState"}),t.isSDKEventMessage=function(e){var r;return null!=e&&(r=e.event),"string"==typeof r&&r in t.SDKEvent},(r=t.ReadyState||(t.ReadyState={})).Loading="loading",r.LoadingEditor="loadingEditor",r.Ready="ready",r.Failed="failed",r.Disconnected="disconnected"},4057:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3672),t),o(r(3836),t),o(r(3931),t),o(r(5313),t)},3672:(e,t)=>{"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.UrlSharingType=t.SpreadsheetSharingFrom=t.ContainerMethod=t.InvokeMethod=void 0,(i=t.InvokeMethod||(t.InvokeMethod={})).SDKInit="SDKInit",i.Error="error",i.ReadyState="readyState",i.SetCredentials="setCredentials",i.InvokeContainerMethod="invokeContainerMethod",i.InvokeEditorMethod="invokeEditorMethod",i.DispatchSDKEvent="dispatchSDKEvent",i.DispatchEditorEvent="dispatchEditorEvent",i.ListenEditorEvent="listenEditorEvent",i.RequestPerformanceEntries="requestPerformanceEntries",(o=t.ContainerMethod||(t.ContainerMethod={})).GetContainerRect="getContainerRect",o.OpenLink="openLink",o.GenerateUrl="generateUrl",o.MentionClickHandlerForMobile="mentionClickHandlerForMobile",o.GetFileInfoFromUrl="getFileInfoFromUrl",o.ShowSignatureComponent="showSignatureComponent",o.ShowToast="showToast",o.HandleCustomTask="handleCustomTask",o.GetCredentials="getCredentials",(n=t.SpreadsheetSharingFrom||(t.SpreadsheetSharingFrom={})).copyRangeLink="copyRangeLink",n.copyViewportLink="copyViewportLink",n.copySheetLink="copySheetLink",n.importRange="importRange",n.preview="preview",(r=t.UrlSharingType||(t.UrlSharingType={})).Doc="doc",r.Docx="docx",r.Spreadsheet="sheet",r.Form="form",r.FormPreview="formPreview",r.FormFill="formFill",r.Presentation="presentation",r.Table="table",r.Flowchart="flowchart",r.Mindmap="mindmap",r.Board="board"},6877:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StartParams=void 0;var o=n(r(4139)),i=n(r(1121)).default.createInstance(),s=function(){function e(t){if("string"==typeof t)return e.parse(t);if((0,o.default)(t))Object.assign(this,t);else if(t instanceof e)Object.assign(this,JSON.parse(JSON.stringify(t)));else if(Array.isArray(t))for(var r=0,n=t;r<n.length;r++){var i=n[r];"string"==typeof i?Object.assign(this,e.parse(i)):null!=i&&Object.assign(this,JSON.parse(JSON.stringify(i)))}null==this.fileGuid&&null!=this.guid&&(this.fileGuid=this.guid),null!=this.guid&&this.fileGuid!==this.guid&&(this.guid=this.fileGuid)}return e.parse=function(t){return new e(JSON.parse(i.decodeStr(t)))},e.prototype.toString=function(){return i.encodeStr(JSON.stringify(this))},e}();t.StartParams=s},4339:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6877),t)},4139:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},6343:(e,t,r)=>{"use strict";var n=r(6612);e.exports=n},1015:(e,t,r)=>{"use strict";var n=r(8418);e.exports=n},780:(e,t,r)=>{"use strict";var n=r(2473);r(7628),r(3799),e.exports=n},5448:(e,t,r)=>{"use strict";var n=r(2841);e.exports=n},3609:(e,t,r)=>{"use strict";r(4423);var n=r(7015);e.exports=n("Array","includes")},8473:(e,t,r)=>{"use strict";r(9085);var n=r(9167);e.exports=n.Object.assign},6398:(e,t,r)=>{"use strict";r(67),r(3792),r(6099),r(3362),r(6167),r(3518),r(1689),r(4628),r(9391),r(7764);var n=r(9167);e.exports=n.Promise},2288:(e,t,r)=>{"use strict";e.exports=r(5914)},7782:(e,t,r)=>{"use strict";e.exports=r(6008)},5781:(e,t,r)=>{"use strict";e.exports=r(911)},2701:(e,t,r)=>{"use strict";e.exports=r(8255)},5914:(e,t,r)=>{"use strict";var n=r(6343);e.exports=n},6008:(e,t,r)=>{"use strict";var n=r(1015);e.exports=n},911:(e,t,r)=>{"use strict";var n=r(780);r(9806),r(5874),r(7575),e.exports=n},8255:(e,t,r)=>{"use strict";var n=r(5448);e.exports=n},9306:(e,t,r)=>{"use strict";var n=r(4901),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},5548:(e,t,r)=>{"use strict";var n=r(3517),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},3506:(e,t,r)=>{"use strict";var n=r(3925),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:(e,t,r)=>{"use strict";var n=r(8227),o=r(2360),i=r(4913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},679:(e,t,r)=>{"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},8551:(e,t,r)=>{"use strict";var n=r(34),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},7916:(e,t,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8981),s=r(6319),a=r(4209),c=r(3517),u=r(6198),l=r(2278),f=r(81),d=r(851),h=Array;e.exports=function(e){var t=i(e),r=c(this),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,p>2?arguments[2]:void 0));var y,g,b,w,S,C,E=d(t),O=0;if(!E||this===h&&a(E))for(y=u(t),g=r?new this(y):h(y);y>O;O++)C=m?v(t[O],O):t[O],l(g,O,C);else for(g=r?new this:[],S=(w=f(t,E)).next;!(b=o(S,w)).done;O++)C=m?s(w,v,[b.value,O],!0):b.value,l(g,O,C);return g.length=O,g}},9617:(e,t,r)=>{"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(e){return function(t,r,s){var a=n(t),c=i(a);if(0===c)return!e&&-1;var u,l=o(s,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},7680:(e,t,r)=>{"use strict";var n=r(9504);e.exports=n([].slice)},4488:(e,t,r)=>{"use strict";var n=r(7680),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var s,a,c=1;c<r;){for(a=c,s=e[c];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==c++&&(e[a]=s)}else for(var u=o(r/2),l=i(n(e,0,u),t),f=i(n(e,u),t),d=l.length,h=f.length,p=0,v=0;p<d||v<h;)e[p+v]=p<d&&v<h?t(l[p],f[v])<=0?l[p++]:f[v++]:p<d?l[p++]:f[v++];return e};e.exports=i},6319:(e,t,r)=>{"use strict";var n=r(8551),o=r(9539);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},4428:(e,t,r)=>{"use strict";var n=r(8227)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},2195:(e,t,r)=>{"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:(e,t,r)=>{"use strict";var n=r(2140),o=r(4901),i=r(2195),s=r(8227)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},7740:(e,t,r)=>{"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);e.exports=function(e,t,r){for(var a=o(t),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},2211:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:(e,t,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2278:(e,t,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},2106:(e,t,r)=>{"use strict";var n=r(283),o=r(4913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},6840:(e,t,r)=>{"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);e.exports=function(e,t,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(n(r)&&i(r,u,a),a.global)c?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},6279:(e,t,r)=>{"use strict";var n=r(6840);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},9433:(e,t,r)=>{"use strict";var n=r(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3724:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(e,t,r)=>{"use strict";var n=r(4576),o=r(34),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7400:e=>{"use strict";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}},9296:(e,t,r)=>{"use strict";var n=r(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7015:(e,t,r)=>{"use strict";var n=r(4576),o=r(9504);e.exports=function(e,t){return o(n[e].prototype[t])}},8727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9544:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},8574:(e,t,r)=>{"use strict";var n=r(4215);e.exports="NODE"===n},7860:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/web0s(?!.*chrome)/i.test(n)},2839:(e,t,r)=>{"use strict";var n=r(4576).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},9519:(e,t,r)=>{"use strict";var n,o,i=r(4576),s=r(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},4215:(e,t,r)=>{"use strict";var n=r(4576),o=r(2839),i=r(2195),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6193:(e,t,r)=>{"use strict";var n=r(9504),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},747:(e,t,r)=>{"use strict";var n=r(6699),o=r(6193),i=r(4659),s=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(s?s(e,t):n(e,"stack",o(r,a)))}},4659:(e,t,r)=>{"use strict";var n=r(9039),o=r(6980);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},6518:(e,t,r)=>{"use strict";var n=r(4576),o=r(7347).f,i=r(6699),s=r(6840),a=r(9433),c=r(7740),u=r(2796);e.exports=function(e,t){var r,l,f,d,h,p=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!u(v?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(r,l,d,e)}}},9039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8745:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6080:(e,t,r)=>{"use strict";var n=r(7476),o=r(9306),i=r(616),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},616:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(e,t,r)=>{"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:(e,t,r)=>{"use strict";var n=r(9504),o=r(9306);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7476:(e,t,r)=>{"use strict";var n=r(2195),o=r(9504);e.exports=function(e){if("Function"===n(e))return o(e)}},9504:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},7751:(e,t,r)=>{"use strict";var n=r(4576),o=r(4901);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},851:(e,t,r)=>{"use strict";var n=r(6955),o=r(5966),i=r(4117),s=r(6269),a=r(8227)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},81:(e,t,r)=>{"use strict";var n=r(9565),o=r(9306),i=r(8551),s=r(6823),a=r(851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw new c(s(e)+" is not iterable")}},5966:(e,t,r)=>{"use strict";var n=r(9306),o=r(4117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},4576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(e,t,r)=>{"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:e=>{"use strict";e.exports={}},3138:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},397:(e,t,r)=>{"use strict";var n=r(7751);e.exports=n("document","documentElement")},5917:(e,t,r)=>{"use strict";var n=r(3724),o=r(9039),i=r(4055);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(2195),s=Object,a=n("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):s(e)}:s},3706:(e,t,r)=>{"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},7584:(e,t,r)=>{"use strict";var n=r(34),o=r(6699);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},1181:(e,t,r)=>{"use strict";var n,o,i,s=r(8622),a=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),d=r(6119),h=r(421),p="Object already initialized",v=a.TypeError,m=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new v(p);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=d("state");h[g]=!0,n=function(e,t){if(l(e,g))throw new v(p);return t.facade=e,u(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},4209:(e,t,r)=>{"use strict";var n=r(8227),o=r(6269),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},4901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(6955),a=r(7751),c=r(3706),u=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),h=!f.test(u),p=function(e){if(!i(e))return!1;try{return l(u,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(e))}catch(e){return!0}};v.sham=!0,e.exports=!l||o((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?v:p},2796:(e,t,r)=>{"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(e,t){var r=c[a(e)];return r===l||r!==u&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},4117:e=>{"use strict";e.exports=function(e){return null==e}},34:(e,t,r)=>{"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},3925:(e,t,r)=>{"use strict";var n=r(34);e.exports=function(e){return n(e)||null===e}},6395:e=>{"use strict";e.exports=!1},757:(e,t,r)=>{"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},2652:(e,t,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8551),s=r(6823),a=r(4209),c=r(6198),u=r(1625),l=r(81),f=r(851),d=r(9539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,r){var m,y,g,b,w,S,C,E=r&&r.that,O=!(!r||!r.AS_ENTRIES),M=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),x=n(t,E),_=function(e){return m&&d(m,"normal",e),new p(!0,e)},P=function(e){return O?(i(e),R?x(e[0],e[1],_):x(e[0],e[1])):R?x(e,_):x(e)};if(M)m=e.iterator;else if(k)m=e;else{if(!(y=f(e)))throw new h(s(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((w=P(e[g]))&&u(v,w))return w;return new p(!1)}m=l(e,y)}for(S=M?e.next:m.next;!(C=o(S,m)).done;){try{w=P(C.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&u(v,w))return w}return new p(!1)}},9539:(e,t,r)=>{"use strict";var n=r(9565),o=r(8551),i=r(5966);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},3994:(e,t,r)=>{"use strict";var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),s=r(687),a=r(6269),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}},1088:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(6395),s=r(350),a=r(4901),c=r(3994),u=r(2787),l=r(2967),f=r(687),d=r(6699),h=r(6840),p=r(8227),v=r(6269),m=r(7657),y=s.PROPER,g=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),C="keys",E="values",O="entries",M=function(){return this};e.exports=function(e,t,r,s,p,m,k){c(r,t,s);var R,x,_,P=function(e){if(e===p&&j)return j;if(!w&&e&&e in U)return U[e];switch(e){case C:case E:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",F=!1,U=e.prototype,A=U[S]||U["@@iterator"]||p&&U[p],j=!w&&A||P(p),L="Array"===t&&U.entries||A;if(L&&(R=u(L.call(new e)))!==Object.prototype&&R.next&&(i||u(R)===b||(l?l(R,b):a(R[S])||h(R,S,M)),f(R,T,!0,!0),i&&(v[T]=M)),y&&p===E&&A&&A.name!==E&&(!i&&g?d(U,"name",E):(F=!0,j=function(){return o(A,this)})),p)if(x={values:P(E),keys:m?j:P(C),entries:P(O)},k)for(_ in x)(w||F||!(_ in U))&&h(U,_,x[_]);else n({target:t,proto:!0,forced:w||F},x);return i&&!k||U[S]===j||h(U,S,j,{name:p}),v[t]=j,x}},7657:(e,t,r)=>{"use strict";var n,o,i,s=r(9039),a=r(4901),c=r(34),u=r(2360),l=r(2787),f=r(6840),d=r(8227),h=r(6395),p=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||s((function(){var e={};return n[p].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[p])||f(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},6269:e=>{"use strict";e.exports={}},6198:(e,t,r)=>{"use strict";var n=r(8014);e.exports=function(e){return n(e.length)}},283:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),a=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,v=n("".slice),m=n("".replace),y=n([].join),g=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return s(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||u(this)}),"toString")},741:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1955:(e,t,r)=>{"use strict";var n,o,i,s,a,c=r(4576),u=r(3389),l=r(6080),f=r(9225).set,d=r(8265),h=r(9544),p=r(4265),v=r(7860),m=r(8574),y=c.MutationObserver||c.WebKitMutationObserver,g=c.document,b=c.process,w=c.Promise,S=u("queueMicrotask");if(!S){var C=new d,E=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&n(),e}e&&e.enter()};h||m||v||!y||!g?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=l(s.then,s),n=function(){a(E)}):m?n=function(){b.nextTick(E)}:(f=l(f,c),n=function(){f(E)}):(o=!0,i=g.createTextNode(""),new y(E).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),S=function(e){C.head||n(),C.add(e)}}e.exports=S},6043:(e,t,r)=>{"use strict";var n=r(9306),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},2603:(e,t,r)=>{"use strict";var n=r(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4213:(e,t,r)=>{"use strict";var n=r(3724),o=r(9504),i=r(9565),s=r(9039),a=r(1072),c=r(3717),u=r(8773),l=r(8981),f=r(7055),d=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!d||s((function(){if(n&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||a(d({},t)).join("")!==o}))?function(e,t){for(var r=l(e),o=arguments.length,s=1,d=c.f,h=u.f;o>s;)for(var v,m=f(arguments[s++]),y=d?p(a(m),d(m)):a(m),g=y.length,b=0;g>b;)v=y[b++],n&&!i(h,m,v)||(r[v]=m[v]);return r}:d},2360:(e,t,r)=>{"use strict";var n,o=r(8551),i=r(6801),s=r(8727),a=r(421),c=r(397),u=r(4055),l=r(6119),f="prototype",d="script",h=l("IE_PROTO"),p=function(){},v=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var o=s.length;o--;)delete y[f][s[o]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[f]=o(e),r=new p,p[f]=null,r[h]=e):r=y(),void 0===t?r:i.f(r,t)}},6801:(e,t,r)=>{"use strict";var n=r(3724),o=r(8686),i=r(4913),s=r(8551),a=r(5397),c=r(1072);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}},4913:(e,t,r)=>{"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),a=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7347:(e,t,r)=>{"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),a=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=a(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},8480:(e,t,r)=>{"use strict";var n=r(1828),o=r(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},3717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2787:(e,t,r)=>{"use strict";var n=r(9297),o=r(4901),i=r(8981),s=r(6119),a=r(2211),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1625:(e,t,r)=>{"use strict";var n=r(9504);e.exports=n({}.isPrototypeOf)},1828:(e,t,r)=>{"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,a=r(421),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},1072:(e,t,r)=>{"use strict";var n=r(1828),o=r(8727);e.exports=Object.keys||function(e){return n(e,o)}},8773:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2967:(e,t,r)=>{"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),s(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3179:(e,t,r)=>{"use strict";var n=r(2140),o=r(6955);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270:(e,t,r)=>{"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},5031:(e,t,r)=>{"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),a=r(8551),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?c(t,r(e)):t}},9167:(e,t,r)=>{"use strict";var n=r(4576);e.exports=n},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},916:(e,t,r)=>{"use strict";var n=r(4576),o=r(550),i=r(4901),s=r(2796),a=r(3706),c=r(8227),u=r(4215),l=r(6395),f=r(9519),d=o&&o.prototype,h=c("species"),p=!1,v=i(n.PromiseRejectionEvent),m=s("Promise",(function(){var e=a(o),t=e!==String(o);if(!t&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(p=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||v)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},550:(e,t,r)=>{"use strict";var n=r(4576);e.exports=n.Promise},3438:(e,t,r)=>{"use strict";var n=r(8551),o=r(34),i=r(6043);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},537:(e,t,r)=>{"use strict";var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},8265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},7750:(e,t,r)=>{"use strict";var n=r(4117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},3389:(e,t,r)=>{"use strict";var n=r(4576),o=r(3724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},7633:(e,t,r)=>{"use strict";var n=r(7751),o=r(2106),i=r(8227),s=r(3724),a=i("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},687:(e,t,r)=>{"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6119:(e,t,r)=>{"use strict";var n=r(5745),o=r(3392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:(e,t,r)=>{"use strict";var n=r(6395),o=r(4576),i=r(9433),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(e,t,r)=>{"use strict";var n=r(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},2293:(e,t,r)=>{"use strict";var n=r(8551),o=r(5548),i=r(4117),s=r(8227)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||i(r=n(a)[s])?t:o(r)}},8183:(e,t,r)=>{"use strict";var n=r(9504),o=r(1291),i=r(655),s=r(7750),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(s(t)),d=o(r),h=f.length;return d<0||d>=h?e?"":void 0:(n=c(f,d))<55296||n>56319||d+1===h||(l=c(f,d+1))<56320||l>57343?e?a(f,d):n:e?u(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6098:(e,t,r)=>{"use strict";var n=r(9504),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,u=n(s.exec),l=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),h=n([].join),p=n([].push),v=n("".replace),m=n("".split),y=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=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))},w=function(e){var t=[];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)?p(t,((1023&o)<<10)+(1023&i)+65536):(p(t,o),r--)}else p(t,o)}return t}(e);var r,n,i=e.length,s=128,u=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&p(t,f(n));var m=t.length,y=m;for(m&&p(t,"-");y<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<w&&(w=n);var S=y+1;if(w-s>l((o-u)/S))throw new c(a);for(u+=(w-s)*S,s=w,r=0;r<e.length;r++){if((n=e[r])<s&&++u>o)throw new c(a);if(n===s){for(var C=u,E=36;;){var O=E<=v?1:E>=v+26?26:E-v;if(C<O)break;var M=C-O,k=36-O;p(t,f(g(O+M%k))),C=l(M/k),E+=36}p(t,f(g(C))),v=b(u,S,y===m),u=0,y++}}u++,s++}return h(t,"")};e.exports=function(e){var t,r,n=[],o=m(v(y(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],p(n,u(i,r)?"xn--"+w(r):r);return h(n,".")}},4495:(e,t,r)=>{"use strict";var n=r(9519),o=r(9039),i=r(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9225:(e,t,r)=>{"use strict";var n,o,i,s,a=r(4576),c=r(8745),u=r(6080),l=r(4901),f=r(9297),d=r(9039),h=r(397),p=r(7680),v=r(4055),m=r(2812),y=r(9544),g=r(8574),b=a.setImmediate,w=a.clearImmediate,S=a.process,C=a.Dispatch,E=a.Function,O=a.MessageChannel,M=a.String,k=0,R={},x="onreadystatechange";d((function(){n=a.location}));var _=function(e){if(f(R,e)){var t=R[e];delete R[e],t()}},P=function(e){return function(){_(e)}},T=function(e){_(e.data)},F=function(e){a.postMessage(M(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){m(arguments.length,1);var t=l(e)?e:E(e),r=p(arguments,1);return R[++k]=function(){c(t,void 0,r)},o(k),k},w=function(e){delete R[e]},g?o=function(e){S.nextTick(P(e))}:C&&C.now?o=function(e){C.now(P(e))}:O&&!y?(s=(i=new O).port2,i.port1.onmessage=T,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(F)?(o=F,a.addEventListener("message",T,!1)):o=x in v("script")?function(e){h.appendChild(v("script"))[x]=function(){h.removeChild(this),_(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:w}},5610:(e,t,r)=>{"use strict";var n=r(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5397:(e,t,r)=>{"use strict";var n=r(7055),o=r(7750);e.exports=function(e){return n(o(e))}},1291:(e,t,r)=>{"use strict";var n=r(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8014:(e,t,r)=>{"use strict";var n=r(1291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},8981:(e,t,r)=>{"use strict";var n=r(7750),o=Object;e.exports=function(e){return o(n(e))}},2777:(e,t,r)=>{"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),a=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},6969:(e,t,r)=>{"use strict";var n=r(2777),o=r(757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2140:(e,t,r)=>{"use strict";var n={};n[r(8227)("toStringTag")]="z",e.exports="[object z]"===String(n)},655:(e,t,r)=>{"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:(e,t,r)=>{"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},7416:(e,t,r)=>{"use strict";var n=r(9039),o=r(8227),i=r(3724),s=r(6395),a=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),s&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(s||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},7040:(e,t,r)=>{"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(e,t,r)=>{"use strict";var n=r(3724),o=r(9039);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},8622:(e,t,r)=>{"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:(e,t,r)=>{"use strict";var n=r(4576),o=r(5745),i=r(9297),s=r(3392),a=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},7145:(e,t,r)=>{"use strict";var n=r(6518),o=r(1625),i=r(2787),s=r(2967),a=r(7740),c=r(2360),u=r(6699),l=r(6980),f=r(7584),d=r(747),h=r(2652),p=r(2603),v=r(8227)("toStringTag"),m=Error,y=[].push,g=function(e,t){var r,n=o(b,this);s?r=s(new m,n?i(this):b):(r=n?this:c(b),u(r,v,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return h(e,y,{that:a}),u(r,"errors",a),r};s?s(g,m):a(g,m,{name:!0});var b=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},67:(e,t,r)=>{"use strict";r(7145)},4423:(e,t,r)=>{"use strict";var n=r(6518),o=r(9617).includes,i=r(9039),s=r(6469);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},3792:(e,t,r)=>{"use strict";var n=r(5397),o=r(6469),i=r(6269),s=r(1181),a=r(4913).f,c=r(1088),u=r(2529),l=r(6395),f=r(3724),d="Array Iterator",h=s.set,p=s.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(e){}},9085:(e,t,r)=>{"use strict";var n=r(6518),o=r(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},6099:(e,t,r)=>{"use strict";var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6167:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{allSettled:function(e){var t=this,r=s.f(t),n=r.resolve,u=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,u=1;c(e,(function(e){var i=a++,c=!1;u++,o(r,t,e).then((function(e){c||(c=!0,s[i]={status:"fulfilled",value:e},--u||n(s))}),(function(e){c||(c=!0,s[i]={status:"rejected",reason:e},--u||n(s))}))})),--u||n(s)}));return l.error&&u(l.value),r.promise}})},6499:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,u=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1;c(e,(function(e){var i=a++,c=!1;l++,o(r,t,e).then((function(e){c||(c=!0,s[i]=e,--l||n(s))}),u)})),--l||n(s)}));return l.error&&u(l.value),r.promise}})},3518:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(7751),a=r(6043),c=r(1103),u=r(2652),l=r(537),f="No one promise resolved";n({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,r=s("AggregateError"),n=a.f(t),l=n.resolve,d=n.reject,h=c((function(){var n=i(t.resolve),s=[],a=0,c=1,h=!1;u(e,(function(e){var i=a++,u=!1;c++,o(n,t,e).then((function(e){u||h||(h=!0,l(e))}),(function(e){u||h||(u=!0,s[i]=e,--c||d(new r(s,f)))}))})),--c||d(new r(s,f))}));return h.error&&d(h.value),n.promise}})},2003:(e,t,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,s=r(550),a=r(7751),c=r(4901),u=r(6840),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(s)){var f=a("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},436:(e,t,r)=>{"use strict";var n,o,i,s=r(6518),a=r(6395),c=r(8574),u=r(4576),l=r(9565),f=r(6840),d=r(2967),h=r(687),p=r(7633),v=r(9306),m=r(4901),y=r(34),g=r(679),b=r(2293),w=r(9225).set,S=r(1955),C=r(3138),E=r(1103),O=r(8265),M=r(1181),k=r(550),R=r(916),x=r(6043),_="Promise",P=R.CONSTRUCTOR,T=R.REJECTION_EVENT,F=R.SUBCLASSING,U=M.getterFor(_),A=M.set,j=k&&k.prototype,L=k,I=j,N=u.TypeError,D=u.document,V=u.process,B=x.f,W=B,Z=!!(D&&D.createEvent&&u.dispatchEvent),H="unhandledrejection",J=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},G=function(e,t){var r,n,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{a?(s||(2===t.rejection&&X(t),t.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===e.promise?u(new N("Promise-chain cycle")):(n=J(r))?l(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},Q=function(e,t){e.notified||(e.notified=!0,S((function(){for(var r,n=e.reactions;r=n.get();)G(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},z=function(e,t,r){var n,o;Z?((n=D.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!T&&(o=u["on"+e])?o(n):e===H&&C("Unhandled promise rejection",r)},Y=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=E((function(){c?V.emit("unhandledRejection",n,r):z(H,r,n)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(w,u,(function(){var t=e.facade;c?V.emit("rejectionHandled",t):z("rejectionhandled",t,e.value)}))},q=function(e,t,r){return function(n){e(t,n,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Q(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var n=J(t);n?S((function(){var r={done:!1};try{l(n,t,q(ee,r,e),q($,r,e))}catch(t){$(r,t,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(t){$({done:!1},t,e)}}};if(P&&(I=(L=function(e){g(this,I),v(e),l(n,this);var t=U(this);try{e(q(ee,t),q($,t))}catch(e){$(t,e)}}).prototype,(n=function(e){A(this,{type:_,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=f(I,"then",(function(e,t){var r=U(this),n=B(b(this,L));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=c?V.domain:void 0,0===r.state?r.reactions.add(n):S((function(){G(n,r)})),n.promise})),o=function(){var e=new n,t=U(e);this.promise=e,this.resolve=q(ee,t),this.reject=q($,t)},x.f=B=function(e){return e===L||void 0===e?new o(e):W(e)},!a&&m(k)&&j!==Object.prototype)){i=j.then,F||f(j,"then",(function(e,t){var r=this;return new L((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(e){}d&&d(j,I)}s({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),h(L,_,!1,!0),p(_)},9391:(e,t,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(550),s=r(9039),a=r(7751),c=r(4901),u=r(2293),l=r(3438),f=r(6840),d=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&s((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,a("Promise")),r=c(e);return this.then(r?function(r){return l(t,e()).then((function(){return r}))}:e,r?function(r){return l(t,e()).then((function(){throw r}))}:e)}}),!o&&c(i)){var h=a("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},3362:(e,t,r)=>{"use strict";r(436),r(6499),r(2003),r(7743),r(1481),r(280)},7743:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(e){var t=this,r=s.f(t),n=r.reject,u=a((function(){var s=i(t.resolve);c(e,(function(e){o(s,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},1481:(e,t,r)=>{"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},280:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(6395),s=r(550),a=r(916).CONSTRUCTOR,c=r(3438),u=o("Promise"),l=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},1689:(e,t,r)=>{"use strict";var n=r(6518),o=r(4576),i=r(8745),s=r(7680),a=r(6043),c=r(9306),u=r(1103),l=o.Promise,f=!1;n({target:"Promise",stat:!0,forced:!l||!l.try||u((function(){l.try((function(e){f=8===e}),8)})).error||!f},{try:function(e){var t=arguments.length>1?s(arguments,1):[],r=a.f(this),n=u((function(){return i(c(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}})},4628:(e,t,r)=>{"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},7337:(e,t,r)=>{"use strict";var n=r(6518),o=r(9504),i=r(5610),s=RangeError,a=String.fromCharCode,c=String.fromCodePoint,u=o([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new s(t+" is not a valid code point");r[o]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},7764:(e,t,r)=>{"use strict";var n=r(8183).charAt,o=r(655),i=r(1181),s=r(1088),a=r(2529),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?a(void 0,!0):(e=n(r,o),t.index+=e.length,a(e,!1))}))},9806:(e,t,r)=>{"use strict";r(67)},5874:(e,t,r)=>{"use strict";r(6167)},7575:(e,t,r)=>{"use strict";r(3518)},7628:(e,t,r)=>{"use strict";r(1689)},3799:(e,t,r)=>{"use strict";r(4628)},2953:(e,t,r)=>{"use strict";var n=r(4576),o=r(7400),i=r(9296),s=r(3792),a=r(6699),c=r(687),u=r(8227)("iterator"),l=s.values,f=function(e,t){if(e){if(e[u]!==l)try{a(e,u,l)}catch(t){e[u]=l}if(c(e,t,!0),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 d in o)f(n[d]&&n[d].prototype,d);f(i,"DOMTokenList")},8406:(e,t,r)=>{"use strict";r(3792),r(7337);var n=r(6518),o=r(4576),i=r(3389),s=r(7751),a=r(9565),c=r(9504),u=r(3724),l=r(7416),f=r(6840),d=r(2106),h=r(6279),p=r(687),v=r(3994),m=r(1181),y=r(679),g=r(4901),b=r(9297),w=r(6080),S=r(6955),C=r(8551),E=r(34),O=r(655),M=r(2360),k=r(6980),R=r(81),x=r(851),_=r(2529),P=r(2812),T=r(8227),F=r(4488),U=T("iterator"),A="URLSearchParams",j=A+"Iterator",L=m.set,I=m.getterFor(A),N=m.getterFor(j),D=i("fetch"),V=i("Request"),B=i("Headers"),W=V&&V.prototype,Z=B&&B.prototype,H=o.TypeError,J=o.encodeURIComponent,G=String.fromCharCode,Q=s("String","fromCodePoint"),z=parseInt,Y=c("".charAt),K=c([].join),X=c([].push),q=c("".replace),$=c([].shift),ee=c([].splice),te=c("".split),re=c("".slice),ne=c(/./.exec),oe=/\+/g,ie=/^[0-9a-f]+$/i,se=function(e,t){var r=re(e,t,t+2);return ne(ie,r)?z(r,16):NaN},ae=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=q(e,oe," ")).length,r="",n=0;n<t;){var o=Y(e,n);if("%"===o){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var i=se(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=ae(i);if(0===s)o=G(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],c=1;c<s&&!(3+ ++n>t||"%"!==Y(e,n));){var u=se(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;X(a,u),n+=2,c++}if(a.length!==s){r+="�";continue}var l=ce(a);null===l?r+="�":o=Q(l)}}r+=o,n++}return r},le=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},de=function(e){return fe[e]},he=function(e){return q(J(e),le,de)},pe=v((function(e,t){L(this,{type:j,target:I(e).entries,index:0,kind:t})}),A,(function(){var e=N(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,_(void 0,!0);var n=t[r];switch(e.kind){case"keys":return _(n.key,!1);case"values":return _(n.value,!1)}return _([n.key,n.value],!1)}),!0),ve=function(e){this.entries=[],this.url=null,void 0!==e&&(E(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:O(e)))};ve.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,c,u=this.entries,l=x(e);if(l)for(r=(t=R(e,l)).next;!(n=a(r,t)).done;){if(i=(o=R(C(n.value))).next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw new H("Expected sequence with length 2");X(u,{key:O(s.value),value:O(c.value)})}else for(var f in e)b(e,f)&&X(u,{key:f,value:O(e[f])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=te(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=te(t,"="),X(n,{key:ue($(r)),value:ue(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],X(r,he(e.key)+"="+he(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var me=function(){y(this,ye);var e=L(this,new ve(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ye=me.prototype;if(h(ye,{append:function(e,t){var r=I(this);P(arguments.length,2),X(r.entries,{key:O(e),value:O(t)}),u||this.length++,r.updateURL()},delete:function(e){for(var t=I(this),r=P(arguments.length,1),n=t.entries,o=O(e),i=r<2?void 0:arguments[1],s=void 0===i?i:O(i),a=0;a<n.length;){var c=n[a];if(c.key!==o||void 0!==s&&c.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}u||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;P(arguments.length,1);for(var r=O(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;P(arguments.length,1);for(var r=O(e),n=[],o=0;o<t.length;o++)t[o].key===r&&X(n,t[o].value);return n},has:function(e){for(var t=I(this).entries,r=P(arguments.length,1),n=O(e),o=r<2?void 0:arguments[1],i=void 0===o?o:O(o),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){var r=I(this);P(arguments.length,1);for(var n,o=r.entries,i=!1,s=O(e),a=O(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?ee(o,c--,1):(i=!0,n.value=a));i||X(o,{key:s,value:a}),u||(this.size=o.length),r.updateURL()},sort:function(){var e=I(this);F(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=w(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 pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),f(ye,U,ye.entries,{name:"entries"}),f(ye,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),u&&d(ye,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(me,A),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:me}),!l&&g(B)){var ge=c(Z.has),be=c(Z.set),we=function(e){if(E(e)){var t,r=e.body;if(S(r)===A)return t=e.headers?new B(e.headers):new B,ge(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M(e,{body:k(0,O(r)),headers:k(0,t)})}return e};if(g(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?we(arguments[1]):{})}}),g(V)){var Se=function(e){return y(this,W),new V(e,arguments.length>1?we(arguments[1]):{})};W.constructor=Se,Se.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Se})}}e.exports={URLSearchParams:me,getState:I}},4603:(e,t,r)=>{"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.append),l=o(c.delete),f=o(c.forEach),d=o([].push),h=new a("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){d(n,{key:t,value:e})})),s(t,1);for(var o,a=i(e),c=i(r),h=0,p=0,v=!1,m=n.length;h<m;)o=n[h++],v||o.key===a?(v=!0,l(this,o.key)):p++;for(;p<m;)(o=n[p++]).key===a&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7566:(e,t,r)=>{"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.getAll),l=o(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);s(t,1);for(var o=i(r),a=0;a<n.length;)if(n[a++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},8408:(e,t,r)=>{"use strict";r(8406)},8721:(e,t,r)=>{"use strict";var n=r(3724),o=r(9504),i=r(2106),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},2222:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(9039),s=r(2812),a=r(655),c=r(7416),u=o("URL"),l=c&&i((function(){u.canParse()})),f=i((function(){return 1!==u.canParse.length}));n({target:"URL",stat:!0,forced:!l||f},{canParse:function(e){var t=s(arguments.length,1),r=a(e),n=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return!!new u(r,n)}catch(e){return!1}}})},5806:(e,t,r)=>{"use strict";r(7764);var n,o=r(6518),i=r(3724),s=r(7416),a=r(4576),c=r(6080),u=r(9504),l=r(6840),f=r(2106),d=r(679),h=r(9297),p=r(4213),v=r(7916),m=r(7680),y=r(8183).codeAt,g=r(6098),b=r(655),w=r(687),S=r(2812),C=r(8406),E=r(1181),O=E.set,M=E.getterFor("URL"),k=C.URLSearchParams,R=C.getState,x=a.URL,_=a.TypeError,P=a.parseInt,T=Math.floor,F=Math.pow,U=u("".charAt),A=u(/./.exec),j=u([].join),L=u(1..toString),I=u([].pop),N=u([].push),D=u("".replace),V=u([].shift),B=u("".split),W=u("".slice),Z=u("".toLowerCase),H=u([].unshift),J="Invalid scheme",G="Invalid host",Q="Invalid port",z=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,q=/^[0-7]+$/,$=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,se=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)H(t,e%256),e=T(e/256);return j(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?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ce=p({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},ce,{"#":1,"?":1,"{":1,"}":1}),le=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=y(e,0);return r>32&&r<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var r;return 2===e.length&&A(z,U(e,0))&&(":"===(r=U(e,1))||!t&&"|"===r)},pe=function(e){var t;return e.length>1&&he(W(e,0,2))&&(2===e.length||"/"===(t=U(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===Z(e)},me={},ye={},ge={},be={},we={},Se={},Ce={},Ee={},Oe={},Me={},ke={},Re={},xe={},_e={},Pe={},Te={},Fe={},Ue={},Ae={},je={},Le={},Ie=function(e,t,r){var n,o,i,s=b(e);if(t){if(o=this.parse(s))throw new _(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ie(r,!0)),o=this.parse(s,null,n))throw new _(o);(i=R(new k)).bindURL(this),this.searchParams=i}};Ie.prototype={type:"URL",parse:function(e,t,r){var o,i,s,a,c,u=this,l=t||me,f=0,d="",p=!1,y=!1,g=!1;for(e=b(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=D(e,ne,""),e=D(e,oe,"$1")),e=D(e,ie,""),o=v(e);f<=o.length;){switch(i=o[f],l){case me:if(!i||!A(z,i)){if(t)return J;l=ge;continue}d+=Z(i),l=ye;break;case ye:if(i&&(A(Y,i)||"+"===i||"-"===i||"."===i))d+=Z(i);else{if(":"!==i){if(t)return J;d="",l=ge,f=0;continue}if(t&&(u.isSpecial()!==h(de,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&de[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?l=_e:u.isSpecial()&&r&&r.scheme===u.scheme?l=be:u.isSpecial()?l=Ee:"/"===o[f+1]?(l=we,f++):(u.cannotBeABaseURL=!0,N(u.path,""),l=Ae)}break;case ge:if(!r||r.cannotBeABaseURL&&"#"!==i)return J;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=m(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Le;break}l="file"===r.scheme?_e:Se;continue;case be:if("/"!==i||"/"!==o[f+1]){l=Se;continue}l=Oe,f++;break;case we:if("/"===i){l=Me;break}l=Ue;continue;case Se: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=Ce;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=je;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=Ue;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=Le}break;case Ce:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=Ue;continue}l=Me}else l=Oe;break;case Ee:if(l=Oe,"/"!==i||"/"!==U(d,f+1))continue;f++;break;case Oe:if("/"!==i&&"\\"!==i){l=Me;continue}break;case Me:if("@"===i){p&&(d="%40"+d),p=!0,s=v(d);for(var w=0;w<s.length;w++){var S=s[w];if(":"!==S||g){var C=fe(S,le);g?u.password+=C:u.username+=C}else g=!0}d=""}else if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(p&&""===d)return"Invalid authority";f-=v(d).length+1,d="",l=ke}else d+=i;break;case ke:case Re: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 G;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d))return a;if(d="",l=Fe,t)return;continue}"["===i?y=!0:"]"===i&&(y=!1),d+=i}else{if(""===d)return G;if(a=u.parseHost(d))return a;if(d="",l=xe,t===Re)return}break;case xe:if(!A(K,i)){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==d){var E=P(d,10);if(E>65535)return Q;u.port=u.isSpecial()&&E===de[u.scheme]?null:E,d=""}if(t)return;l=Fe;continue}return Q}d+=i;break;case _e:if(u.scheme="file","/"===i||"\\"===i)l=Pe;else{if(!r||"file"!==r.scheme){l=Ue;continue}switch(i){case n:u.host=r.host,u.path=m(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=m(r.path),u.query="",l=je;break;case"#":u.host=r.host,u.path=m(r.path),u.query=r.query,u.fragment="",l=Le;break;default:pe(j(m(o,f),""))||(u.host=r.host,u.path=m(r.path),u.shortenPath()),l=Ue;continue}}break;case Pe:if("/"===i||"\\"===i){l=Te;break}r&&"file"===r.scheme&&!pe(j(m(o,f),""))&&(he(r.path[0],!0)?N(u.path,r.path[0]):u.host=r.host),l=Ue;continue;case Te:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&he(d))l=Ue;else if(""===d){if(u.host="",t)return;l=Fe}else{if(a=u.parseHost(d))return a;if("localhost"===u.host&&(u.host=""),t)return;d="",l=Fe}continue}d+=i;break;case Fe:if(u.isSpecial()){if(l=Ue,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(l=Ue,"/"!==i))continue}else u.fragment="",l=Le;else u.query="",l=je;break;case Ue:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(c=Z(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||N(u.path,"")):ve(d)?"/"===i||"\\"===i&&u.isSpecial()||N(u.path,""):("file"===u.scheme&&!u.path.length&&he(d)&&(u.host&&(u.host=""),d=U(d,0)+":"),N(u.path,d)),d="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)V(u.path);"?"===i?(u.query="",l=je):"#"===i&&(u.fragment="",l=Le)}else d+=fe(i,ue);break;case Ae:"?"===i?(u.query="",l=je):"#"===i?(u.fragment="",l=Le):i!==n&&(u.path[0]+=fe(i,ae));break;case je:t||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":fe(i,ae)):(u.fragment="",l=Le);break;case Le:i!==n&&(u.fragment+=fe(i,ce))}f++}},parseHost:function(e){var t,r,n;if("["===U(e,0)){if("]"!==U(e,e.length-1))return G;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,f=0,d=function(){return U(e,f)};if(":"===d()){if(":"!==U(e,1))return;f+=2,l=++u}for(;d();){if(8===u)return;if(":"!==d()){for(t=r=0;r<4&&A(ee,d());)t=16*t+P(d(),16),f++,r++;if("."===d()){if(0===r)return;if(f-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."===d()&&n<4))return;f++}if(!A(K,d()))return;for(;A(K,d());){if(i=P(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==l)return;f++,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}(W(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=g(e),A(te,e))return G;if(t=function(e){var t,r,n,o,i,s,a,c=B(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"===U(o,0)&&(i=A(X,o)?16:8,o=W(o,8===i?1:2)),""===o)s=0;else{if(!A(10===i?$:8===i?q:ee,o))return e;s=P(o,i)}N(r,s)}for(n=0;n<t;n++)if(s=r[n],n===t-1){if(s>=F(256,5-t))return null}else if(s>255)return null;for(a=I(r),n=0;n<r.length;n++)a+=r[n]*F(256,3-n);return a}(e),null===t)return G;this.host=t}else{if(A(re,e))return G;for(t="",r=v(e),n=0;n<r.length;n++)t+=fe(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(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+=se(o),null!==i&&(u+=":"+i)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+j(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new _(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ne(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fe(t[r],le)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fe(t[r],le)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,xe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Fe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===U(e,0)&&(e=W(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===U(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ne=function(e){var t=d(this,De),r=S(arguments.length,1)>1?arguments[1]:void 0,n=O(t,new Ie(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())},De=Ne.prototype,Ve=function(e,t){return{get:function(){return M(this)[e]()},set:t&&function(e){return M(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(De,"href",Ve("serialize","setHref")),f(De,"origin",Ve("getOrigin")),f(De,"protocol",Ve("getProtocol","setProtocol")),f(De,"username",Ve("getUsername","setUsername")),f(De,"password",Ve("getPassword","setPassword")),f(De,"host",Ve("getHost","setHost")),f(De,"hostname",Ve("getHostname","setHostname")),f(De,"port",Ve("getPort","setPort")),f(De,"pathname",Ve("getPathname","setPathname")),f(De,"search",Ve("getSearch","setSearch")),f(De,"searchParams",Ve("getSearchParams")),f(De,"hash",Ve("getHash","setHash"))),l(De,"toJSON",(function(){return M(this).serialize()}),{enumerable:!0}),l(De,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),x){var Be=x.createObjectURL,We=x.revokeObjectURL;Be&&l(Ne,"createObjectURL",c(Be,x)),We&&l(Ne,"revokeObjectURL",c(We,x))}w(Ne,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:Ne})},3296:(e,t,r)=>{"use strict";r(5806)},8162:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(2812),s=r(655),a=r(7416),c=o("URL");n({target:"URL",stat:!0,forced:!a},{parse:function(e){var t=i(arguments.length,1),r=s(e),n=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return new c(r,n)}catch(e){return null}}})},7208:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},6612:(e,t,r)=>{"use strict";var n=r(3609);e.exports=n},8418:(e,t,r)=>{"use strict";var n=r(8473);e.exports=n},2473:(e,t,r)=>{"use strict";var n=r(6398);r(2953),e.exports=n},2841:(e,t,r)=>{"use strict";var n=r(8367);e.exports=n},6811:(e,t,r)=>{"use strict";r(8408),r(4603),r(7566),r(8721);var n=r(9167);e.exports=n.URLSearchParams},8367:(e,t,r)=>{"use strict";r(6811),r(3296),r(2222),r(8162),r(7208);var n=r(9167);e.exports=n.URL}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(8156)})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.WebOfficeJSSDK=t():e.WebOfficeJSSDK=t()}(self,(()=>(()=>{var e={1121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.alphabet=e,this.lookup=this.createLookupTable()}return e.getBytes=function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);t.push(255&n)}return t},e.getString=function(e){return String.fromCharCode.apply(this,e)},e.createInstance=function(){return this.createInstanceWithGmpCharacterSet()},e.createInstanceWithGmpCharacterSet=function(){return new e(e.CharacterSets.GMP)},e.createInstanceWithInvertedCharacterSet=function(){return new e(e.CharacterSets.INVERTED)},e.translate=function(e,t){for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];r.push(t[i])}return r},e.convert=function(e,t,r){for(var n=[],o=e;o.length>0;){for(var i=[],s=0,a=0,c=o;a<c.length;a++){var u=(255&c[a])+s*t,l=(u-u%r)/r;s=u%r,(i.length>0||l>0)&&i.push(l)}n.push(s),o=i}for(var f=0;f<e.length-1&&0===e[f];f++)n.push(0);return n.reverse()},e.prototype.encode=function(t){var r=e.convert(t,e.STANDARD_BASE,e.TARGET_BASE);return e.translate(r,this.alphabet)},e.prototype.decode=function(t){var r=e.translate(t,this.lookup);return e.convert(r,e.TARGET_BASE,e.STANDARD_BASE)},e.prototype.encodeStr=function(t){return e.getString(this.encode(e.getBytes(t)))},e.prototype.decodeStr=function(t){return e.getString(this.decode(e.getBytes(t)))},e.prototype.createLookupTable=function(){for(var e=new Array(256),t=0;t<256;t++)e[this.alphabet[t]]=255&t;return e},e.CharacterSets={GMP:["0".charCodeAt(0),"1".charCodeAt(0),"2".charCodeAt(0),"3".charCodeAt(0),"4".charCodeAt(0),"5".charCodeAt(0),"6".charCodeAt(0),"7".charCodeAt(0),"8".charCodeAt(0),"9".charCodeAt(0),"A".charCodeAt(0),"B".charCodeAt(0),"C".charCodeAt(0),"D".charCodeAt(0),"E".charCodeAt(0),"F".charCodeAt(0),"G".charCodeAt(0),"H".charCodeAt(0),"I".charCodeAt(0),"J".charCodeAt(0),"K".charCodeAt(0),"L".charCodeAt(0),"M".charCodeAt(0),"N".charCodeAt(0),"O".charCodeAt(0),"P".charCodeAt(0),"Q".charCodeAt(0),"R".charCodeAt(0),"S".charCodeAt(0),"T".charCodeAt(0),"U".charCodeAt(0),"V".charCodeAt(0),"W".charCodeAt(0),"X".charCodeAt(0),"Y".charCodeAt(0),"Z".charCodeAt(0),"a".charCodeAt(0),"b".charCodeAt(0),"c".charCodeAt(0),"d".charCodeAt(0),"e".charCodeAt(0),"f".charCodeAt(0),"g".charCodeAt(0),"h".charCodeAt(0),"i".charCodeAt(0),"j".charCodeAt(0),"k".charCodeAt(0),"l".charCodeAt(0),"m".charCodeAt(0),"n".charCodeAt(0),"o".charCodeAt(0),"p".charCodeAt(0),"q".charCodeAt(0),"r".charCodeAt(0),"s".charCodeAt(0),"t".charCodeAt(0),"u".charCodeAt(0),"v".charCodeAt(0),"w".charCodeAt(0),"x".charCodeAt(0),"y".charCodeAt(0),"z".charCodeAt(0)],INVERTED:["0".charCodeAt(0),"1".charCodeAt(0),"2".charCodeAt(0),"3".charCodeAt(0),"4".charCodeAt(0),"5".charCodeAt(0),"6".charCodeAt(0),"7".charCodeAt(0),"8".charCodeAt(0),"9".charCodeAt(0),"a".charCodeAt(0),"b".charCodeAt(0),"c".charCodeAt(0),"d".charCodeAt(0),"e".charCodeAt(0),"f".charCodeAt(0),"g".charCodeAt(0),"h".charCodeAt(0),"i".charCodeAt(0),"j".charCodeAt(0),"k".charCodeAt(0),"l".charCodeAt(0),"m".charCodeAt(0),"n".charCodeAt(0),"o".charCodeAt(0),"p".charCodeAt(0),"q".charCodeAt(0),"r".charCodeAt(0),"s".charCodeAt(0),"t".charCodeAt(0),"u".charCodeAt(0),"v".charCodeAt(0),"w".charCodeAt(0),"x".charCodeAt(0),"y".charCodeAt(0),"z".charCodeAt(0),"A".charCodeAt(0),"B".charCodeAt(0),"C".charCodeAt(0),"D".charCodeAt(0),"E".charCodeAt(0),"F".charCodeAt(0),"G".charCodeAt(0),"H".charCodeAt(0),"I".charCodeAt(0),"J".charCodeAt(0),"K".charCodeAt(0),"L".charCodeAt(0),"M".charCodeAt(0),"N".charCodeAt(0),"O".charCodeAt(0),"P".charCodeAt(0),"Q".charCodeAt(0),"R".charCodeAt(0),"S".charCodeAt(0),"T".charCodeAt(0),"U".charCodeAt(0),"V".charCodeAt(0),"W".charCodeAt(0),"X".charCodeAt(0),"Y".charCodeAt(0),"Z".charCodeAt(0)]},e.STANDARD_BASE=256,e.TARGET_BASE=62,e}();t.default=r},1582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this.timeout=e,this.db=new Map,this.nextGc=null,this.gcDelay=t||5}get size(){return this.db.size}get all(){const e=new Set;return this.db.forEach(((t,r)=>{e.add(r)})),e}add(e){return this.db.set(e,Date.now()+this.timeout),this.scheduleGc(),this}has(e){return this.db.has(e)}delete(e){return this.db.has(e)&&(this.db.delete(e),this.scheduleGc(!0)),this}gc(){const e=Date.now();this.db.forEach(((t,r)=>{t<e&&this.db.delete(r)})),this.nextGc=null,this.scheduleGc()}scheduleGc(e=!1){if(e&&this.nextGc&&(clearTimeout(this.nextGc),this.nextGc=null),null!==this.nextGc||0===this.db.size)return;let t=-1;this.db.forEach((e=>{(-1===t||e<t)&&(t=e)})),-1===t&&(t=Date.now());const r=t-Date.now()+this.gcDelay;this.nextGc=setTimeout(this.gc.bind(this),r)}}t.default=r,e.exports=r,e.exports.default=r},7820:e=>{"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},5323:(e,t,r)=>{"use strict";var n=r(7820);e.exports=function(){return"object"==typeof r.g&&r.g&&r.g.Math===Math&&r.g.Array===Array?r.g:n}},1436:e=>{var t;self,t=()=>(()=>{var e={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},8:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.clearNodeFolder=function(e){e=(0,i.fillOptionsWithDefaults)(e);var t=(0,o.chooseMethod)(e);return"node"===t.type?t.clearNodeFolder().then((function(){return!0})):n.PROMISE_RESOLVED_FALSE},t.enforceOptions=function(e){a=e};var n=r(202),o=r(632),i=r(423),s=new Set;t.OPEN_BROADCAST_CHANNELS=s;var a,c=0,u=function(e,t){var r,u;this.id=c++,s.add(this),this.name=e,a&&(t=a),this.options=(0,i.fillOptionsWithDefaults)(t),this.method=(0,o.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,u=(r=this).method.create(r.name,r.options),(0,n.isPromise)(u)?(r._prepP=u,u.then((function(e){r._state=e}))):r._state=u};function l(e,t,r){var o={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:n.PROMISE_RESOLVED_VOID).then((function(){var t=e.method.postMessage(e._state,o);return e._uMP.add(t),t.catch().then((function(){return e._uMP.delete(t)})),t}))}function f(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function d(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&f(e)){var t=function(t){e._addEL[t.type].forEach((function(e){var r=e.time-1e5;t.time>=r&&e.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function h(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!f(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}t.BroadcastChannel=u,u._pubkey=!0,u.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return l(this,"message",e)},postInternal:function(e){return l(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};h(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,d(this,"message",t)):this._onML=null},addEventListener:function(e,t){d(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){h(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){s.delete(this),this.closed=!0;var t=this._prepP?this._prepP:n.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},437:(e,t,r)=>{"use strict";var n=r(585);e.exports={BroadcastChannel:n.BroadcastChannel,createLeaderElection:n.createLeaderElection,clearNodeFolder:n.clearNodeFolder,enforceOptions:n.enforceOptions,beLeader:n.beLeader}},585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return n.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return n.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"beLeader",{enumerable:!0,get:function(){return o.beLeader}}),Object.defineProperty(t,"clearNodeFolder",{enumerable:!0,get:function(){return n.clearNodeFolder}}),Object.defineProperty(t,"createLeaderElection",{enumerable:!0,get:function(){return o.createLeaderElection}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return n.enforceOptions}});var n=r(991),o=r(550)},550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beLeader=a,t.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e);var r=new i(e,t);return e._befC.push((function(){return r.die()})),e._leaderElector=r,r};var n=r(202),o=r(499),i=function(e,t){var r=this;this.broadcastChannel=e,this._options=t,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,n.randomToken)(),this._aplQ=n.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var o=function(e){"leader"===e.context&&("death"===e.action&&(r.hasLeader=!1),"tell"===e.action&&(r.hasLeader=!0))};this.broadcastChannel.addEventListener("internal",o),this._lstns.push(o)};function s(e,t){var r={context:"leader",action:t,token:e.token};return e.broadcastChannel.postInternal(r)}function a(e){e.isLeader=!0,e.hasLeader=!0;var t=(0,o.add)((function(){return e.die()}));e._unl.push(t);var r=function(t){"leader"===t.context&&"apply"===t.action&&s(e,"tell"),"leader"!==t.context||"tell"!==t.action||e._dpLC||(e._dpLC=!0,e._dpL(),s(e,"tell"))};return e.broadcastChannel.addEventListener("internal",r),e._lstns.push(r),s(e,"tell")}i.prototype={applyOnce:function(e){var t=this;return this.isLeader?(0,n.sleep)(0,!0):this.isDead?(0,n.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then((function(){return function(){if(t.isLeader)return n.PROMISE_RESOLVED_TRUE;var r,o=!1,i=new Promise((function(e){r=function(){o=!0,e()}})),c=[],u=function(e){"leader"===e.context&&e.token!=t.token&&(c.push(e),"apply"===e.action&&e.token>t.token&&r(),"tell"===e.action&&(r(),t.hasLeader=!0))};t.broadcastChannel.addEventListener("internal",u);var l=e?4*t._options.responseTime:t._options.responseTime;return s(t,"apply").then((function(){return Promise.race([(0,n.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).then((function(){return s(t,"apply")})).then((function(){return Promise.race([(0,n.sleep)(l),i.then((function(){return Promise.reject(new Error)}))])})).catch((function(){})).then((function(){return t.broadcastChannel.removeEventListener("internal",u),!o&&a(t).then((function(){return!0}))}))}()})).then((function(){t._aplQC=t._aplQC-1})),this._aplQ.then((function(){return t.isLeader})))},awaitLeadership:function(){return this._aLP||(this._aLP=(e=this).isLeader?n.PROMISE_RESOLVED_VOID:new Promise((function(t){var r=!1;function o(){r||(r=!0,e.broadcastChannel.removeEventListener("internal",i),t(!0))}e.applyOnce().then((function(){e.isLeader&&o()})),function t(){return(0,n.sleep)(e._options.fallbackInterval).then((function(){if(!e.isDead&&!r)return e.isLeader?void o():e.applyOnce(!0).then((function(){e.isLeader?o():t()}))}))}();var i=function(t){"leader"===t.context&&"death"===t.action&&(e.hasLeader=!1,e.applyOnce().then((function(){e.isLeader&&o()})))};e.broadcastChannel.addEventListener("internal",i),e._lstns.push(i)}))),this._aLP;var e},set onduplicate(e){this._dpL=e},die:function(){var e=this;return this._lstns.forEach((function(t){return e.broadcastChannel.removeEventListener("internal",t)})),this._lstns=[],this._unl.forEach((function(e){return e.remove()})),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,s(this,"death")}}},632:(e,t,r)=>{"use strict";var n=r(318);r(8),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=function(e){var t=[].concat(e.methods,u).filter(Boolean);if(e.type){if("simulate"===e.type)return a.default;var r=t.find((function(t){return t.type===e.type}));if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||c.isNode||(t=t.filter((function(e){return"idb"!==e.type})));var n=t.find((function(e){return e.canBeUsed()}));if(n)return n;throw new Error("No useable method found in "+JSON.stringify(u.map((function(e){return e.type}))))};var o=n(r(115)),i=n(r(122)),s=n(r(924)),a=n(r(574)),c=r(202),u=[o.default,i.default,s.default]},122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=C,t.canBeUsed=S,t.cleanOldMessages=p,t.close=g,t.create=v,t.createDatabase=u,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(a).objectStore(a),r=[];return new Promise((function(e){t.openCursor().onsuccess=function(t){var n=t.target.result;n?(r.push(n.value),n.continue()):e(r)}}))},t.getIdb=c,t.getMessagesHigherThan=f,t.getOldMessages=h,t.microSeconds=void 0,t.onMessage=w,t.postMessage=b,t.removeMessageById=d,t.type=void 0,t.writeMessage=l;var n=r(202),o=r(151),i=r(423),s=n.microSeconds;t.microSeconds=s;var a="messages";function c(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function u(e){var t="pubkey.broadcast-channel-0-"+e,r=c().open(t,1);return r.onupgradeneeded=function(e){e.target.result.createObjectStore(a,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(){e(r.result)}}))}function l(e,t,r){var n={uuid:t,time:(new Date).getTime(),data:r},o=e.transaction([a],"readwrite");return new Promise((function(e,t){o.oncomplete=function(){return e()},o.onerror=function(e){return t(e)},o.objectStore(a).add(n)}))}function f(e,t){var r=e.transaction(a).objectStore(a),n=[];return new Promise((function(e){(function(){try{var e=IDBKeyRange.bound(t+1,1/0);return r.openCursor(e)}catch(e){return r.openCursor()}}()).onsuccess=function(r){var o=r.target.result;o?o.value.id<t+1?o.continue(t+1):(n.push(o.value),o.continue()):e(n)}}))}function d(e,t){var r=e.transaction([a],"readwrite").objectStore(a).delete(t);return new Promise((function(e){r.onsuccess=function(){return e()}}))}function h(e,t){var r=(new Date).getTime()-t,n=e.transaction(a).objectStore(a),o=[];return new Promise((function(e){n.openCursor().onsuccess=function(t){var n=t.target.result;if(n){var i=n.value;if(!(i.time<r))return void e(o);o.push(i),n.continue()}else e(o)}}))}function p(e,t){return h(e,t).then((function(t){return Promise.all(t.map((function(t){return d(e,t.id)})))}))}function v(e,t){return t=(0,i.fillOptionsWithDefaults)(t),u(e).then((function(r){var i={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,n.randomToken)(),eMIs:new o.ObliviousSet(2*t.idb.ttl),writeBlockPromise:n.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){i.closed=!0,t.idb.onclose&&t.idb.onclose()},m(i),i}))}function m(e){e.closed||y(e).then((function(){return(0,n.sleep)(e.options.idb.fallbackInterval)})).then((function(){return m(e)}))}function y(e){return e.closed?n.PROMISE_RESOLVED_VOID:e.messagesCallback?f(e.db,e.lastCursorId).then((function(t){var r=t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}(t,e)})).sort((function(e,t){return e.time-t.time}));return r.forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),n.PROMISE_RESOLVED_VOID})):n.PROMISE_RESOLVED_VOID}function g(e){e.closed=!0,e.db.close()}function b(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return l(e.db,e.uuid,t)})).then((function(){0===(0,n.randomInt)(0,10)&&p(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function w(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,y(e)}function S(){return!n.isNode&&!!c()}function C(e){return 2*e.idb.fallbackInterval}t.type="idb";var E={create:v,close:g,onMessage:w,postMessage:b,canBeUsed:S,type:"idb",averageResponseTime:C,microSeconds:s};t.default=E},924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=f,t.averageResponseTime=y,t.canBeUsed=m,t.close=p,t.create=h,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=v,t.postMessage=l,t.removeStorageEventListener=d,t.storageKey=u,t.type=void 0;var n=r(151),o=r(423),i=r(202),s=i.microSeconds;t.microSeconds=s;var a="localstorage";function c(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return"pubkey.broadcastChannel-"+e}function l(e,t){return new Promise((function(r){(0,i.sleep)().then((function(){var n=u(e.channelName),o={token:(0,i.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},s=JSON.stringify(o);c().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()}))}))}function f(e,t){var r=u(e),n=function(e){e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",n),n}function d(e){window.removeEventListener("storage",e)}function h(e,t){if(t=(0,o.fillOptionsWithDefaults)(t),!m())throw new Error("BroadcastChannel: localstorage cannot be used");var r=(0,i.randomToken)(),s=new n.ObliviousSet(t.localstorage.removeTimeout),a={channelName:e,uuid:r,eMIs:s};return a.listener=f(e,(function(e){a.messagesCallback&&e.uuid!==r&&e.token&&!s.has(e.token)&&(e.data.time&&e.data.time<a.messagesCallbackTime||(s.add(e.token),a.messagesCallback(e.data)))})),a}function p(e){d(e.listener)}function v(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function m(){if(i.isNode)return!1;var e=c();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function y(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=a;var g={create:h,close:p,onMessage:v,postMessage:l,canBeUsed:m,type:a,averageResponseTime:y,microSeconds:s};t.default=g},115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=f,t.canBeUsed=l,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0;var n=r(202),o=n.microSeconds;t.microSeconds=o;var i="native";function s(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function a(e){e.bc.close(),e.subFns=[]}function c(e,t){try{return e.bc.postMessage(t,!1),n.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function u(e,t){e.messagesCallback=t}function l(){if(n.isNode&&"undefined"==typeof window)return!1;if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1}function f(){return 150}t.type=i;var d={create:s,close:a,onMessage:u,postMessage:c,canBeUsed:l,type:i,averageResponseTime:f,microSeconds:o};t.default=d},574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=f,t.canBeUsed=l,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=u,t.postMessage=c,t.type=void 0;var n=r(202).microSeconds;t.microSeconds=n;var o="simulate";t.type=o;var i=new Set;function s(e){var t={name:e,messagesCallback:null};return i.add(t),t}function a(e){i.delete(e)}function c(e,t){return new Promise((function(r){return setTimeout((function(){Array.from(i).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),r()}),5)}))}function u(e,t){e.messagesCallback=t}function l(){return!0}function f(){return 5}var d={create:s,close:a,onMessage:u,postMessage:c,canBeUsed:l,type:o,averageResponseTime:f,microSeconds:n};t.default=d},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}},202:(e,t,r)=>{"use strict";var n=r(155);Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.isPromise=function(e){return!(!e||"function"!=typeof e.then)},t.microSeconds=function(){var e=(new Date).getTime();return e===a?1e3*e+ ++c:(a=e,c=0,1e3*e)},t.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},t.randomToken=function(){return Math.random().toString(36).substring(2)},t.sleep=function(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))};var o=Promise.resolve(!1);t.PROMISE_RESOLVED_FALSE=o;var i=Promise.resolve(!0);t.PROMISE_RESOLVED_TRUE=i;var s=Promise.resolve();t.PROMISE_RESOLVED_VOID=s;var a=0,c=0,u="[object process]"===Object.prototype.toString.call(void 0!==n?n:0);t.isNode=u},227:(e,t,r)=>{var n=r(155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,s=null;function a(...e){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=t.formatters[o];if("function"==typeof i){const t=e[s];r=i.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},643:e=>{e.exports=!1},824:e=>{var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=o?i(a,c,o,"day"):c>=n?i(a,c,n,"hour"):c>=r?i(a,c,r,"minute"):c>=t?i(a,c,t,"second"):a+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObliviousSet:()=>n,now:()=>i,removeTooOldValues:()=>o});var n=function(){function e(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return e.prototype.has=function(e){return this.set.has(e)},e.prototype.add=function(e){var t=this;this.timeMap.set(e,i()),this.set.add(e),setTimeout((function(){o(t)}),0)},e.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},e}();function o(e){for(var t=i()-e.ttl,r=e.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;if(!(e.timeMap.get(n)<t))return;e.timeMap.delete(n),e.set.delete(n)}}function i(){return(new Date).getTime()}},155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],u=!1,l=-1;function f(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},279:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},797:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.assert=t.AssertError=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Error);t.AssertError=o,t.assert=function(e,t,r){if(t(e))return e;throw new o(r)}},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOURCE_NAMESPACE=void 0,t.SOURCE_NAMESPACE="OfficeSDKBroadcastChannel"},758:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InvokeError=t.MessageTimeoutError=t.MessageError=void 0;var o=function(e){function t(t){var r=e.call(this,t)||this;return r.name="MessageError",Object.setPrototypeOf(r,i.prototype),r}return n(t,e),t}(Error);t.MessageError=o;var i=function(e){function t(r){var n=e.call(this,r)||this;return n.name="MessageTimeoutError",Object.setPrototypeOf(n,t.prototype),n}return n(t,e),t}(Error);t.MessageTimeoutError=i;var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name="InvokeError",Object.setPrototypeOf(r,i.prototype),r}return n(t,e),t}(Error);t.InvokeError=s},607:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfficeSDKMessageEvent=t.isOfficeSDKMessageEventLike=t.OfficeSDKBroadcastChannel=void 0;var s=i(r(623));t.OfficeSDKBroadcastChannel=s.default;var a=r(928);Object.defineProperty(t,"isOfficeSDKMessageEventLike",{enumerable:!0,get:function(){return a.isOfficeSDKMessageEventLike}}),Object.defineProperty(t,"OfficeSDKMessageEvent",{enumerable:!0,get:function(){return a.OfficeSDKMessageEvent}}),o(r(928),t),o(r(623),t),o(r(758),t),o(r(86),t),o(r(601),t)},928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfficeSDKMessageEventLike=t.OfficeSDKMessageEvent=void 0;var n=r(131),o=r(797),i=r(601),s=function(e){var t=e.data,r=e.context,s=e.time,a=e.origin,c=e.emitter,u=e.channelId,l=Object.assign({},r,{channelId:u});"string"==typeof l.messageId&&""!==l.messageId.trim()||(l.messageId=(0,n.uuid)()),Object.defineProperties(this,{data:{enumerable:!0,value:t},context:{enumerable:!0,value:l},time:{enumerable:!0,value:null!=s?s:Date.now()},id:{enumerable:!0,get:function(){return l.messageId}},source:{enumerable:!0,value:i.SOURCE_NAMESPACE},origin:{enumerable:!0,value:a},emitter:{enumerable:!0,value:c},channelId:{enumerable:!0,get:function(){return l.channelId}}}),(0,o.assert)(this.context.channelId,(function(e){return"string"==typeof e&&e.length>0}),"channel id must be a non-empty string"),(0,o.assert)(this.id,(function(e){return"string"==typeof e&&e.length>0}),"id must be a non-empty string"),(0,o.assert)(this.time,(function(e){return"number"==typeof e&&e>=0}),"time must be a positive number")};t.OfficeSDKMessageEvent=s,t.isOfficeSDKMessageEventLike=function(e){if(e instanceof s)return!0;if("object"==typeof e&&null!=e){var t=e;return t.source===i.SOURCE_NAMESPACE&&"string"==typeof t.channelId&&t.channelId.length>0&&null!=t.context}return!1}},623:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextType=t.DEBUG_NAMESPACE=t.INVOKE_DEFAUTL_TIMEOUT=void 0;var a=r(437),c=r(279),u=r(797),l=r(758),f=r(928),d=r(86),h=s(r(227)),p=s(r(675)),v=r(131);t.INVOKE_DEFAUTL_TIMEOUT=6e4,t.DEBUG_NAMESPACE="SM_CHAN";var m,y=function(){function e(e){var r,i=this;this.invokeHandlers=new Map,this.eventHandlers=new Map,this.emitterId=(0,v.uuid)(),this._debugNamespace=t.DEBUG_NAMESPACE,this.debug=!0===e.debug,this.debugNamespace=null!==(r=e.debugNamespace)&&void 0!==r?r:t.DEBUG_NAMESPACE,this.autoStructuredClone=!0===e.autoStructuredClone,Object.defineProperty(this,"id",{enumerable:!0,value:"string"==typeof e.channelId?(0,u.assert)(e.channelId.trim(),(function(e){return e.length>0}),"channelId must be a non-empty string"):(0,v.uuid)()}),this.emitter=new c.TinyEmitter;var s=new a.BroadcastChannel(this.id,e.broadcastChannelOptions);s.addEventListener("message",(function(e){n(i,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:try{t=this.initMessageEvent(e)}catch(t){return(r=new l.MessageError(null!==(n=null==t?void 0:t.message)&&void 0!==n?n:"message cannot be handled")).originMessage=e.data,this.emit("messageError",r),[2]}return[4,this.distributeMessage(t)];case 1:return o.sent(),[2]}}))})).catch((function(e){return n(i,void 0,void 0,(function(){return o(this,(function(t){return this.emit("error",e),[2]}))}))}))})),this.channel=s}return e.prototype.initMessageEvent=function(e){var t=Object.assign({emitter:this.emitterId},e,{channelId:this.id});return"string"!=typeof t.origin&&(t.origin=location.origin),new f.OfficeSDKMessageEvent(t)},e.prototype.structuredClone=function(e){return this.autoStructuredClone?(0,d.structuredClone)(e,{replacer:function(){}}):e},e.prototype.addEventListener=function(e,t,r){var n=this.eventHandlers.get(e);Array.isArray(n)||(n=[]),n.push([t,r]),this.eventHandlers.set(e,n)},e.prototype.on=function(e,t,r){var n=this;return this.addEventListener(e,t,r),function(){n.off(e,t,r)}},e.prototype.once=function(e,t,r){var n=this,o=function(r,o){n.off(e,t,o),t(r,o)};return o.handler=t,this.addEventListener(e,o,r),function(){n.off(e,t,r)}},e.prototype.off=function(e,t,r){if(1===arguments.length)this.eventHandlers.delete(e);else{var n=this.eventHandlers.get(e);Array.isArray(n)&&("*"===(null==r?void 0:r.audience)?this.eventHandlers.delete(e):this.eventHandlers.set(e,n.filter((function(e){var n=e[0],o=e[1];return n!==t&&n.handler!==t||(null==o?void 0:o.audience)===(null==r?void 0:r.audience)}))))}},e.prototype.emit=function(e,t,r){var n=this.eventHandlers.get(e);if(this.log("emit event",{name:e,data:t,context:r,handlers:n}),Array.isArray(n))for(var o=0,i=n;o<i.length;o++){var s=i[o],a=s[0];g(s[1],r)&&a(t,r)}},e.prototype.postMessage=function(e,t){return n(this,void 0,void 0,(function(){var r,n,i,s;return o(this,(function(o){switch(o.label){case 0:try{n=this.structuredClone(e),r=(0,f.isOfficeSDKMessageEventLike)(n)?this.initMessageEvent(n):this.initMessageEvent({data:n,context:null!=t?this.mergeContexts([t]):t})}catch(t){throw this.log("message invalid",e,t),(s=new l.MessageError(null==t?void 0:t.message)).originMessage=n,s}o.label=1;case 1:return o.trys.push([1,3,,4]),this.log("pre postMessage",{message:n,origin:e,context:t,structuredCloned:this.autoStructuredClone}),[4,this.channel.postMessage(r)];case 2:return o.sent(),this.emit("postMessage",r,r.context),this.log("postMessage success",r),[3,4];case 3:throw i=o.sent(),this.log("post message error",i),(s=new l.MessageError(null==i?void 0:i.message)).originMessage=e,s;case 4:return[2]}}))}))},e.prototype.distributeMessage=function(e){var t,r,i;return n(this,void 0,void 0,(function(){var n,s;return o(this,(function(o){switch(o.label){case 0:return(null===(t=(n=e).context)||void 0===t?void 0:t.channelId)!==this.id||n.emitter===this.emitterId?(this.log("discard message",n),[2]):"function"!=typeof this.onMessageArrive?[3,2]:[4,this.onMessageArrive(n)];case 1:if(!((s=o.sent())instanceof f.OfficeSDKMessageEvent))return this.log("skip distributing message by `onMessageArrive`",{message:s,origin:e}),[2];n=s,o.label=2;case 2:return this.log("distribute message",{message:n,origin:e}),(null===(r=n.context)||void 0===r?void 0:r.type)!==m.InvokeRequest?[3,4]:[4,this.handleInvokeRequest(n)];case 3:return o.sent(),[2];case 4:return(null===(i=n.context)||void 0===i?void 0:i.type)===m.InvokeResponse?(this.handleInvokeResponse(n),[2]):(this.emit("message",n,n.context),[2])}}))}))},e.prototype.handleInvokeRequest=function(e){return n(this,void 0,void 0,(function(){var t,r,n,i,s,a,c,u,l,f,d;return o(this,(function(o){switch(o.label){case 0:if(!(0,p.default)(e.data))throw this.log("invalid invoke request",e),new Error("InvokeRequest data must be an object");if(t=e.data,r=t.name,n=t.args,i=this.invokeHandlers.get(r),this.log("handle invoke request",{message:e,handlers:i}),s=e.context,!Array.isArray(i)||0===i.length)return this.log("no invoke handlers",r),[2];a=0,c=i,o.label=1;case 1:if(!(a<c.length))return[3,8];if(!g((u=c[a]).context,s))return[3,7];l={data:void 0},o.label=2;case 2:return o.trys.push([2,4,,5]),f=l,[4,u.handler.apply(u,n)];case 3:return f.data=o.sent(),[3,5];case 4:return d=o.sent(),l.error=d,[3,5];case 5:return[4,this.postMessage(l,Object.assign({},s,{type:m.InvokeResponse}))];case 6:return o.sent(),[2];case 7:return a++,[3,1];case 8:return this.log("no invoke handler found",r),[2]}}))}))},e.prototype.handleInvokeResponse=function(e){if(this.log("handle invoke response",e),"string"!=typeof e.id)throw new l.InvokeError("Invoke response context id is invalid");this.emitter.emit(e.id,e.data)},e.prototype.mergeContexts=function(e){return Object.assign.apply(Object,i([{channelId:this.id}],e,!1))},e.prototype.invoke=function(e,r,i){return n(this,void 0,void 0,(function(){var n,s,a,c,u,f=this;return o(this,(function(o){switch(o.label){case 0:return n={name:e,args:r},s="number"==typeof(null==i?void 0:i.timeout)&&(null==i?void 0:i.timeout)>0?null==i?void 0:i.timeout:t.INVOKE_DEFAUTL_TIMEOUT,a=(0,v.uuid)(),c=new Promise((function(t,n){f.emitter.once(a,(function(o){if(o.error instanceof l.InvokeError)n(o.error);else if(null!=o.error){var i=new l.InvokeError("string"==typeof o.error?o.error:o.error.message);i.method=e,i.arguments=r,n(i)}else t(o.data)})),setTimeout((function(){f.emitter.off(a),n(new l.MessageTimeoutError("".concat(e," invoke timeout")))}),s)})),[4,this.postMessage(n,Object.assign({},i,{messageId:a,timeout:s,type:m.InvokeRequest}))];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,c];case 3:return[2,o.sent()];case 4:throw u=o.sent(),this.log("invoke error",{id:a,name:e,args:r,payload:n,error:u}),u;case 5:return[2]}}))}))},e.prototype.addInvokeHandler=function(e,t,r){var n=this.invokeHandlers.get(e);Array.isArray(n)||(n=[]),n.push({handler:t,context:r}),this.invokeHandlers.set(e,n)},e.prototype.removeInvokeHandler=function(e,t,r){var n=this.invokeHandlers.get(e);Array.isArray(n)&&this.invokeHandlers.set(e,n.filter((function(e){var n;return e.handler!==t||(null===(n=e.context)||void 0===n?void 0:n.audience)!==(null==r?void 0:r.audience)})))},Object.defineProperty(e.prototype,"debug",{get:function(){return h.default.enabled(this._debugNamespace)},set:function(e){h.default.enable(e?this._debugNamespace:"-".concat(this._debugNamespace))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"debugNamespace",{get:function(){return this._debugNamespace},set:function(e){var t=this.debug;h.default.enable("-".concat(this._debugNamespace)),this.log=(0,h.default)(e),this._debugNamespace=e,t&&h.default.enable(e)},enumerable:!1,configurable:!0}),e}();function g(e,t){var r=null==e?void 0:e.audience,n=null==t?void 0:t.audience;return r===n||"*"===r||"*"===n}t.default=y,function(e){e[e.InvokeRequest=0]="InvokeRequest",e[e.InvokeResponse=1]="InvokeResponse"}(m=t.ContextType||(t.ContextType={}))},86:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.structuredClone=void 0;var o=n(r(675)),i=r(928);function s(e,t){try{return e instanceof t}catch(e){return!1}}t.structuredClone=function e(t,r){if(void 0===r&&(r={}),"string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t||t instanceof Date||t instanceof RegExp||t instanceof Boolean||t instanceof String||t instanceof i.OfficeSDKMessageEvent)return t;try{for(var n=0,a=[window.ArrayBuffer,window.Map,window.Set,window.DataView,window.File,window.FileList,window.Blob,window.ImageBitmap,window.ImageData];n<a.length;n++)if(s(t,a[n]))return t}catch(e){}if((0,o.default)(t)){var c=t,u={};for(var l in c)!0===Object.prototype.hasOwnProperty.call(c,l)&&(u[l]=e(c[l],r));return u}if(Array.isArray(t))return t.map((function(t){return e(t,r)}));if(t instanceof Error)return t.message;try{if(t instanceof Object.getPrototypeOf(Uint8Array))return t}catch(e){}if("function"==typeof r.replacer){var f=Object.assign({},r);return f.replacer=void 0,e(r.replacer(t),f)}throw new Error("".concat(String(t)," could not be cloned"))}},131:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuid=void 0,t.uuid=function(){for(var e,t=[],r=(null!==(e=window.crypto)&&void 0!==e?e:window.msCrypto).getRandomValues(new Uint8Array(20)),n=0;n<r.length;n++)t.push(r[n].toString(16).padStart(2,"0"));for(var o=0,i=[4,7,10,13];o<i.length;o++)t[i[o]]="-";return t.join("")}},499:(e,t,r)=>{"use strict";r.r(t),r.d(t,{add:()=>f,getSize:()=>p,removeAll:()=>h,runAll:()=>d});var n=r(643),o=r.n(n);const i={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function(){e()}),!0)}}};var s=r(199),a=r.n(s),c=o()?a():i,u=new Set,l=!1;function f(e){if(l||(l=!0,c.add(d)),"function"!=typeof e)throw new Error("Listener is no function");return u.add(e),{remove:function(){return u.delete(e)},run:function(){return u.delete(e),e()}}}function d(){var e=[];return u.forEach((function(t){e.push(t()),u.delete(t)})),Promise.all(e)}function h(){u.clear()}function p(){return u.size}},199:()=>{},675:(e,t,r)=>{"use strict";function n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}r.r(t),r.d(t,{default:()=>n})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(607)})(),e.exports=t()},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],u=!1,l=-1;function f(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},6532:(e,t,r)=>{"use strict";var n,o=r(5606);(n=void 0!==o&&"[object process]"==={}.toString.call(o)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(n.Proxy=r(7780)(),n.Proxy.revocable=n.Proxy.revocable)},7780:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function n(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const o=Object,i=Boolean(o.create)||!({__proto__:null}instanceof o),s=o.create||(i?function(e){return n(e),{__proto__:e}}:function(e){if(n(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),a=function(){return null},c=o.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:a);return e=function(u,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(u)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){u=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const h=c(u);let p,v=!1,m=!1;"function"==typeof u?(p=function(){const e=this&&this.constructor===p,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,u,t):!e&&l.apply?l.apply(u,this,t):e?(t.unshift(u),new(u.bind.apply(u,t))):u.apply(this,t)},v=!0):u instanceof Array?(p=[],m=!0):p=i||null!==h?s(h):{};const y=l.get?function(e){return f("get"),l.get(this,e,p)}:function(e){return f("get"),this[e]},g=l.set?function(e,t){f("set"),l.set(this,e,t,p)}:function(e,t){f("set"),this[e]=t},b=o.getOwnPropertyNames(u),w={};b.forEach((function(e){if((v||m)&&e in p)return;const t=o.getOwnPropertyDescriptor(u,e),r={enumerable:Boolean(t.enumerable),get:y.bind(u,e),set:g.bind(u,e)};o.defineProperty(p,e,r),w[e]=!0}));let S=!0;if(v||m){const e=o.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return n(t),e.__proto__=t,e}:a);h&&e(p,h)||(S=!1)}if(l.get||!S)for(let e in u)w[e]||o.defineProperty(p,e,{get:y.bind(u,e)});return o.seal(u),o.seal(p),p},e.revocable=function(r,n){return{proxy:new e(r,n),revoke:t}},e}},1504:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var i=0,s=n.length;i<s;i++)n[i].fn!==t&&n[i].fn._!==t&&o.push(n[i]);return o.length?r[e]=o:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},4780:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},c=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Event=t.OfficeSDK=t.MessageEvent=void 0,r(5781),r(2701),r(2288),r(7782),r(6532);var l=r(1436),f=r(4339),d=r(611),h=r(1504),p=u(r(5323)),v=r(4057),m=u(r(1582)),y=r(9368),g=r(2748),b=(0,p.default)(),w="smjssdk",S="smParams",C=["zh-CN","en","ja","ar-SA","ru-RU"];t.MessageEvent=v.InvokeMethod;var E,O=function(e){function t(t){var r,n,o,i=this;(i=e.call(this)||this)._fileType=v.FileType.Unknown,i.messageHandler=function(){},i.emitter=new h.TinyEmitter,i._readyState=v.ReadyState.Loading,i.collaborators=[],i.connectOptions=t,i.uuid=(0,d.v4)(),i.userUuid=t.userUuid,(0,y.assert)(t.container,(function(e){return e instanceof HTMLElement}),'container is not an HTMLElement: "'.concat(String(t.container),'"')),(0,y.assert)(t.container,(function(e){return!["iframe","frame","embed","object"].includes(e.tagName.toLowerCase())}),'invalid container element type: "'.concat(t.container.tagName,'",DIV are recommended.'));try{i.endpoint=new URL(t.endpoint)}catch(e){throw new Error('invalid endpoint: "'.concat(t.endpoint,'"'))}i.sameOrigin=i.endpoint.origin===b.location.origin,!1===/\/sdk\/v2\/*/i.test(i.endpoint.pathname)&&console.warn('Generally the endpoint should end with "/sdk/v2", please make sure it is correct: "'.concat(i.endpoint.toString(),'"')),i.apiAdaptor=t.apiAdaptor?t.apiAdaptor.toString():"",i.apiAdaptorContext=t.apiAdaptorContext?JSON.stringify(t.apiAdaptorContext):"";try{i.startParams=new f.StartParams(null!==(o=null!==(r=t.smParams)&&void 0!==r?r:new URLSearchParams(null===(n=b.location)||void 0===n?void 0:n.search).get(S))&&void 0!==o?o:"")}catch(e){i.startParams=new f.StartParams}"boolean"==typeof t.debug&&(i.startParams.debug=i.connectOptions.debug),i.onViewportResize=function(){s(i,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.channel.postMessage({event:v.SDKEvent.ViewportResize,payload:this.getContainerRect()})];case 1:return e.sent(),[2]}}))})).catch((function(e){i.emit("error",new Error("Failed to emit resize event: ".concat(String(e))))}))},i.initChannel();var c=t.messageExpires;return"number"!=typeof c&&(c=3e5),i.messageExpires=(0,y.assert)(c,(function(e){return!isNaN(e)&&e>0}),'"messageExpires" is not an valid number: "'.concat(c,'"')),i.handledMessageCache=new m.default(c),i.sameOrigin||(i.messageHandler=function(e){var t=e.data;(0,l.isOfficeSDKMessageEventLike)(t)&&i.shouldHandleMessage(t)&&(i.handledMessageCache.add(t.id),i.channel.distributeMessage(e.data).catch((function(e){i.emit("error",e)})))}),i}return o(t,e),Object.defineProperty(t.prototype,"fileType",{get:function(){return this._fileType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._readyState},enumerable:!1,configurable:!0}),t.prototype.getEditor=function(){return this.editor},t.prototype.setCredentials=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[e],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.setSignature=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[{signature:e}],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.setToken=function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.SetCredentials,[{token:e}],{audience:w})];case 1:return t.sent(),[2]}}))}))},t.prototype.getPerformanceEntries=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.channel.invoke(v.InvokeMethod.RequestPerformanceEntries,[],{audience:w})];case 1:return[2,e.sent()]}}))}))},t.prototype.disconnect=function(){var e;this.removeLoadingOverlay(),(null===(e=this.element)||void 0===e?void 0:e.parentElement)instanceof HTMLElement&&this.element.parentElement.removeChild(this.element),window.removeEventListener("message",this.messageHandler),window.visualViewport?window.visualViewport.removeEventListener("resize",this.onViewportResize):window.removeEventListener("resize",this.onViewportResize)},t.prototype.init=function(){return s(this,void 0,void 0,(function(){var e,t,r=this;return a(this,(function(n){switch(n.label){case 0:if(this._readyState!==v.ReadyState.Loading)return[2];this._readyState=v.ReadyState.LoadingEditor,this.setupLoadingOverlay(),n.label=1;case 1:return n.trys.push([1,4,,5]),this.sameOrigin||window.addEventListener("message",this.messageHandler),e=this,[4,this.initIframe()];case 2:return e.element=n.sent(),this.connectOptions.container.appendChild(this.element),this.editor=this.initEditor(),[4,new Promise((function(e,t){var n=function(o){return s(r,void 0,void 0,(function(){var r,i,s,c;return a(this,(function(a){return r=o.state,i=o.error,s=o.fileType,this._readyState=r,s&&this._fileType===v.FileType.Unknown&&(this._fileType=s),c=!1,i?(c=!0,t("string"==typeof i?new Error(i):i)):r===v.ReadyState.Ready&&(c=!0,e(void 0)),c&&(this.removeLoadingOverlay(),this.off(E.ReadyState,n)),[2]}))}))};r.on(E.ReadyState,n)}))];case 3:return n.sent(),[3,5];case 4:throw t=n.sent(),this.removeLoadingOverlay(),t;case 5:switch(this.fileType){case v.FileType.Document:this.document=this.editor;break;case v.FileType.DocumentPro:this.documentPro=this.editor;break;case v.FileType.Spreadsheet:this.spreadsheet=this.editor;break;case v.FileType.Presentation:this.presentation=this.editor;break;case v.FileType.Table:this.table=this.editor;break;case v.FileType.Form:this.form=this.editor;break;case v.FileType.Flowchart:this.flowchart=this.editor}return[2]}}))}))},t.prototype.setupLoadingOverlay=function(){var e;if(!this.loadingOverlay&&this.connectOptions.showLoading){var t=this.connectOptions.container;this.ensureLoadingStyle();var r=document.createElement("div");r.setAttribute("data-office-sdk-loading","true"),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.right="0",r.style.bottom="0",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.backgroundColor="rgba(255, 255, 255, 0.75)",r.style.zIndex="9999",r.style.pointerEvents="auto";var n=document.createElement("div");n.style.width="32px",n.style.height="32px",n.style.backgroundImage="url(".concat(g.LoadingSvg,")"),n.style.backgroundRepeat="no-repeat",n.style.backgroundPosition="center",n.style.backgroundSize="contain",n.style.animation="office-sdk-loading-spin 0.8s linear infinite",r.appendChild(n);var o,i="function"==typeof b.getComputedStyle&&(null===(e=b.getComputedStyle(t))||void 0===e?void 0:e.position)||t.style.position;i&&"static"!==i||(o=t.style.position,t.style.position="relative"),t.appendChild(r),this.loadingOverlay={overlay:r,container:t,originalPosition:o}}},t.prototype.removeLoadingOverlay=function(){if(this.loadingOverlay){var e=this.loadingOverlay,t=e.overlay,r=e.container,n=e.originalPosition;t.parentElement===r&&r.removeChild(t),void 0!==n&&(r.style.position=n),this.loadingOverlay=void 0}},t.prototype.ensureLoadingStyle=function(){var e,t,r,n,o="office-sdk-loading-style";if(!(null===(e=b.document)||void 0===e?void 0:e.getElementById(o))){var i=null===(t=b.document)||void 0===t?void 0:t.createElement("style");i&&(i.id=o,i.textContent="\n@keyframes office-sdk-loading-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}",null===(n=null===(r=b.document)||void 0===r?void 0:r.head)||void 0===n||n.appendChild(i))}},t.prototype.initIframe=function(){var e;return s(this,void 0,void 0,(function(){var t,r,n,o,i,s;return a(this,(function(a){return t=this.connectOptions,(r=document.createElement("iframe")).style.border="none",r.style.overflow="hidden",r.style.width="100%",r.style.height="100%",r.style.display="block","allow"in r?r.allow=null!==(e=this.connectOptions.allowPolicy)&&void 0!==e?e:"fullscreen *;clipboard-read *;clipboard-write *;":r.allowFullscreen=!0,(n=this.endpoint).pathname="".concat(n.pathname,"/collab-files/").concat((0,y.assert)(t.fileId,M,'"fileId" is missing or empty: '.concat(t.fileId))).replace(/\/+/g,"/"),(o=t.params)&&Object.keys(o).forEach((function(e){n.searchParams.set(e,o[e])})),"string"==typeof t.deviceMode&&n.searchParams.set("deviceMode",t.deviceMode.trim()),n.searchParams.set(S,this.startParams.toString()),t.showLoadingEffect&&n.searchParams.set("loadingEffect","true"),"string"==typeof t.lang&&C.includes(t.lang)&&n.searchParams.set("lang",t.lang),n.searchParams.set("jsver",null!=="2.0.3"?"2.0.3":""),i=(0,y.assert)(t.token,M,'"token" is missing or empty: "'.concat(t.token,'"')),s=(0,y.assert)(t.signature,M,'"signature" is missing or empty: "'.concat(t.signature,'"')),n.searchParams.set("token",i),n.searchParams.set("signature",s),n.searchParams.set("uuid",this.uuid),this.userUuid&&n.searchParams.set("userUuid",this.userUuid),r.src=n.toString(),[2,r]}))}))},t.prototype.initChannel=function(){var e=this,t=this.channel=new l.OfficeSDKBroadcastChannel({channelId:this.startParams.channelId,debug:this.connectOptions.debug,autoStructuredClone:!0,debugNamespace:"SM_SDK_CHAN"});this.startParams.channelId||(this.startParams.channelId=t.id),t.on("error",(function(t){e.emit("error",t)})),t.on("messageError",(function(t){e.emit("error",t)})),this.sameOrigin||t.on("postMessage",(function(t){var r,n;null===(n=null===(r=e.element)||void 0===r?void 0:r.contentWindow)||void 0===n||n.postMessage(t,"*")}),{audience:"*"}),t.on("message",(function(t){var r=t.data;(null==r?void 0:r.event)===v.InvokeMethod.ReadyState&&e.emit(E.ReadyState,r.payload)}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.Error,(function(t){e.emit(E.Error,t)}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.SDKInit,(function(){return s(e,void 0,void 0,(function(){var e,t=this;return a(this,(function(r){return e={},Object.keys(this.connectOptions).forEach((function(r){var n=t.connectOptions[r];e[r]=n,"function"==typeof n&&(e["has".concat(r[0].toUpperCase()).concat(r.slice(1))]=!0)})),e.apiAdaptor=this.apiAdaptor,e.apiAdaptorContext=this.apiAdaptorContext,[2,i(i({},e),{uuid:this.uuid})]}))}))}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.DispatchSDKEvent,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){return this.emit.apply(this,c([t],r,!1)),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.InvokeMethod.DispatchEditorEvent,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){return"collaboratorsChanged"===t&&this.updateCollaborators(r),this.emitter.emit(t,r),[2]}))}))}),{audience:w}),this.bindContainerMethodHandlers(),window.visualViewport?window.visualViewport.addEventListener("resize",this.onViewportResize):window.addEventListener("resize",this.onViewportResize)},t.prototype.bindContainerMethodHandlers=function(){var e=this,t=this.channel;t.addInvokeHandler(v.ContainerMethod.GenerateUrl,(function(t,r,n){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.generateUrl)throw new Error('"'.concat(v.ContainerMethod.GenerateUrl,'" not found'));return[4,Promise.resolve(this.connectOptions.generateUrl(t,r,n))];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.HandleCustomTask,(function(t){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.handleCustomTask)throw new Error('"'.concat(v.ContainerMethod.HandleCustomTask,'" not found'));return[4,Promise.resolve(this.connectOptions.handleCustomTask(t))];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.OpenLink,(function(t,r){return s(e,void 0,void 0,(function(){return a(this,(function(e){if("function"!=typeof this.connectOptions.openLink)throw new Error('"'.concat(v.ContainerMethod.OpenLink,'" not found'));return this.connectOptions.openLink(t,r),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetFileInfoFromUrl,(function(t){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:if("function"!=typeof this.connectOptions.getFileInfoFromUrl)throw new Error('"'.concat(v.ContainerMethod.GetFileInfoFromUrl,'" not a function'));return[4,this.connectOptions.getFileInfoFromUrl(t)];case 1:return[2,e.sent()]}}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.MentionClickHandlerForMobile,(function(t){return s(e,void 0,void 0,(function(){var e;return a(this,(function(r){if("function"!=typeof this.connectOptions.mentionClickHandlerForMobile)throw new Error('"'.concat(v.ContainerMethod.MentionClickHandlerForMobile,'" not found'));return"object"==typeof t&&null!=t&&(e=this.element.getBoundingClientRect(),t.x+=e.x,t.y+=e.y,t.isMention&&(t.mentionInfo.left+=e.x,t.mentionInfo.top+=e.y)),this.connectOptions.mentionClickHandlerForMobile(t),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetContainerRect,(function(){return s(e,void 0,void 0,(function(){return a(this,(function(e){return[2,this.getContainerRect()]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.ShowToast,(function(t){return s(e,void 0,void 0,(function(){var e,r;return a(this,(function(n){return null===(r=(e=this.connectOptions).showToast)||void 0===r||r.call(e,t),[2]}))}))}),{audience:w}),t.addInvokeHandler(v.ContainerMethod.GetCredentials,(function(){return s(e,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:return[4,null===(t=(e=this.connectOptions).getCredentials)||void 0===t?void 0:t.call(e)];case 1:return[2,r.sent()]}}))}))}),{audience:w})},t.prototype.initEditor=function(){var e=this,t=function(e){return"saveStatusDidChange"===e?"saveStatusChanged":e},r={on:function(r,n){return s(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return r=t(r),this.emitter.on(r,n),[4,this.channel.invoke(v.InvokeMethod.ListenEditorEvent,[r],{audience:w})];case 1:return e.sent(),[2]}}))}))},off:function(r,n){r=t(r),e.emitter.off(r,n)},getCollaborators:function(){return c([],e.collaborators,!0)}},n=function(t){return void 0===t&&(t=[]),new Proxy((function(){}),{get:function(e,o){return 0===t.length&&Object.prototype.hasOwnProperty.call(r,o)?r[o]:"string"==typeof o&&["call","apply","bind"].includes(o)?e[o]:"string"==typeof o?n(c(c([],t,!0),[o],!1)):void 0},apply:function(r,n,o){if(t.length>0)return e.channel.invoke(v.InvokeMethod.InvokeEditorMethod,[t.join("."),o],{audience:w})}})};return n()},t.prototype.shouldHandleMessage=function(e){return!(e.channelId!==this.channel.id||e.time+this.messageExpires<Date.now()||this.handledMessageCache.has(e.context.messageId))},t.prototype.getContainerRect=function(){var e,t=this.element.getBoundingClientRect(),r={viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,top:t.top,left:t.left,bottom:t.bottom,right:t.right,scrollTop:null===(e=document.scrollingElement)||void 0===e?void 0:e.scrollTop,visualViewport:{}};return window.visualViewport&&(r.visualViewport={width:window.visualViewport.width,height:window.visualViewport.height,offsetLeft:window.visualViewport.offsetLeft,offsetTop:window.visualViewport.offsetTop,pageLeft:window.visualViewport.pageLeft,pageTop:window.visualViewport.pageTop,scale:window.visualViewport.scale}),r},t.prototype.updateCollaborators=function(e){if(e&&"object"==typeof e&&Array.isArray(e.collaborators)){var t=e;this.collaborators=c([],t.collaborators,!0)}},t}(h.TinyEmitter);function M(e){return"string"==typeof e&&e.trim().length>0}t.OfficeSDK=O,function(e){e.SDKInit="SDKInit",e.Error="error",e.ReadyState="readyState",e.EditorEvent="editorEvent"}(E=t.Event||(t.Event={}))},9368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t,r){if(t(e))return e;throw new Error(r)}},2748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingSvg=void 0,t.LoadingSvg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0idXJsKCNwYXR0ZXJuMF8yNDA3NV8yMjMyNikiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMF8yNDA3NV8yMjMyNiIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPgo8dXNlIHhsaW5rOmhyZWY9IiNpbWFnZTBfMjQwNzVfMjIzMjYiIHRyYW5zZm9ybT0ic2NhbGUoMC4wMTA0MTY3KSIvPgo8L3BhdHRlcm4+CjxpbWFnZSBpZD0iaW1hZ2UwXzI0MDc1XzIyMzI2IiB3aWR0aD0iOTYiIGhlaWdodD0iOTYiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBR0FBQUFCZ0NBWUFBQURpbUhjNEFBQUFBWE5TUjBJQXJzNGM2UUFBQ2R0SlJFRlVlRjd0WFMyWTJ6Z1FWWmtEU3dzTEM1Y1dGaFlXSGoxWWVPd08zckdEaGFVSEZ4WVdMbDFZdUhCcFlNSnkzeWdhN1dnOG94bkpkcktKc3lTT0xjM1Blek1qMlpHOGI4THQ3NndJdkRtcjlwdnljQ1BnekVGd0krQkdRQWgvM3o4ZmRpR0VUUWlCZnY3ejVkMHNBZkxuL2ZPQnk0YnZmODBrZndxSHN6allZNEFHK3B4QWVYWE1SWFFQRGljbkFFRHBNYlExV2srbHA4Y1gydWRrQlBRQ1FvMzFrbkJLWGErZWdEbkFRQ2RQU1FEbzlPcWJRc0tpR1NDQlB3eWJzTi9EVVB2eXg4OXAzejJBY0owOStzQXkycytqdDVlRVJRaEFFS2dURnNqY2FlbTdKeW9sM1pxc0ZwdVdJbUYyQWpnQUVnbTFjM2hOYS9QSDU3ZFZtMEUvbHpGRkgyUXJsV2ZwYjgyRVdRbEE1OEVJYnJqM25OWFBpc1IvZjJ3UFhBWitsMnl3OUVsa3prbkNMQVJRcDZtVE5ZZTFkbFlmeTNtUExSN2RWaHNyRUx5Wk1Cc0JYb1ZUMmxuZ28yd2dZWXFlbHI1ZW16U1prd2c0cGFQZ2dOZlpVOXJsdFdsMkFscWRIR0JjYUFrdG1BcVNQcTJPdHRyWGFOcW9lYXQ5S0tBckE2aHpITmhXb0QzdGU1M2pKQXdEVEE1SzdFYjJlOXF3WUFJWlg0M1oyYXdaQUk1WndGTm5hVnM4bG9DWDJ2V0NUOGNEUzFlOFR4QXlsQk5tK2R4amEzTUdmSU5wWHZJT0RlU2dXb0FYNUtTSXl6S0dFTDUrcXMvMWU4c0YyazUxUVViVTdCMzVodlp5dXhPQnJTUTBFWkFkU0ZZQkVTTm5pR0Z3TVRwSVBtRWd5QVFtbytINlVxQkxaSDM3Q2ZjS3N1MW9IN1c1OEFGdEpyYno2eTNseUUwQWdDOEJxZ0U4eWc1S0dndXJGb043bzE4amdnSStBbDhEV2NzQ2N0NGJVSDRDZm00UG85RGx4Yk1wbDA4YjlUWGlJQ09pYnkyMVZQS1Y0T0VOS2hjQmhZSHhGakVaNnpsV0hQTkd5SndSMzBVQ2dvcSswcUFERWlRTVVodVBqeVlCR3ZneEFMQytLMFJnbXlLeVlNcTIwQ0E3bGF6b0svTWxCM29LSlA0ZGdqR1dXOUlQMjNqOGRCRkFnU3hBNVVxcGtTUkxXZ3lhQ3VJYy9ZRUlIang1NWtiS2xOVUcrdnh1QkZ1VmdHd0lteWYzbEVwUE5Nd0IzbHd5V24zWE1JSHpOUktxQkh5SDZSb2JtMmlHZXE5ZEd2aElZcXYvMmpqZVJRQlZMb0d1amIvY0NDc0Y1NHJZcGVSSUpHaHpFSTRKL2E3aG9HWUFLSjdEcVdzZ0lPSWdQYXRvQUtpSmdBaSs5ZUFEbFZjTXUzVHdhU25LV0J2ei94RlpwTDJFaDVnQnJ1aFhDTm9NSWV6Mjl1amZFRHl2b3FrTEU4UFNOZ0lTd0Fnb3l1YmZSenBUdjJ1Si9wd0ZEOXZqK2xMK0lJdVhwMHFHL1A1eC9KQnhsQUhBZEFHeVJBU1pjMldqaHJTNDlncWpuNWNpaWsvck1RL01FUUgvUFd3UGtXVUNLQ3F4UHNIUWE0dDhtdUhmV1JaazhBbFdGRGZwK0RlV0JlTU1JRXBNQmJDa1BOVjhWTVlWdklvQ1BxTVJHS0JXTUlyWDB4SjhpbEZCQUFnSFd5RURRRURQOFNvSVNFQnErRWo0NGJscUJrUjJxZkRHNDJzSEh4TXBCNnFCRDRLZU41Mmt3RFl6b0RkajEwYkFIRGlKSldnT3diMHlMcUVmWmtDdnJZdGt3RnFpbjVlaEdnbkRKZ1MyRWo4M1I3eHlCaUNyMWhPSTRqNkRLRmdyQWRwOUZ5V0d0L2xDcHFJRkFlb3o3UVIwN1RFSUZkcWJtcGZVRHdLVzQwVnZpcTNmVEJDdlRNRDk0L1lBNllKcGt6L3hKMkFrSVcxanpJOWswL20xWmNBSUwwQ2ZZS1JoaVcxR0plZyszUU1Vei9OWjVLZGJnK052OG9TSXRZRVBXQmQ0OGFDVTFpM1FOcHNRdnR3ZG53c1ZHVkRza3NZTnU0bFo2OXJhU2xBazRYRjdpTGpVTUpKd0RDR01TeEJrQU44bDdSRk0yTHlrR2o3VjFpYndoZDNudmd5SXorU0dzSSszZE93OUF1UTdDcHZxMUtYMWp5VEU1eEhDZXhZa3ZFaGJtUUFMY0txTXRWMGJDUUIrRVp3S2RqeUFoODBROW1FL0hnTitQTzRPUE5Kalp4aHk0K3pvSlJPNDBEWFdmem9HVUd5T1U5RngxZEF3S3dkaDdCejJoUkFrZ2dvcHpoRkdMNjJNOU5vYkF4WnhJbmhoaEdjaWVKdjAvZlBkcHB3RmdVRG94SVY2enEydC9DQnBJZ2tKNElqYmJuK3NIQUpCb3pHQUNwTkFSeUgwR2oxR1Juc2o2dEw2OFlEVmNMSHd5aVVJQlVZZ090YkFySldBM3NCUlM5QlVnYjM5TDYxZkViQ054dE5nbFRPQUNaUjJGM0tkdHd4b1kyR1VBZEQ5NTY5ZDNEdlY4a2ZKV1FzSk5QcEhPeW1GYmE2eHFwUHpZZ1pBb3grL2RuR3JqclNMa1F1UnNtSk5CRmpBMXpEODlPRTRCWVcvNGlkSllMWVZmTHFia0FwdXlhSkxhNHVWUXQxSlNhSmR3bFBOQUJBY3AwMHBDMXFQMTBDQUYzd0FYc05QelFBY0I2WkU1TFdUZ0VIYWl4SEhaN1F5YnFvQ01PeWFTWmlLejQyQTN0Qk5zOFFKM1dOWGt3QXNROWJxaURnclVsNUJjNDBaOEFCVGRJSys5SU84aGdtMmxYQVJOMmpRTkpOQXJwRlRVelkxZXM3Wkh6SFJnczZEazVzQVpIdktzZ3VJbG12SkJBNis5cFlZbWdIU3NwU1BaUDR2M2dmUUNNc2sxTjUrd3Q4Y2tnVEVWUk5EQ0IvZnY5eHduRE42cCtnRzhPT1VNcjNsWlFTc2hBOS95VWNJUVFKL2RDTldFUEIwdkN1dXZoYUNHWmJmcGtLSXVPUXNnQ0JFVERJT0ZQREthelBpUFVBS1JEaG9KZ0FFWkFPczlYZTFBbmpCbWZDUWdqQ1NZTTFLS2hocDRGY3pJQktBQm5nR0E2a0FrcFNxR1RHbFJDelZWd1JmWGJ0SnBvT2NDQ2cvbFZKc3ZxeWpNQVM5OVJCQzJ1Qkd2a3Nob1JwNFBCc01VaXlmL1FTa1p4dDBWeVFmSU9oK3NkRUxrRkpSdEF4YUtxSzljbFh3aFlCU1gvQkUybG9URVpNQU1QenhhUmUzTGtramNrRUlhOFBKUW9KZUl3a1VlR25yTGQveGlGamtsWWRwK3hIZFlYcm5tQVc2Q01EeFFGc2NCOWM5MTJnN09MYWl3eHUxVTlzQitEMzJqOEJQaHNCNUQvam1JRXdkd3l5b3JGQjByMVBsTXM1RmhPWlRMYUFzLy9HNjF5ZDNCdEJTVkRNQzJubVhTdElkbWQ2SW1ScnQyQi9BcjluYTR3ZjYwK0pMRXdGSVFnMEVDcW9YcktMUEVNTGR1Mlh1b0JGMENxNW1ZN01mYWVCdEFiK3BCUEZ5NUFWWGJlZFllOVRxakthTEFqL1pia05BcTgzTkdSQ3o0UG40bUtMNHF3RnFnRzB0ZTJsMUtwY1p5YzZGR09pMXNZdUFvaFF4Y1BrUDFkUmZDMmlPRFczZjZxQVU5WnB0a2wxdVA0YmpVNG9QbldXem13QUE2OWZ6eXpvaURkeWFjeUJEV2pXZzlmRTZDZUJycXp1c2dMRDhrT1MyQmdlMVlSSUJHZ2xTOUxTZW8rUmdYNitqR0JnMWNqMzJlTExBYTVOVytTWVRnQ1RBSjMrUnQ3Uzh4WHRPa3VmSkFBNCtYeDdTWW1PdExkam5zY2NhY21ZaEFKV0E4M2hzclMzU25CdTlqWjJ0VTdLY1Joc3MvWlJnN3pINlp0bGdnVDVyQ2VMS0tBa3RobmpiV3M2Zlc3L1hEMnczYXdaSW1kQnFrTlgrbkFSWXVpM2JwZXVMRU9BaHduRWZKdnBqZ2JCRUJsZzZlNEJmTkFPb1FVOHdWWFZZcUsyendhNXcvYjF6cm8wa1dMOGl4cG1XOU05N3lMa2x3UWY5aTJaQVNjUWg3aXJrVG52VzJXQWJMeGljZEkySXZMMVUrT2NaWGwyTzJLbzJPUmtCYU1YVDloRDNJeGMvbmFZOXlPSXZuZWxhS3lCSVFwYkpkRkJVYUp2M2I5K2NGSk9US2lzeVluczQ0R3RveGRlK2t6ZWlla3NQRHpVZ0czUlk4dUVWa2FjRy9tUmpnQ2RGRWFqOEV0SUVmaS93R2hGTHlmZjRxTFU1V3daTU1mcWErdDRJT0RPYk53SnVCSndaZ1RPci94OGdaQ1haZUNqMmJRQUFBQUJKUlU1RXJrSmdnZz09Ii8+CjwvZGVmcz4KPC9zdmc+Cg=="},5098:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var i=r(4780);t.connect=function(e){return n(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(t=new i.OfficeSDK(e)).init()];case 1:return n.sent(),[2,t];case 2:throw r=n.sent(),console.log("Failed to init OfficeSDK",{error:r,options:e}),r;case 3:return[2]}}))}))}},8156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.START_PARAMS_FIELD=t.Flowchart=t.Form=t.Table=t.Presentation=t.Spreadsheet=t.Document=t.DocumentPro=void 0;var a=i(r(1810));t.DocumentPro=a;var c=i(r(9105));t.Document=c;var u=i(r(8724));t.Spreadsheet=u;var l=i(r(1260));t.Presentation=l;var f=i(r(7642));t.Table=f;var d=i(r(6954));t.Form=d;var h=i(r(4054));t.Flowchart=h,s(r(4057),t),s(r(5098),t),s(r(4780),t),t.START_PARAMS_FIELD="smParams"},9105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},611:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NIL:()=>P,parse:()=>m,stringify:()=>l,v1:()=>v,v3:()=>M,v4:()=>k,v5:()=>_,validate:()=>a,version:()=>T});var o=new Uint8Array(16);function i(){if(!n&&!(n="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 n(o)}const s=/^(?:[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,a=function(e){return"string"==typeof e&&s.test(e)};for(var c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!a(r))throw TypeError("Stringified UUID is invalid");return r};var f,d,h=0,p=0;const v=function(e,t,r){var n=t&&r||0,o=t||new Array(16),s=(e=e||{}).node||f,a=void 0!==e.clockseq?e.clockseq:d;if(null==s||null==a){var c=e.random||(e.rng||i)();null==s&&(s=f=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=d=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,m=u-h+(v-p)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||u>h)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=u,p=v,d=a;var y=(1e4*(268435455&(u+=122192928e5))+v)%4294967296;o[n++]=y>>>24&255,o[n++]=y>>>16&255,o[n++]=y>>>8&255,o[n++]=255&y;var g=u/4294967296*1e4&268435455;o[n++]=g>>>8&255,o[n++]=255&g,o[n++]=g>>>24&15|16,o[n++]=g>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var b=0;b<6;++b)o[n+b]=s[b];return t||l(o)},m=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=m(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),(s=r(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return l(s)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,o,i){return b((s=b(b(t,e),b(n,i)))<<(a=o)|s>>>32-a,r);var s,a}function S(e,t,r,n,o,i,s){return w(t&r|~t&n,e,t,o,i,s)}function C(e,t,r,n,o,i,s){return w(t&n|r&~n,e,t,o,i,s)}function E(e,t,r,n,o,i,s){return w(t^r^n,e,t,o,i,s)}function O(e,t,r,n,o,i,s){return w(r^(t|~n),e,t,o,i,s)}const M=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=r,c=n,u=o,l=i;r=S(r,n,o,i,e[s],7,-680876936),i=S(i,r,n,o,e[s+1],12,-389564586),o=S(o,i,r,n,e[s+2],17,606105819),n=S(n,o,i,r,e[s+3],22,-1044525330),r=S(r,n,o,i,e[s+4],7,-176418897),i=S(i,r,n,o,e[s+5],12,1200080426),o=S(o,i,r,n,e[s+6],17,-1473231341),n=S(n,o,i,r,e[s+7],22,-45705983),r=S(r,n,o,i,e[s+8],7,1770035416),i=S(i,r,n,o,e[s+9],12,-1958414417),o=S(o,i,r,n,e[s+10],17,-42063),n=S(n,o,i,r,e[s+11],22,-1990404162),r=S(r,n,o,i,e[s+12],7,1804603682),i=S(i,r,n,o,e[s+13],12,-40341101),o=S(o,i,r,n,e[s+14],17,-1502002290),r=C(r,n=S(n,o,i,r,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=C(i,r,n,o,e[s+6],9,-1069501632),o=C(o,i,r,n,e[s+11],14,643717713),n=C(n,o,i,r,e[s],20,-373897302),r=C(r,n,o,i,e[s+5],5,-701558691),i=C(i,r,n,o,e[s+10],9,38016083),o=C(o,i,r,n,e[s+15],14,-660478335),n=C(n,o,i,r,e[s+4],20,-405537848),r=C(r,n,o,i,e[s+9],5,568446438),i=C(i,r,n,o,e[s+14],9,-1019803690),o=C(o,i,r,n,e[s+3],14,-187363961),n=C(n,o,i,r,e[s+8],20,1163531501),r=C(r,n,o,i,e[s+13],5,-1444681467),i=C(i,r,n,o,e[s+2],9,-51403784),o=C(o,i,r,n,e[s+7],14,1735328473),r=E(r,n=C(n,o,i,r,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=E(i,r,n,o,e[s+8],11,-2022574463),o=E(o,i,r,n,e[s+11],16,1839030562),n=E(n,o,i,r,e[s+14],23,-35309556),r=E(r,n,o,i,e[s+1],4,-1530992060),i=E(i,r,n,o,e[s+4],11,1272893353),o=E(o,i,r,n,e[s+7],16,-155497632),n=E(n,o,i,r,e[s+10],23,-1094730640),r=E(r,n,o,i,e[s+13],4,681279174),i=E(i,r,n,o,e[s],11,-358537222),o=E(o,i,r,n,e[s+3],16,-722521979),n=E(n,o,i,r,e[s+6],23,76029189),r=E(r,n,o,i,e[s+9],4,-640364487),i=E(i,r,n,o,e[s+12],11,-421815835),o=E(o,i,r,n,e[s+15],16,530742520),r=O(r,n=E(n,o,i,r,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=O(i,r,n,o,e[s+7],10,1126891415),o=O(o,i,r,n,e[s+14],15,-1416354905),n=O(n,o,i,r,e[s+5],21,-57434055),r=O(r,n,o,i,e[s+12],6,1700485571),i=O(i,r,n,o,e[s+3],10,-1894986606),o=O(o,i,r,n,e[s+10],15,-1051523),n=O(n,o,i,r,e[s+1],21,-2054922799),r=O(r,n,o,i,e[s+8],6,1873313359),i=O(i,r,n,o,e[s+15],10,-30611744),o=O(o,i,r,n,e[s+6],15,-1560198380),n=O(n,o,i,r,e[s+13],21,1309151649),r=O(r,n,o,i,e[s+4],6,-145523070),i=O(i,r,n,o,e[s+11],10,-1120210379),o=O(o,i,r,n,e[s+2],15,718787259),n=O(n,o,i,r,e[s+9],21,-343485551),r=b(r,a),n=b(n,c),o=b(o,u),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(g(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),k=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();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 l(n)};function R(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function x(e,t){return e<<t|e>>>32-t}const _=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];a[c]=u}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[f][h];for(var p=16;p<80;++p)d[p]=x(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var v=r[0],m=r[1],y=r[2],g=r[3],b=r[4],w=0;w<80;++w){var S=Math.floor(w/20),C=x(v,5)+R(S,m,y,g)+b+t[S]+d[w]>>>0;b=g,g=y,y=x(m,30)>>>0,m=v,v=C}r[0]=r[0]+v>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),P="00000000-0000-0000-0000-000000000000",T=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},3836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3931:function(e,t){"use strict";var r,n,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.convertFileType=t.FileTypeAlias=t.FileType=void 0,function(e){e.DocumentPro="documentPro",e.Document="document",e.Spreadsheet="spreadsheet",e.Presentation="presentation",e.Table="table",e.Form="form",e.Flowchart="flowchart",e.Mindmap="mindmap",e.Board="board",e.Unknown="unknown"}(n=t.FileType||(t.FileType={})),t.FileTypeAlias=((r={})[n.Document]="docs",r[n.DocumentPro]="docx",r[n.Spreadsheet]="sheets",r[n.Presentation]="presentation",r[n.Table]="table",r[n.Form]="form",r[n.Mindmap]="mindmap",r[n.Board]="board",r[n.Flowchart]="flowchart",r),t.convertFileType=function(e){var r,s,a,c;if("string"==typeof e){try{for(var u=o(Object.entries(n)),l=u.next();!l.done;l=u.next()){var f=i(l.value,2),d=f[0],h=f[1];if(d===e||h===e)return h}}catch(e){r={error:e}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}try{for(var p=o(Object.entries(t.FileTypeAlias)),v=p.next();!v.done;v=p.next()){var m=i(v.value,2);if(d=m[0],(h=m[1])===e)return d}}catch(e){a={error:e}}finally{try{v&&!v.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}}else switch(e){case-2:return n.Document;case-4:return n.Spreadsheet;case-6:return n.DocumentPro;case-7:return n.Mindmap;case-8:return n.Form;case-9:return n.Board;case-10:return n.Presentation;case-11:return n.Table;case-13:return n.Flowchart}return n.Unknown}},5313:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadyState=t.isSDKEventMessage=t.SDKEvent=void 0,t.SDKEvent=Object.freeze({ViewportResize:"ViewportResize",ReadyState:"ReadyState"}),t.isSDKEventMessage=function(e){var r;return null!=e&&(r=e.event),"string"==typeof r&&r in t.SDKEvent},(r=t.ReadyState||(t.ReadyState={})).Loading="loading",r.LoadingEditor="loadingEditor",r.Ready="ready",r.Failed="failed",r.Disconnected="disconnected"},4057:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3672),t),o(r(3836),t),o(r(3931),t),o(r(5313),t)},3672:(e,t)=>{"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.UrlSharingType=t.SpreadsheetSharingFrom=t.ContainerMethod=t.InvokeMethod=void 0,(i=t.InvokeMethod||(t.InvokeMethod={})).SDKInit="SDKInit",i.Error="error",i.ReadyState="readyState",i.SetCredentials="setCredentials",i.InvokeContainerMethod="invokeContainerMethod",i.InvokeEditorMethod="invokeEditorMethod",i.DispatchSDKEvent="dispatchSDKEvent",i.DispatchEditorEvent="dispatchEditorEvent",i.ListenEditorEvent="listenEditorEvent",i.RequestPerformanceEntries="requestPerformanceEntries",(o=t.ContainerMethod||(t.ContainerMethod={})).GetContainerRect="getContainerRect",o.OpenLink="openLink",o.GenerateUrl="generateUrl",o.MentionClickHandlerForMobile="mentionClickHandlerForMobile",o.GetFileInfoFromUrl="getFileInfoFromUrl",o.ShowSignatureComponent="showSignatureComponent",o.ShowToast="showToast",o.HandleCustomTask="handleCustomTask",o.GetCredentials="getCredentials",(n=t.SpreadsheetSharingFrom||(t.SpreadsheetSharingFrom={})).copyRangeLink="copyRangeLink",n.copyViewportLink="copyViewportLink",n.copySheetLink="copySheetLink",n.importRange="importRange",n.preview="preview",(r=t.UrlSharingType||(t.UrlSharingType={})).Doc="doc",r.Docx="docx",r.Spreadsheet="sheet",r.Form="form",r.FormPreview="formPreview",r.FormFill="formFill",r.Presentation="presentation",r.Table="table",r.Flowchart="flowchart",r.Mindmap="mindmap",r.Board="board"},6877:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StartParams=void 0;var o=n(r(4139)),i=n(r(1121)).default.createInstance(),s=function(){function e(t){if("string"==typeof t)return e.parse(t);if((0,o.default)(t))Object.assign(this,t);else if(t instanceof e)Object.assign(this,JSON.parse(JSON.stringify(t)));else if(Array.isArray(t))for(var r=0,n=t;r<n.length;r++){var i=n[r];"string"==typeof i?Object.assign(this,e.parse(i)):null!=i&&Object.assign(this,JSON.parse(JSON.stringify(i)))}null==this.fileGuid&&null!=this.guid&&(this.fileGuid=this.guid),null!=this.guid&&this.fileGuid!==this.guid&&(this.guid=this.fileGuid)}return e.parse=function(t){return new e(JSON.parse(i.decodeStr(t)))},e.prototype.toString=function(){return i.encodeStr(JSON.stringify(this))},e}();t.StartParams=s},4339:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6877),t)},4139:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},6343:(e,t,r)=>{"use strict";var n=r(6612);e.exports=n},1015:(e,t,r)=>{"use strict";var n=r(8418);e.exports=n},780:(e,t,r)=>{"use strict";var n=r(2473);r(7628),r(3799),e.exports=n},5448:(e,t,r)=>{"use strict";var n=r(2841);e.exports=n},3609:(e,t,r)=>{"use strict";r(4423);var n=r(7015);e.exports=n("Array","includes")},8473:(e,t,r)=>{"use strict";r(9085);var n=r(9167);e.exports=n.Object.assign},6398:(e,t,r)=>{"use strict";r(67),r(3792),r(6099),r(3362),r(6167),r(3518),r(1689),r(4628),r(9391),r(7764);var n=r(9167);e.exports=n.Promise},2288:(e,t,r)=>{"use strict";e.exports=r(5914)},7782:(e,t,r)=>{"use strict";e.exports=r(6008)},5781:(e,t,r)=>{"use strict";e.exports=r(911)},2701:(e,t,r)=>{"use strict";e.exports=r(8255)},5914:(e,t,r)=>{"use strict";var n=r(6343);e.exports=n},6008:(e,t,r)=>{"use strict";var n=r(1015);e.exports=n},911:(e,t,r)=>{"use strict";var n=r(780);r(9806),r(5874),r(7575),e.exports=n},8255:(e,t,r)=>{"use strict";var n=r(5448);e.exports=n},9306:(e,t,r)=>{"use strict";var n=r(4901),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},5548:(e,t,r)=>{"use strict";var n=r(3517),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},3506:(e,t,r)=>{"use strict";var n=r(3925),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:(e,t,r)=>{"use strict";var n=r(8227),o=r(2360),i=r(4913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},679:(e,t,r)=>{"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},8551:(e,t,r)=>{"use strict";var n=r(34),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},7916:(e,t,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8981),s=r(6319),a=r(4209),c=r(3517),u=r(6198),l=r(2278),f=r(81),d=r(851),h=Array;e.exports=function(e){var t=i(e),r=c(this),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,p>2?arguments[2]:void 0));var y,g,b,w,S,C,E=d(t),O=0;if(!E||this===h&&a(E))for(y=u(t),g=r?new this(y):h(y);y>O;O++)C=m?v(t[O],O):t[O],l(g,O,C);else for(g=r?new this:[],S=(w=f(t,E)).next;!(b=o(S,w)).done;O++)C=m?s(w,v,[b.value,O],!0):b.value,l(g,O,C);return g.length=O,g}},9617:(e,t,r)=>{"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(e){return function(t,r,s){var a=n(t),c=i(a);if(0===c)return!e&&-1;var u,l=o(s,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},7680:(e,t,r)=>{"use strict";var n=r(9504);e.exports=n([].slice)},4488:(e,t,r)=>{"use strict";var n=r(7680),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var s,a,c=1;c<r;){for(a=c,s=e[c];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==c++&&(e[a]=s)}else for(var u=o(r/2),l=i(n(e,0,u),t),f=i(n(e,u),t),d=l.length,h=f.length,p=0,v=0;p<d||v<h;)e[p+v]=p<d&&v<h?t(l[p],f[v])<=0?l[p++]:f[v++]:p<d?l[p++]:f[v++];return e};e.exports=i},6319:(e,t,r)=>{"use strict";var n=r(8551),o=r(9539);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},4428:(e,t,r)=>{"use strict";var n=r(8227)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},2195:(e,t,r)=>{"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:(e,t,r)=>{"use strict";var n=r(2140),o=r(4901),i=r(2195),s=r(8227)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},7740:(e,t,r)=>{"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);e.exports=function(e,t,r){for(var a=o(t),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},2211:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:(e,t,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2278:(e,t,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},2106:(e,t,r)=>{"use strict";var n=r(283),o=r(4913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},6840:(e,t,r)=>{"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);e.exports=function(e,t,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(n(r)&&i(r,u,a),a.global)c?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},6279:(e,t,r)=>{"use strict";var n=r(6840);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},9433:(e,t,r)=>{"use strict";var n=r(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3724:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(e,t,r)=>{"use strict";var n=r(4576),o=r(34),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7400:e=>{"use strict";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}},9296:(e,t,r)=>{"use strict";var n=r(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7015:(e,t,r)=>{"use strict";var n=r(4576),o=r(9504);e.exports=function(e,t){return o(n[e].prototype[t])}},8727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9544:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},8574:(e,t,r)=>{"use strict";var n=r(4215);e.exports="NODE"===n},7860:(e,t,r)=>{"use strict";var n=r(2839);e.exports=/web0s(?!.*chrome)/i.test(n)},2839:(e,t,r)=>{"use strict";var n=r(4576).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},9519:(e,t,r)=>{"use strict";var n,o,i=r(4576),s=r(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},4215:(e,t,r)=>{"use strict";var n=r(4576),o=r(2839),i=r(2195),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6193:(e,t,r)=>{"use strict";var n=r(9504),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},747:(e,t,r)=>{"use strict";var n=r(6699),o=r(6193),i=r(4659),s=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(s?s(e,t):n(e,"stack",o(r,a)))}},4659:(e,t,r)=>{"use strict";var n=r(9039),o=r(6980);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},6518:(e,t,r)=>{"use strict";var n=r(4576),o=r(7347).f,i=r(6699),s=r(6840),a=r(9433),c=r(7740),u=r(2796);e.exports=function(e,t){var r,l,f,d,h,p=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!u(v?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(r,l,d,e)}}},9039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8745:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6080:(e,t,r)=>{"use strict";var n=r(7476),o=r(9306),i=r(616),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},616:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(e,t,r)=>{"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:(e,t,r)=>{"use strict";var n=r(9504),o=r(9306);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7476:(e,t,r)=>{"use strict";var n=r(2195),o=r(9504);e.exports=function(e){if("Function"===n(e))return o(e)}},9504:(e,t,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},7751:(e,t,r)=>{"use strict";var n=r(4576),o=r(4901);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},851:(e,t,r)=>{"use strict";var n=r(6955),o=r(5966),i=r(4117),s=r(6269),a=r(8227)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},81:(e,t,r)=>{"use strict";var n=r(9565),o=r(9306),i=r(8551),s=r(6823),a=r(851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw new c(s(e)+" is not iterable")}},5966:(e,t,r)=>{"use strict";var n=r(9306),o=r(4117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},4576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(e,t,r)=>{"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:e=>{"use strict";e.exports={}},3138:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},397:(e,t,r)=>{"use strict";var n=r(7751);e.exports=n("document","documentElement")},5917:(e,t,r)=>{"use strict";var n=r(3724),o=r(9039),i=r(4055);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(2195),s=Object,a=n("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):s(e)}:s},3706:(e,t,r)=>{"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},7584:(e,t,r)=>{"use strict";var n=r(34),o=r(6699);e.exports=function(e,t){n(t)&&"cause"in t&&o(e,"cause",t.cause)}},1181:(e,t,r)=>{"use strict";var n,o,i,s=r(8622),a=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),d=r(6119),h=r(421),p="Object already initialized",v=a.TypeError,m=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new v(p);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=d("state");h[g]=!0,n=function(e,t){if(l(e,g))throw new v(p);return t.facade=e,u(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},4209:(e,t,r)=>{"use strict";var n=r(8227),o=r(6269),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},4901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(6955),a=r(7751),c=r(3706),u=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),h=!f.test(u),p=function(e){if(!i(e))return!1;try{return l(u,[],e),!0}catch(e){return!1}},v=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(e))}catch(e){return!0}};v.sham=!0,e.exports=!l||o((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?v:p},2796:(e,t,r)=>{"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(e,t){var r=c[a(e)];return r===l||r!==u&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},4117:e=>{"use strict";e.exports=function(e){return null==e}},34:(e,t,r)=>{"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},3925:(e,t,r)=>{"use strict";var n=r(34);e.exports=function(e){return n(e)||null===e}},6395:e=>{"use strict";e.exports=!1},757:(e,t,r)=>{"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},2652:(e,t,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8551),s=r(6823),a=r(4209),c=r(6198),u=r(1625),l=r(81),f=r(851),d=r(9539),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;e.exports=function(e,t,r){var m,y,g,b,w,S,C,E=r&&r.that,O=!(!r||!r.AS_ENTRIES),M=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),x=n(t,E),_=function(e){return m&&d(m,"normal",e),new p(!0,e)},P=function(e){return O?(i(e),R?x(e[0],e[1],_):x(e[0],e[1])):R?x(e,_):x(e)};if(M)m=e.iterator;else if(k)m=e;else{if(!(y=f(e)))throw new h(s(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((w=P(e[g]))&&u(v,w))return w;return new p(!1)}m=l(e,y)}for(S=M?e.next:m.next;!(C=o(S,m)).done;){try{w=P(C.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&u(v,w))return w}return new p(!1)}},9539:(e,t,r)=>{"use strict";var n=r(9565),o=r(8551),i=r(5966);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},3994:(e,t,r)=>{"use strict";var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),s=r(687),a=r(6269),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}},1088:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(6395),s=r(350),a=r(4901),c=r(3994),u=r(2787),l=r(2967),f=r(687),d=r(6699),h=r(6840),p=r(8227),v=r(6269),m=r(7657),y=s.PROPER,g=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),C="keys",E="values",O="entries",M=function(){return this};e.exports=function(e,t,r,s,p,m,k){c(r,t,s);var R,x,_,P=function(e){if(e===p&&j)return j;if(!w&&e&&e in U)return U[e];switch(e){case C:case E:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",F=!1,U=e.prototype,A=U[S]||U["@@iterator"]||p&&U[p],j=!w&&A||P(p),L="Array"===t&&U.entries||A;if(L&&(R=u(L.call(new e)))!==Object.prototype&&R.next&&(i||u(R)===b||(l?l(R,b):a(R[S])||h(R,S,M)),f(R,T,!0,!0),i&&(v[T]=M)),y&&p===E&&A&&A.name!==E&&(!i&&g?d(U,"name",E):(F=!0,j=function(){return o(A,this)})),p)if(x={values:P(E),keys:m?j:P(C),entries:P(O)},k)for(_ in x)(w||F||!(_ in U))&&h(U,_,x[_]);else n({target:t,proto:!0,forced:w||F},x);return i&&!k||U[S]===j||h(U,S,j,{name:p}),v[t]=j,x}},7657:(e,t,r)=>{"use strict";var n,o,i,s=r(9039),a=r(4901),c=r(34),u=r(2360),l=r(2787),f=r(6840),d=r(8227),h=r(6395),p=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!c(n)||s((function(){var e={};return n[p].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[p])||f(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},6269:e=>{"use strict";e.exports={}},6198:(e,t,r)=>{"use strict";var n=r(8014);e.exports=function(e){return n(e.length)}},283:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),a=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,d=l.get,h=String,p=Object.defineProperty,v=n("".slice),m=n("".replace),y=n([].join),g=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return s(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||u(this)}),"toString")},741:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1955:(e,t,r)=>{"use strict";var n,o,i,s,a,c=r(4576),u=r(3389),l=r(6080),f=r(9225).set,d=r(8265),h=r(9544),p=r(4265),v=r(7860),m=r(8574),y=c.MutationObserver||c.WebKitMutationObserver,g=c.document,b=c.process,w=c.Promise,S=u("queueMicrotask");if(!S){var C=new d,E=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&n(),e}e&&e.enter()};h||m||v||!y||!g?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=l(s.then,s),n=function(){a(E)}):m?n=function(){b.nextTick(E)}:(f=l(f,c),n=function(){f(E)}):(o=!0,i=g.createTextNode(""),new y(E).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),S=function(e){C.head||n(),C.add(e)}}e.exports=S},6043:(e,t,r)=>{"use strict";var n=r(9306),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},2603:(e,t,r)=>{"use strict";var n=r(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4213:(e,t,r)=>{"use strict";var n=r(3724),o=r(9504),i=r(9565),s=r(9039),a=r(1072),c=r(3717),u=r(8773),l=r(8981),f=r(7055),d=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!d||s((function(){if(n&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||a(d({},t)).join("")!==o}))?function(e,t){for(var r=l(e),o=arguments.length,s=1,d=c.f,h=u.f;o>s;)for(var v,m=f(arguments[s++]),y=d?p(a(m),d(m)):a(m),g=y.length,b=0;g>b;)v=y[b++],n&&!i(h,m,v)||(r[v]=m[v]);return r}:d},2360:(e,t,r)=>{"use strict";var n,o=r(8551),i=r(6801),s=r(8727),a=r(421),c=r(397),u=r(4055),l=r(6119),f="prototype",d="script",h=l("IE_PROTO"),p=function(){},v=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var o=s.length;o--;)delete y[f][s[o]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[f]=o(e),r=new p,p[f]=null,r[h]=e):r=y(),void 0===t?r:i.f(r,t)}},6801:(e,t,r)=>{"use strict";var n=r(3724),o=r(8686),i=r(4913),s=r(8551),a=r(5397),c=r(1072);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}},4913:(e,t,r)=>{"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),a=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7347:(e,t,r)=>{"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),a=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=a(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},8480:(e,t,r)=>{"use strict";var n=r(1828),o=r(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},3717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2787:(e,t,r)=>{"use strict";var n=r(9297),o=r(4901),i=r(8981),s=r(6119),a=r(2211),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1625:(e,t,r)=>{"use strict";var n=r(9504);e.exports=n({}.isPrototypeOf)},1828:(e,t,r)=>{"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,a=r(421),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},1072:(e,t,r)=>{"use strict";var n=r(1828),o=r(8727);e.exports=Object.keys||function(e){return n(e,o)}},8773:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2967:(e,t,r)=>{"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),s(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3179:(e,t,r)=>{"use strict";var n=r(2140),o=r(6955);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270:(e,t,r)=>{"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},5031:(e,t,r)=>{"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),a=r(8551),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?c(t,r(e)):t}},9167:(e,t,r)=>{"use strict";var n=r(4576);e.exports=n},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},916:(e,t,r)=>{"use strict";var n=r(4576),o=r(550),i=r(4901),s=r(2796),a=r(3706),c=r(8227),u=r(4215),l=r(6395),f=r(9519),d=o&&o.prototype,h=c("species"),p=!1,v=i(n.PromiseRejectionEvent),m=s("Promise",(function(){var e=a(o),t=e!==String(o);if(!t&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(p=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||v)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:p}},550:(e,t,r)=>{"use strict";var n=r(4576);e.exports=n.Promise},3438:(e,t,r)=>{"use strict";var n=r(8551),o=r(34),i=r(6043);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},537:(e,t,r)=>{"use strict";var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},8265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},7750:(e,t,r)=>{"use strict";var n=r(4117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},3389:(e,t,r)=>{"use strict";var n=r(4576),o=r(3724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},7633:(e,t,r)=>{"use strict";var n=r(7751),o=r(2106),i=r(8227),s=r(3724),a=i("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},687:(e,t,r)=>{"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6119:(e,t,r)=>{"use strict";var n=r(5745),o=r(3392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:(e,t,r)=>{"use strict";var n=r(6395),o=r(4576),i=r(9433),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(e,t,r)=>{"use strict";var n=r(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},2293:(e,t,r)=>{"use strict";var n=r(8551),o=r(5548),i=r(4117),s=r(8227)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||i(r=n(a)[s])?t:o(r)}},8183:(e,t,r)=>{"use strict";var n=r(9504),o=r(1291),i=r(655),s=r(7750),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(s(t)),d=o(r),h=f.length;return d<0||d>=h?e?"":void 0:(n=c(f,d))<55296||n>56319||d+1===h||(l=c(f,d+1))<56320||l>57343?e?a(f,d):n:e?u(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6098:(e,t,r)=>{"use strict";var n=r(9504),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,u=n(s.exec),l=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),h=n([].join),p=n([].push),v=n("".replace),m=n("".split),y=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=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))},w=function(e){var t=[];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)?p(t,((1023&o)<<10)+(1023&i)+65536):(p(t,o),r--)}else p(t,o)}return t}(e);var r,n,i=e.length,s=128,u=0,v=72;for(r=0;r<e.length;r++)(n=e[r])<128&&p(t,f(n));var m=t.length,y=m;for(m&&p(t,"-");y<i;){var w=o;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<w&&(w=n);var S=y+1;if(w-s>l((o-u)/S))throw new c(a);for(u+=(w-s)*S,s=w,r=0;r<e.length;r++){if((n=e[r])<s&&++u>o)throw new c(a);if(n===s){for(var C=u,E=36;;){var O=E<=v?1:E>=v+26?26:E-v;if(C<O)break;var M=C-O,k=36-O;p(t,f(g(O+M%k))),C=l(M/k),E+=36}p(t,f(g(C))),v=b(u,S,y===m),u=0,y++}}u++,s++}return h(t,"")};e.exports=function(e){var t,r,n=[],o=m(v(y(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],p(n,u(i,r)?"xn--"+w(r):r);return h(n,".")}},4495:(e,t,r)=>{"use strict";var n=r(9519),o=r(9039),i=r(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9225:(e,t,r)=>{"use strict";var n,o,i,s,a=r(4576),c=r(8745),u=r(6080),l=r(4901),f=r(9297),d=r(9039),h=r(397),p=r(7680),v=r(4055),m=r(2812),y=r(9544),g=r(8574),b=a.setImmediate,w=a.clearImmediate,S=a.process,C=a.Dispatch,E=a.Function,O=a.MessageChannel,M=a.String,k=0,R={},x="onreadystatechange";d((function(){n=a.location}));var _=function(e){if(f(R,e)){var t=R[e];delete R[e],t()}},P=function(e){return function(){_(e)}},T=function(e){_(e.data)},F=function(e){a.postMessage(M(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){m(arguments.length,1);var t=l(e)?e:E(e),r=p(arguments,1);return R[++k]=function(){c(t,void 0,r)},o(k),k},w=function(e){delete R[e]},g?o=function(e){S.nextTick(P(e))}:C&&C.now?o=function(e){C.now(P(e))}:O&&!y?(s=(i=new O).port2,i.port1.onmessage=T,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(F)?(o=F,a.addEventListener("message",T,!1)):o=x in v("script")?function(e){h.appendChild(v("script"))[x]=function(){h.removeChild(this),_(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:w}},5610:(e,t,r)=>{"use strict";var n=r(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5397:(e,t,r)=>{"use strict";var n=r(7055),o=r(7750);e.exports=function(e){return n(o(e))}},1291:(e,t,r)=>{"use strict";var n=r(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8014:(e,t,r)=>{"use strict";var n=r(1291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},8981:(e,t,r)=>{"use strict";var n=r(7750),o=Object;e.exports=function(e){return o(n(e))}},2777:(e,t,r)=>{"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),a=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},6969:(e,t,r)=>{"use strict";var n=r(2777),o=r(757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2140:(e,t,r)=>{"use strict";var n={};n[r(8227)("toStringTag")]="z",e.exports="[object z]"===String(n)},655:(e,t,r)=>{"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:(e,t,r)=>{"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},7416:(e,t,r)=>{"use strict";var n=r(9039),o=r(8227),i=r(3724),s=r(6395),a=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),s&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(s||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},7040:(e,t,r)=>{"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(e,t,r)=>{"use strict";var n=r(3724),o=r(9039);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},8622:(e,t,r)=>{"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:(e,t,r)=>{"use strict";var n=r(4576),o=r(5745),i=r(9297),s=r(3392),a=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},7145:(e,t,r)=>{"use strict";var n=r(6518),o=r(1625),i=r(2787),s=r(2967),a=r(7740),c=r(2360),u=r(6699),l=r(6980),f=r(7584),d=r(747),h=r(2652),p=r(2603),v=r(8227)("toStringTag"),m=Error,y=[].push,g=function(e,t){var r,n=o(b,this);s?r=s(new m,n?i(this):b):(r=n?this:c(b),u(r,v,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return h(e,y,{that:a}),u(r,"errors",a),r};s?s(g,m):a(g,m,{name:!0});var b=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},67:(e,t,r)=>{"use strict";r(7145)},4423:(e,t,r)=>{"use strict";var n=r(6518),o=r(9617).includes,i=r(9039),s=r(6469);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},3792:(e,t,r)=>{"use strict";var n=r(5397),o=r(6469),i=r(6269),s=r(1181),a=r(4913).f,c=r(1088),u=r(2529),l=r(6395),f=r(3724),d="Array Iterator",h=s.set,p=s.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{a(v,"name",{value:"values"})}catch(e){}},9085:(e,t,r)=>{"use strict";var n=r(6518),o=r(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},6099:(e,t,r)=>{"use strict";var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6167:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{allSettled:function(e){var t=this,r=s.f(t),n=r.resolve,u=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,u=1;c(e,(function(e){var i=a++,c=!1;u++,o(r,t,e).then((function(e){c||(c=!0,s[i]={status:"fulfilled",value:e},--u||n(s))}),(function(e){c||(c=!0,s[i]={status:"rejected",reason:e},--u||n(s))}))})),--u||n(s)}));return l.error&&u(l.value),r.promise}})},6499:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,u=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1;c(e,(function(e){var i=a++,c=!1;l++,o(r,t,e).then((function(e){c||(c=!0,s[i]=e,--l||n(s))}),u)})),--l||n(s)}));return l.error&&u(l.value),r.promise}})},3518:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(7751),a=r(6043),c=r(1103),u=r(2652),l=r(537),f="No one promise resolved";n({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,r=s("AggregateError"),n=a.f(t),l=n.resolve,d=n.reject,h=c((function(){var n=i(t.resolve),s=[],a=0,c=1,h=!1;u(e,(function(e){var i=a++,u=!1;c++,o(n,t,e).then((function(e){u||h||(h=!0,l(e))}),(function(e){u||h||(u=!0,s[i]=e,--c||d(new r(s,f)))}))})),--c||d(new r(s,f))}));return h.error&&d(h.value),n.promise}})},2003:(e,t,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,s=r(550),a=r(7751),c=r(4901),u=r(6840),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(s)){var f=a("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},436:(e,t,r)=>{"use strict";var n,o,i,s=r(6518),a=r(6395),c=r(8574),u=r(4576),l=r(9565),f=r(6840),d=r(2967),h=r(687),p=r(7633),v=r(9306),m=r(4901),y=r(34),g=r(679),b=r(2293),w=r(9225).set,S=r(1955),C=r(3138),E=r(1103),O=r(8265),M=r(1181),k=r(550),R=r(916),x=r(6043),_="Promise",P=R.CONSTRUCTOR,T=R.REJECTION_EVENT,F=R.SUBCLASSING,U=M.getterFor(_),A=M.set,j=k&&k.prototype,L=k,I=j,N=u.TypeError,D=u.document,V=u.process,B=x.f,W=B,Z=!!(D&&D.createEvent&&u.dispatchEvent),H="unhandledrejection",J=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},G=function(e,t){var r,n,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{a?(s||(2===t.rejection&&X(t),t.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===e.promise?u(new N("Promise-chain cycle")):(n=J(r))?l(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},Q=function(e,t){e.notified||(e.notified=!0,S((function(){for(var r,n=e.reactions;r=n.get();)G(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},z=function(e,t,r){var n,o;Z?((n=D.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!T&&(o=u["on"+e])?o(n):e===H&&C("Unhandled promise rejection",r)},Y=function(e){l(w,u,(function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=E((function(){c?V.emit("unhandledRejection",n,r):z(H,r,n)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(w,u,(function(){var t=e.facade;c?V.emit("rejectionHandled",t):z("rejectionhandled",t,e.value)}))},q=function(e,t,r){return function(n){e(t,n,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Q(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var n=J(t);n?S((function(){var r={done:!1};try{l(n,t,q(ee,r,e),q($,r,e))}catch(t){$(r,t,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(t){$({done:!1},t,e)}}};if(P&&(I=(L=function(e){g(this,I),v(e),l(n,this);var t=U(this);try{e(q(ee,t),q($,t))}catch(e){$(t,e)}}).prototype,(n=function(e){A(this,{type:_,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=f(I,"then",(function(e,t){var r=U(this),n=B(b(this,L));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=c?V.domain:void 0,0===r.state?r.reactions.add(n):S((function(){G(n,r)})),n.promise})),o=function(){var e=new n,t=U(e);this.promise=e,this.resolve=q(ee,t),this.reject=q($,t)},x.f=B=function(e){return e===L||void 0===e?new o(e):W(e)},!a&&m(k)&&j!==Object.prototype)){i=j.then,F||f(j,"then",(function(e,t){var r=this;return new L((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(e){}d&&d(j,I)}s({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),h(L,_,!1,!0),p(_)},9391:(e,t,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(550),s=r(9039),a=r(7751),c=r(4901),u=r(2293),l=r(3438),f=r(6840),d=i&&i.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&s((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,a("Promise")),r=c(e);return this.then(r?function(r){return l(t,e()).then((function(){return r}))}:e,r?function(r){return l(t,e()).then((function(){throw r}))}:e)}}),!o&&c(i)){var h=a("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},3362:(e,t,r)=>{"use strict";r(436),r(6499),r(2003),r(7743),r(1481),r(280)},7743:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),a=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(e){var t=this,r=s.f(t),n=r.reject,u=a((function(){var s=i(t.resolve);c(e,(function(e){o(s,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},1481:(e,t,r)=>{"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},280:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(6395),s=r(550),a=r(916).CONSTRUCTOR,c=r(3438),u=o("Promise"),l=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},1689:(e,t,r)=>{"use strict";var n=r(6518),o=r(4576),i=r(8745),s=r(7680),a=r(6043),c=r(9306),u=r(1103),l=o.Promise,f=!1;n({target:"Promise",stat:!0,forced:!l||!l.try||u((function(){l.try((function(e){f=8===e}),8)})).error||!f},{try:function(e){var t=arguments.length>1?s(arguments,1):[],r=a.f(this),n=u((function(){return i(c(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}})},4628:(e,t,r)=>{"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},7337:(e,t,r)=>{"use strict";var n=r(6518),o=r(9504),i=r(5610),s=RangeError,a=String.fromCharCode,c=String.fromCodePoint,u=o([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new s(t+" is not a valid code point");r[o]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},7764:(e,t,r)=>{"use strict";var n=r(8183).charAt,o=r(655),i=r(1181),s=r(1088),a=r(2529),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?a(void 0,!0):(e=n(r,o),t.index+=e.length,a(e,!1))}))},9806:(e,t,r)=>{"use strict";r(67)},5874:(e,t,r)=>{"use strict";r(6167)},7575:(e,t,r)=>{"use strict";r(3518)},7628:(e,t,r)=>{"use strict";r(1689)},3799:(e,t,r)=>{"use strict";r(4628)},2953:(e,t,r)=>{"use strict";var n=r(4576),o=r(7400),i=r(9296),s=r(3792),a=r(6699),c=r(687),u=r(8227)("iterator"),l=s.values,f=function(e,t){if(e){if(e[u]!==l)try{a(e,u,l)}catch(t){e[u]=l}if(c(e,t,!0),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 d in o)f(n[d]&&n[d].prototype,d);f(i,"DOMTokenList")},8406:(e,t,r)=>{"use strict";r(3792),r(7337);var n=r(6518),o=r(4576),i=r(3389),s=r(7751),a=r(9565),c=r(9504),u=r(3724),l=r(7416),f=r(6840),d=r(2106),h=r(6279),p=r(687),v=r(3994),m=r(1181),y=r(679),g=r(4901),b=r(9297),w=r(6080),S=r(6955),C=r(8551),E=r(34),O=r(655),M=r(2360),k=r(6980),R=r(81),x=r(851),_=r(2529),P=r(2812),T=r(8227),F=r(4488),U=T("iterator"),A="URLSearchParams",j=A+"Iterator",L=m.set,I=m.getterFor(A),N=m.getterFor(j),D=i("fetch"),V=i("Request"),B=i("Headers"),W=V&&V.prototype,Z=B&&B.prototype,H=o.TypeError,J=o.encodeURIComponent,G=String.fromCharCode,Q=s("String","fromCodePoint"),z=parseInt,Y=c("".charAt),K=c([].join),X=c([].push),q=c("".replace),$=c([].shift),ee=c([].splice),te=c("".split),re=c("".slice),ne=c(/./.exec),oe=/\+/g,ie=/^[0-9a-f]+$/i,se=function(e,t){var r=re(e,t,t+2);return ne(ie,r)?z(r,16):NaN},ae=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=q(e,oe," ")).length,r="",n=0;n<t;){var o=Y(e,n);if("%"===o){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var i=se(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=ae(i);if(0===s)o=G(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],c=1;c<s&&!(3+ ++n>t||"%"!==Y(e,n));){var u=se(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;X(a,u),n+=2,c++}if(a.length!==s){r+="�";continue}var l=ce(a);null===l?r+="�":o=Q(l)}}r+=o,n++}return r},le=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},de=function(e){return fe[e]},he=function(e){return q(J(e),le,de)},pe=v((function(e,t){L(this,{type:j,target:I(e).entries,index:0,kind:t})}),A,(function(){var e=N(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,_(void 0,!0);var n=t[r];switch(e.kind){case"keys":return _(n.key,!1);case"values":return _(n.value,!1)}return _([n.key,n.value],!1)}),!0),ve=function(e){this.entries=[],this.url=null,void 0!==e&&(E(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:O(e)))};ve.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,c,u=this.entries,l=x(e);if(l)for(r=(t=R(e,l)).next;!(n=a(r,t)).done;){if(i=(o=R(C(n.value))).next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw new H("Expected sequence with length 2");X(u,{key:O(s.value),value:O(c.value)})}else for(var f in e)b(e,f)&&X(u,{key:f,value:O(e[f])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=te(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=te(t,"="),X(n,{key:ue($(r)),value:ue(K(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],X(r,he(e.key)+"="+he(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var me=function(){y(this,ye);var e=L(this,new ve(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ye=me.prototype;if(h(ye,{append:function(e,t){var r=I(this);P(arguments.length,2),X(r.entries,{key:O(e),value:O(t)}),u||this.length++,r.updateURL()},delete:function(e){for(var t=I(this),r=P(arguments.length,1),n=t.entries,o=O(e),i=r<2?void 0:arguments[1],s=void 0===i?i:O(i),a=0;a<n.length;){var c=n[a];if(c.key!==o||void 0!==s&&c.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}u||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;P(arguments.length,1);for(var r=O(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;P(arguments.length,1);for(var r=O(e),n=[],o=0;o<t.length;o++)t[o].key===r&&X(n,t[o].value);return n},has:function(e){for(var t=I(this).entries,r=P(arguments.length,1),n=O(e),o=r<2?void 0:arguments[1],i=void 0===o?o:O(o),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){var r=I(this);P(arguments.length,1);for(var n,o=r.entries,i=!1,s=O(e),a=O(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?ee(o,c--,1):(i=!0,n.value=a));i||X(o,{key:s,value:a}),u||(this.size=o.length),r.updateURL()},sort:function(){var e=I(this);F(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=w(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 pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),f(ye,U,ye.entries,{name:"entries"}),f(ye,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),u&&d(ye,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),p(me,A),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:me}),!l&&g(B)){var ge=c(Z.has),be=c(Z.set),we=function(e){if(E(e)){var t,r=e.body;if(S(r)===A)return t=e.headers?new B(e.headers):new B,ge(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M(e,{body:k(0,O(r)),headers:k(0,t)})}return e};if(g(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?we(arguments[1]):{})}}),g(V)){var Se=function(e){return y(this,W),new V(e,arguments.length>1?we(arguments[1]):{})};W.constructor=Se,Se.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Se})}}e.exports={URLSearchParams:me,getState:I}},4603:(e,t,r)=>{"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.append),l=o(c.delete),f=o(c.forEach),d=o([].push),h=new a("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){d(n,{key:t,value:e})})),s(t,1);for(var o,a=i(e),c=i(r),h=0,p=0,v=!1,m=n.length;h<m;)o=n[h++],v||o.key===a?(v=!0,l(this,o.key)):p++;for(;p<m;)(o=n[p++]).key===a&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7566:(e,t,r)=>{"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.getAll),l=o(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);s(t,1);for(var o=i(r),a=0;a<n.length;)if(n[a++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},8408:(e,t,r)=>{"use strict";r(8406)},8721:(e,t,r)=>{"use strict";var n=r(3724),o=r(9504),i=r(2106),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},2222:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(9039),s=r(2812),a=r(655),c=r(7416),u=o("URL"),l=c&&i((function(){u.canParse()})),f=i((function(){return 1!==u.canParse.length}));n({target:"URL",stat:!0,forced:!l||f},{canParse:function(e){var t=s(arguments.length,1),r=a(e),n=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return!!new u(r,n)}catch(e){return!1}}})},5806:(e,t,r)=>{"use strict";r(7764);var n,o=r(6518),i=r(3724),s=r(7416),a=r(4576),c=r(6080),u=r(9504),l=r(6840),f=r(2106),d=r(679),h=r(9297),p=r(4213),v=r(7916),m=r(7680),y=r(8183).codeAt,g=r(6098),b=r(655),w=r(687),S=r(2812),C=r(8406),E=r(1181),O=E.set,M=E.getterFor("URL"),k=C.URLSearchParams,R=C.getState,x=a.URL,_=a.TypeError,P=a.parseInt,T=Math.floor,F=Math.pow,U=u("".charAt),A=u(/./.exec),j=u([].join),L=u(1..toString),I=u([].pop),N=u([].push),D=u("".replace),V=u([].shift),B=u("".split),W=u("".slice),Z=u("".toLowerCase),H=u([].unshift),J="Invalid scheme",G="Invalid host",Q="Invalid port",z=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,q=/^[0-7]+$/,$=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,se=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)H(t,e%256),e=T(e/256);return j(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?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ce=p({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},ce,{"#":1,"?":1,"{":1,"}":1}),le=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=y(e,0);return r>32&&r<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var r;return 2===e.length&&A(z,U(e,0))&&(":"===(r=U(e,1))||!t&&"|"===r)},pe=function(e){var t;return e.length>1&&he(W(e,0,2))&&(2===e.length||"/"===(t=U(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===Z(e)},me={},ye={},ge={},be={},we={},Se={},Ce={},Ee={},Oe={},Me={},ke={},Re={},xe={},_e={},Pe={},Te={},Fe={},Ue={},Ae={},je={},Le={},Ie=function(e,t,r){var n,o,i,s=b(e);if(t){if(o=this.parse(s))throw new _(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ie(r,!0)),o=this.parse(s,null,n))throw new _(o);(i=R(new k)).bindURL(this),this.searchParams=i}};Ie.prototype={type:"URL",parse:function(e,t,r){var o,i,s,a,c,u=this,l=t||me,f=0,d="",p=!1,y=!1,g=!1;for(e=b(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=D(e,ne,""),e=D(e,oe,"$1")),e=D(e,ie,""),o=v(e);f<=o.length;){switch(i=o[f],l){case me:if(!i||!A(z,i)){if(t)return J;l=ge;continue}d+=Z(i),l=ye;break;case ye:if(i&&(A(Y,i)||"+"===i||"-"===i||"."===i))d+=Z(i);else{if(":"!==i){if(t)return J;d="",l=ge,f=0;continue}if(t&&(u.isSpecial()!==h(de,d)||"file"===d&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&de[u.scheme]===u.port&&(u.port=null));d="","file"===u.scheme?l=_e:u.isSpecial()&&r&&r.scheme===u.scheme?l=be:u.isSpecial()?l=Ee:"/"===o[f+1]?(l=we,f++):(u.cannotBeABaseURL=!0,N(u.path,""),l=Ae)}break;case ge:if(!r||r.cannotBeABaseURL&&"#"!==i)return J;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=m(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=Le;break}l="file"===r.scheme?_e:Se;continue;case be:if("/"!==i||"/"!==o[f+1]){l=Se;continue}l=Oe,f++;break;case we:if("/"===i){l=Me;break}l=Ue;continue;case Se: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=Ce;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=je;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=Ue;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=Le}break;case Ce:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=Ue;continue}l=Me}else l=Oe;break;case Ee:if(l=Oe,"/"!==i||"/"!==U(d,f+1))continue;f++;break;case Oe:if("/"!==i&&"\\"!==i){l=Me;continue}break;case Me:if("@"===i){p&&(d="%40"+d),p=!0,s=v(d);for(var w=0;w<s.length;w++){var S=s[w];if(":"!==S||g){var C=fe(S,le);g?u.password+=C:u.username+=C}else g=!0}d=""}else if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(p&&""===d)return"Invalid authority";f-=v(d).length+1,d="",l=ke}else d+=i;break;case ke:case Re: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 G;if(t&&""===d&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(d))return a;if(d="",l=Fe,t)return;continue}"["===i?y=!0:"]"===i&&(y=!1),d+=i}else{if(""===d)return G;if(a=u.parseHost(d))return a;if(d="",l=xe,t===Re)return}break;case xe:if(!A(K,i)){if(i===n||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==d){var E=P(d,10);if(E>65535)return Q;u.port=u.isSpecial()&&E===de[u.scheme]?null:E,d=""}if(t)return;l=Fe;continue}return Q}d+=i;break;case _e:if(u.scheme="file","/"===i||"\\"===i)l=Pe;else{if(!r||"file"!==r.scheme){l=Ue;continue}switch(i){case n:u.host=r.host,u.path=m(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=m(r.path),u.query="",l=je;break;case"#":u.host=r.host,u.path=m(r.path),u.query=r.query,u.fragment="",l=Le;break;default:pe(j(m(o,f),""))||(u.host=r.host,u.path=m(r.path),u.shortenPath()),l=Ue;continue}}break;case Pe:if("/"===i||"\\"===i){l=Te;break}r&&"file"===r.scheme&&!pe(j(m(o,f),""))&&(he(r.path[0],!0)?N(u.path,r.path[0]):u.host=r.host),l=Ue;continue;case Te:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&he(d))l=Ue;else if(""===d){if(u.host="",t)return;l=Fe}else{if(a=u.parseHost(d))return a;if("localhost"===u.host&&(u.host=""),t)return;d="",l=Fe}continue}d+=i;break;case Fe:if(u.isSpecial()){if(l=Ue,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(l=Ue,"/"!==i))continue}else u.fragment="",l=Le;else u.query="",l=je;break;case Ue:if(i===n||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(c=Z(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||N(u.path,"")):ve(d)?"/"===i||"\\"===i&&u.isSpecial()||N(u.path,""):("file"===u.scheme&&!u.path.length&&he(d)&&(u.host&&(u.host=""),d=U(d,0)+":"),N(u.path,d)),d="","file"===u.scheme&&(i===n||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)V(u.path);"?"===i?(u.query="",l=je):"#"===i&&(u.fragment="",l=Le)}else d+=fe(i,ue);break;case Ae:"?"===i?(u.query="",l=je):"#"===i?(u.fragment="",l=Le):i!==n&&(u.path[0]+=fe(i,ae));break;case je:t||"#"!==i?i!==n&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":fe(i,ae)):(u.fragment="",l=Le);break;case Le:i!==n&&(u.fragment+=fe(i,ce))}f++}},parseHost:function(e){var t,r,n;if("["===U(e,0)){if("]"!==U(e,e.length-1))return G;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,f=0,d=function(){return U(e,f)};if(":"===d()){if(":"!==U(e,1))return;f+=2,l=++u}for(;d();){if(8===u)return;if(":"!==d()){for(t=r=0;r<4&&A(ee,d());)t=16*t+P(d(),16),f++,r++;if("."===d()){if(0===r)return;if(f-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."===d()&&n<4))return;f++}if(!A(K,d()))return;for(;A(K,d());){if(i=P(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!==n||u++}if(4!==n)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==l)return;f++,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}(W(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=g(e),A(te,e))return G;if(t=function(e){var t,r,n,o,i,s,a,c=B(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"===U(o,0)&&(i=A(X,o)?16:8,o=W(o,8===i?1:2)),""===o)s=0;else{if(!A(10===i?$:8===i?q:ee,o))return e;s=P(o,i)}N(r,s)}for(n=0;n<t;n++)if(s=r[n],n===t-1){if(s>=F(256,5-t))return null}else if(s>255)return null;for(a=I(r),n=0;n<r.length;n++)a+=r[n]*F(256,3-n);return a}(e),null===t)return G;this.host=t}else{if(A(re,e))return G;for(t="",r=v(e),n=0;n<r.length;n++)t+=fe(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(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+=se(o),null!==i&&(u+=":"+i)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+j(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new _(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ne(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fe(t[r],le)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fe(t[r],le)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,xe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Fe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===U(e,0)&&(e=W(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===U(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ne=function(e){var t=d(this,De),r=S(arguments.length,1)>1?arguments[1]:void 0,n=O(t,new Ie(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())},De=Ne.prototype,Ve=function(e,t){return{get:function(){return M(this)[e]()},set:t&&function(e){return M(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(De,"href",Ve("serialize","setHref")),f(De,"origin",Ve("getOrigin")),f(De,"protocol",Ve("getProtocol","setProtocol")),f(De,"username",Ve("getUsername","setUsername")),f(De,"password",Ve("getPassword","setPassword")),f(De,"host",Ve("getHost","setHost")),f(De,"hostname",Ve("getHostname","setHostname")),f(De,"port",Ve("getPort","setPort")),f(De,"pathname",Ve("getPathname","setPathname")),f(De,"search",Ve("getSearch","setSearch")),f(De,"searchParams",Ve("getSearchParams")),f(De,"hash",Ve("getHash","setHash"))),l(De,"toJSON",(function(){return M(this).serialize()}),{enumerable:!0}),l(De,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),x){var Be=x.createObjectURL,We=x.revokeObjectURL;Be&&l(Ne,"createObjectURL",c(Be,x)),We&&l(Ne,"revokeObjectURL",c(We,x))}w(Ne,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:Ne})},3296:(e,t,r)=>{"use strict";r(5806)},8162:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(2812),s=r(655),a=r(7416),c=o("URL");n({target:"URL",stat:!0,forced:!a},{parse:function(e){var t=i(arguments.length,1),r=s(e),n=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return new c(r,n)}catch(e){return null}}})},7208:(e,t,r)=>{"use strict";var n=r(6518),o=r(9565);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},6612:(e,t,r)=>{"use strict";var n=r(3609);e.exports=n},8418:(e,t,r)=>{"use strict";var n=r(8473);e.exports=n},2473:(e,t,r)=>{"use strict";var n=r(6398);r(2953),e.exports=n},2841:(e,t,r)=>{"use strict";var n=r(8367);e.exports=n},6811:(e,t,r)=>{"use strict";r(8408),r(4603),r(7566),r(8721);var n=r(9167);e.exports=n.URLSearchParams},8367:(e,t,r)=>{"use strict";r(6811),r(3296),r(2222),r(8162),r(7208);var n=r(9167);e.exports=n.URL}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(8156)})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboffice-js-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "weboffice js sdk",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"proxy-polyfill": "^0.3.2",
|
|
17
17
|
"officesdk-broadcast-channel": "^1.2.0",
|
|
18
18
|
"weboffice-js-sdk-shared": "^2.0.1",
|
|
19
|
-
"weboffice-startparams": "
|
|
19
|
+
"weboffice-startparams": "3.0.2",
|
|
20
20
|
"tiny-emitter": "^2.1.0",
|
|
21
21
|
"uuid": "^8.3.2"
|
|
22
22
|
},
|