@playkit-js/unisphere-service 0.0.20 → 0.0.22

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.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see playkit-unisphere-service.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("KalturaPlayer",[],t):"object"==typeof exports?exports.KalturaPlayer=t():(e.KalturaPlayer=e.KalturaPlayer||{},e.KalturaPlayer.plugins=e.KalturaPlayer.plugins||{},e.KalturaPlayer.plugins["unisphere-service"]=t())}(self,()=>(()=>{var e={51:(e,t,r)=>{var n=r(114),o=r(535),i=r(507),a=r(313),u=r(929),c=r(315),s=r(961);function l(){"use strict";var t=o(),r=t.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function d(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,s(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,o){return t.w(d(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:u,async:function(e,t,r,n,o){return(p(t)?a:i)(d(e),t,r,n,o)},keys:c,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},88:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},114:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},278:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},292:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],u=0;u<e.length;u++){var c=e[u],s=n.base?c[0]+n.base:c[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var p=r(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=o(h,n);n.byIndex=u,t.splice(u,0,{identifier:f,updater:d,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var u=r(i[a]);t[u].references--}for(var c=n(e,o),s=0;s<i.length;s++){var l=r(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},296:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}},313:(e,t,r)=>{var n=r(535),o=r(929);e.exports=function(e,t,r,i,a){return new o(n().w(e,t,r,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},315:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},360:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,a&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var u=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(u,c[t]):e.appendChild(u)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},507:(e,t,r)=>{var n=r(313);e.exports=function(e,t,r,o,i){var a=n(e,t,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},535:(e,t,r)=>{var n=r(736);function o(){var t,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,o,i,a){var u=o&&o.prototype instanceof l?o:l,c=Object.create(u.prototype);return n(c,"_invoke",function(e,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,a=0,u=t,p.n=r,s}};function h(e,n){for(a=e,u=n,r=0;!f&&c&&!o&&r<l.length;r++){var o,i=l[r],h=p.p,d=i[2];e>3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(a=0,p.v=n,p.n=i[1]):h<d&&(o=e<3||i[0]>n||n>d)&&(i[4]=e,i[5]=n,p.n=d,a=0))}if(o||e>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(r=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((r=(f=p.n<0)?u:e.call(n,p))!==s)break}catch(e){i=t,a=1,u=e}finally{c=1}}return{value:r,done:f}}}(e,i,a),!0),c}var s={};function l(){}function f(){}function p(){}r=Object.getPrototypeOf;var h=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),d=p.prototype=l.prototype=Object.create(h);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=p,n(d,"constructor",p),n(p,"constructor",f),f.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,a,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},564: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},736:e=>{function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},790:(e,t,r)=>{var n=r(51)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},877:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,Ck:()=>f,PB:()=>c,Ui:()=>s,nY:()=>u,qA:()=>l});var n=r(942),o=r.n(n),i=r(278),a=r.n(i)()(o());a.push([e.id,".sidepanel-container-producer__sidepanel-container___wwQyy{background:rgba(0,0,0,.6);height:100%;display:flex;flex-direction:column;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.sidepanel-container-producer__sidepanel-container___wwQyy *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.sidepanel-container-producer__sidepanel-container___wwQyy *::selection{background-color:hsla(0,0%,100%,.4);color:inherit}.sidepanel-container-producer__sidepanel-container___wwQyy *::-moz-selection{background-color:hsla(0,0%,100%,.4);color:inherit}.sidepanel-container-producer__sidepanel-header___CuNlB{display:flex;align-items:center;width:100%;padding:16px 16px 0 16px;gap:8px}.sidepanel-container-producer__sidepanel-title___ZLiz7{color:#fff;flex:1;min-width:0;font-size:16px;font-weight:700;line-height:100%;letter-spacing:.01em;margin:0;justify-content:center}.sidepanel-container-producer__sidepanel-buttons-container___YAez9{display:flex;align-items:center;justify-content:center;line-height:100%}.sidepanel-container-producer__sidepanel-button___YPN3t{background:none !important;border:none !important;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;flex-shrink:0;transition:background-color .2s ease;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidepanel-container-producer__sidepanel-button___YPN3t:focus-visible{outline:2px solid hsla(0,0%,100%,.6);outline-offset:2px}.sidepanel-container-producer__sidepanel-content___G0WEt{flex:1;overflow:auto;height:100%}","",{version:3,sources:["webpack://./services/container/producers/sidepanel-container-producer.scss"],names:[],mappings:"AAAA,2DACE,yBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CAGA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAGA,6DACE,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAIF,wEACE,mCAAA,CACA,aAAA,CAGF,6EACE,mCAAA,CACA,aAAA,CAIJ,wDACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,wBAAA,CACA,OAAA,CAGF,uDACE,UAAA,CACA,MAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACA,QAAA,CACA,sBAAA,CAGF,mEACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,gBAAA,CAGF,wDACE,0BAAA,CACA,sBAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,SAAA,CACA,iBAAA,CACA,aAAA,CACA,oCAAA,CACA,UAAA,CACA,WAAA,CAGA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAEA,sEACE,oCAAA,CACA,kBAAA,CAIJ,yDACE,MAAA,CACA,aAAA,CACA,WAAA",sourcesContent:[".sidepanel-container {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n display: flex;\n flex-direction: column;\n\n /* Enable text selection and copy-paste functionality */\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n\n /* Ensure all child elements support text selection */\n * {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n }\n\n /* Style text selection */\n *::selection {\n background-color: rgba(255, 255, 255, 0.4);\n color: inherit;\n }\n\n *::-moz-selection {\n background-color: rgba(255, 255, 255, 0.4);\n color: inherit;\n }\n}\n\n.sidepanel-header {\n display: flex;\n align-items: center;\n width: 100%;\n padding: 16px 16px 0 16px;\n gap: 8px;\n}\n\n.sidepanel-title {\n color: #FFFFFF;\n flex: 1;\n min-width: 0;\n font-size: 16px;\n font-weight: 700;\n line-height: 100%;\n letter-spacing: 0.01em;\n margin: 0;\n justify-content: center;\n}\n\n.sidepanel-buttons-container {\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 100%;\n}\n\n.sidepanel-button {\n background: none !important;\n border: none !important;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-radius: 4px;\n flex-shrink: 0;\n transition: background-color 0.2s ease;\n width: 32px;\n height: 32px;\n\n /* Disable text selection on buttons but allow interaction */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n &:focus-visible {\n outline: 2px solid rgba(255, 255, 255, 0.6);\n outline-offset: 2px;\n }\n}\n\n.sidepanel-content {\n flex: 1;\n overflow: auto;\n height: 100%;\n}\n"],sourceRoot:""}]);var u="sidepanel-container-producer__sidepanel-container___wwQyy",c="sidepanel-container-producer__sidepanel-header___CuNlB",s="sidepanel-container-producer__sidepanel-title___ZLiz7",l="sidepanel-container-producer__sidepanel-buttons-container___YAez9",f="sidepanel-container-producer__sidepanel-button___YPN3t";const p=a},929:(e,t,r)=>{var n=r(114),o=r(736);e.exports=function e(t,r){function i(e,o,a,u){try{var c=t[e](o),s=c.value;return s instanceof n?r.resolve(s.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):r.resolve(s).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){i(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},942:e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},961:(e,t,r)=>{var n=r(564).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}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})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{PlayerEvent:()=>b,UnisphereEvent:()=>m});const e=KalturaPlayer;function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return o="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},o(e)}function i(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function p(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,u,"next",e)}function u(e){h(i,n,o,a,u,"throw",e)}a(void 0)})}}var v=r(790),y=r.n(v);const g=KalturaPlayer.ui.preact;var m=function(e){return e.MEDIA_SEEK_TO_TIME="kaltura-player.events.media.seek-to-time",e}({}),b=function(e){return e.BUTTON_VISIBILITY_UPDATE="kaltura-player.events.button.visibility-update",e.PLUGIN_SIDEPANEL_OPENED_MANUAL="kaltura-player.events.plugin.sidepanel-opened-manual",e.PLUGIN_SIDEPANEL_OPENED_AUTO="kaltura-player.events.plugin.sidepanel-opened-auto",e.PLUGIN_SIDEPANEL_CLOSED="kaltura-player.events.plugin.sidepanel-closed",e}({}),w=function(e){return e.SELECTED_CHAPTER="selectedChapter",e.CURRENT_TIME="currentTime",e.IS_PAUSED="isPaused",e.PLAYER_SESSION="player-session",e.IS_SMALL_SIZE="isSmallSize",e}(w||{}),A=function(e){return e.SIDE_PANELS_MANAGER="sidePanelsManager",e.UPPER_BAR_MANAGER="upperBarManager",e}(A||{}),S=function(e){return e.SIDEPANEL="sidepanel",e.SIMPLE="simple",e}(S||{}),E=function(e){return["Playback"].includes(e)},x=e.ui.components.Tooltip,O=function(e){var t=e.onClick,r=e.className;return(0,g.h)("button",{"data-testid":"player_unisphere_closeButton",className:r,onClick:t},(0,g.h)(x,{label:"Close",type:"bottom"},(0,g.h)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,g.h)("path",{d:"M15.6592 14.245L10.7048 9.29061C10.317 8.9028 9.68581 8.90476 9.29528 9.29528C8.90204 9.68853 8.90267 10.3169 9.29061 10.7048L14.245 15.6592L9.29061 20.6137C8.9028 21.0015 8.90476 21.6327 9.29528 22.0232C9.68853 22.4165 10.3169 22.4158 10.7048 22.0279L15.6592 17.0735L20.6137 22.0279C21.0015 22.4157 21.6327 22.4137 22.0232 22.0232C22.4165 21.63 22.4158 21.0016 22.0279 20.6137L17.0735 15.6592L22.0279 10.7048C22.4157 10.317 22.4137 9.68581 22.0232 9.29528C21.63 8.90204 21.0016 8.90267 20.6137 9.29061L15.6592 14.245Z",fill:"white"}))))},I=function(e){var t;return(0,g.h)("div",{"data-testid":"player_unisphere_containerElement",style:null!==(t=e.style)&&void 0!==t?t:{},id:e.id})};function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const k=KalturaPlayer.ui.preactHooks;function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j=e.ui.components.Tooltip,T=function(e){var t=e.buttons,r=e.buttonClassName,n=e.containerClassName,o=e.player,i=_((0,k.useState)({}),2),a=i[0],u=i[1];return(0,k.useEffect)(function(){var e=function(e){var t=e.payload||{},r=t.buttonId,n=t.visible;"string"==typeof r&&"boolean"==typeof n&&u(function(e){return R(R({},e),{},p({},r,n))})};return o.addEventListener(b.BUTTON_VISIBILITY_UPDATE,e),function(){o.removeEventListener(b.BUTTON_VISIBILITY_UPDATE,e)}},[o]),(0,g.h)("div",{"data-testid":"player_unisphere_sidepanelButtons",className:n},t.filter(function(e){var t=a[e.id];return void 0!==t?t:!1!==e.visible}).map(function(e){return(0,g.h)("button",{"data-testid":"player_unisphere_sidepanelButton",key:e.id,className:r,title:e.tooltip,onClick:function(){e.onClick&&e.onClick()}},(0,g.h)(j,{label:e.tooltip,type:"bottom"},(0,g.h)("svg",{id:"unisphere-icon-".concat(e.id),width:"24px",height:"32px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,g.h)("path",{d:e.icon,fill:"white"}))))}))},N=e.ui.components,L=N.Tooltip,M=N.Icon,U=function(t){var r=t.id,n=t.label,o=t.iconPath;return(0,g.h)(L,{label:n,type:"bottom"},(0,g.h)("button",{type:"button","data-testid":"player_unisphere_upperBarIcon","aria-label":n,className:e.ui.style.upperBarIcon},(0,g.h)(M,{id:"unisphere-icon-".concat(r),height:32,width:32,viewBox:"0 0 32 32",path:o})))},B=function(){function e(){t(this,e)}return u(e,null,[{key:"set",value:function(t){e.workspaceInstance=t}},{key:"get",value:function(){return e.workspaceInstance}},{key:"destroy",value:function(){try{this.workspaceInstance.kill()}catch(e){}e.workspaceInstance=null}}])}();function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}p(B,"workspaceInstance",null);var F,$=function(){function e(){t(this,e)}return u(e,null,[{key:"addToUnsubscribeMap",value:function(t){return e.unsubscribeMap.set(e.sequence,t),++e.sequence,e.sequence}},{key:"unsubscribeAll",value:function(){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return D(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e.unsubscribeMap);try{for(r.s();!(t=r.n()).done;){var n=_(t.value,2),o=n[0];(0,n[1])(),e.unsubscribeMap.delete(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"unsubscribe",value:function(t){var r=e.unsubscribeMap.get(t);r&&(r(),e.unsubscribeMap.delete(t))}}])}();function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}p($,"unsubscribeMap",new Map),p($,"sequence",-1),p(function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,z()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r)}($),"get",function(){var e=d(y().mark(function e(t){var r,n,o,i,a,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.widgetId,n=t.context,o=t.settings,i=B.get(),e.prev=1,e.next=2,null==i?void 0:i.loadRuntime(r,n,o||{});case 2:return a=e.sent,e.abrupt("return",a?null==a?void 0:a.runtime:null);case 3:return e.prev=3,u=e.catch(1),e.abrupt("return",Promise.reject(u));case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}());var W,H="unisphere.service.pub-sub",q=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,G()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}($);function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}F=q,p(q,"subscribe",function(e,t){var r=B.get(),n=null==r?void 0:r.getService(H);if(n){var o=n.subscribe(e,t);return F.addToUnsubscribeMap(o)}return-1}),p(q,"emit",function(e,t){var r=B.get(),n=null==r?void 0:r.getService(H);null==n||n.emit({id:e,version:"1.0.0",payload:t})});var Y="player",K="unisphere.service.storage",Q=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,V()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}($);W=Q,p(Q,"update",function(e,t){var r=B.get(),n=null==r?void 0:r.getService(K);null==n||n.update(Y,e,t)}),p(Q,"get",function(e){var t=B.get(),r=null==t?void 0:t.getService(K);return r?r.get(Y,e):null}),p(Q,"subscribe",function(e,t){var r=B.get(),n=null==r?void 0:r.getService(K);if(n){var o=n.subscribe(t,{namespace:Y,property:e,emitLastValue:!0});W.addToUnsubscribeMap(o)}});const J=KalturaPlayer.core;function X(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+J.Utils.Generator.uniqueId(10)}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ee=function(){return u(function e(){t(this,e),p(this,"_disposers",new Map)},[{key:"generateId",value:function(e){return X("".concat(e.containerType,"_container_"))}},{key:"getSidePanelsManager",value:function(e){return e.getService(A.SIDE_PANELS_MANAGER)}},{key:"addDisposer",value:function(e,t){this._disposers.set(e,t)}},{key:"dispose",value:function(e){var t=this._disposers.get(e);t&&(t(),this._disposers.delete(e))}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this._disposers);try{for(t.s();!(e=t.n()).done;){var r=_(e.value,1)[0];this.dispose(r)}}catch(e){t.e(e)}finally{t.f()}}}])}(),te=r(292),re=r.n(te),ne=r(360),oe=r.n(ne),ie=r(296),ae=r.n(ie),ue=r(88),ce=r.n(ue),se=r(877),le={attributes:{id:"@playkit-js/unisphere-service"}};function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fe=function(){return!!e})()}le.setAttributes=ae(),le.insert=function(e){window.kalturaGlobalConfig&&"string"==typeof window.kalturaGlobalConfig.stylesNonce&&e.setAttribute("nonce",window.kalturaGlobalConfig.stylesNonce),document.head.appendChild(e)},le.domAPI=oe(),le.insertStyleElement=ce(),re()(se.Ay,le),se.Ay&&se.Ay.locals&&se.Ay.locals;var pe=function(r){function n(){return t(this,n),e=this,o=arguments,r=s(r=n),c(e,fe()?Reflect.construct(r,o||[],s(e).constructor):r.apply(e,o));var e,r,o}return f(n,r),u(n,[{key:"createContainer",value:function(e,t){var r,n=this,o=this.generateId(t),i=t.unisphereArea,a=t.position,u=t.expandMode,c=t.presets,s=t.layout,l=t.runtimeWidgetName;console.log("Creating side panel with containerId:",o);var f=null===(r=this.getSidePanelsManager(e))||void 0===r?void 0:r.add({label:o,panelComponent:function(){return n.createSidepanelComponent(s,o,f,e,l)},presets:c,position:a,expandMode:u});return"number"==typeof f?(this.addDisposer(o,function(){var t;null===(t=n.getSidePanelsManager(e))||void 0===t||t.remove(f)}),Q.update(i,{upperBarIcon:{panelId:f}}),o):null}},{key:"createSidepanelComponent",value:function(t,r,n,o,i){var a=this;return(0,g.h)("div",{"data-testid":"player_unisphere_sidepanelComponent",className:se.nY},(0,g.h)("div",{"data-testid":"player_unisphere_sidepanelHeader",className:se.PB},(0,g.h)("h3",{"data-testid":"player_unisphere_sidepanelTitle",className:se.Ui},"buttons"===t.sidepanel.header.type?t.sidepanel.header.title:""),t.sidepanel.header.buttons&&(0,g.h)(T,{buttons:t.sidepanel.header.buttons,buttonClassName:se.Ck,containerClassName:se.qA,player:o}),t.sidepanel.header.showCloseButton&&(0,g.h)(O,{className:se.Ck,onClick:function(){var t;null===(t=a.getSidePanelsManager(o))||void 0===t||t.deactivateItem(n),o.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_CLOSED,{runtimeWidgetName:i}))}})),(0,g.h)(I,{style:{flex:"1",overflow:"auto",height:"100%"},id:r}))}}])}(ee);function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(he=function(){return!!e})()}var de=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,he()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,[{key:"createContainer",value:function(e,t){var r=this.generateId(t),n=t.playerArea,o=t.presets,i=e.ui.addComponent({label:r,presets:o,area:n,get:function(){return(0,g.h)(I,{style:{width:"inherit"},id:r})}});return this.addDisposer(r,i),r}}])}(ee);function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ye=function(){return u(function e(r){t(this,e),p(this,"containerProducers",new Map),this.player=r,this.containerProducers.set(S.SIDEPANEL,new pe),this.containerProducers.set(S.SIMPLE,new de)},[{key:"createContainer",value:function(e){var t=this.containerProducers.get(e.containerType);return t?t.createContainer(this.player,e):null}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this.containerProducers);try{for(t.s();!(e=t.n()).done;){var r,n=_(e.value,1)[0];null===(r=this.containerProducers.get(n))||void 0===r||r.destroy()}}catch(e){t.e(e)}finally{t.f()}}}])}(),ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},me=function(e){return e&&e.Math===Math&&e},be=me("object"==typeof globalThis&&globalThis)||me("object"==typeof window&&window)||me("object"==typeof self&&self)||me("object"==typeof ge&&ge)||me("object"==typeof ge&&ge)||function(){return this}()||Function("return this")(),we={},Ae=function(e){try{return!!e()}catch(e){return!0}},Se=!Ae(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Ee=!Ae(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),xe=Ee,Oe=Function.prototype.call,Ie=xe?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)},Pe={},_e={}.propertyIsEnumerable,ke=Object.getOwnPropertyDescriptor,Ce=ke&&!_e.call({1:2},1);Pe.f=Ce?function(e){var t=ke(this,e);return!!t&&t.enumerable}:_e;var Re,je,Te=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ne=Ee,Le=Function.prototype,Me=Le.call,Ue=Ne&&Le.bind.bind(Me,Me),Be=Ne?Ue:function(e){return function(){return Me.apply(e,arguments)}},De=Be,Fe=De({}.toString),$e=De("".slice),ze=function(e){return $e(Fe(e),8,-1)},Ge=Ae,We=ze,He=Object,qe=Be("".split),Ve=Ge(function(){return!He("z").propertyIsEnumerable(0)})?function(e){return"String"===We(e)?qe(e,""):He(e)}:He,Ye=function(e){return null==e},Ke=Ye,Qe=TypeError,Je=function(e){if(Ke(e))throw new Qe("Can't call method on "+e);return e},Xe=Ve,Ze=Je,et=function(e){return Xe(Ze(e))},tt="object"==typeof document&&document.all,rt=void 0===tt&&void 0!==tt?function(e){return"function"==typeof e||e===tt}:function(e){return"function"==typeof e},nt=rt,ot=function(e){return"object"==typeof e?null!==e:nt(e)},it=be,at=rt,ut=function(e,t){return arguments.length<2?(r=it[e],at(r)?r:void 0):it[e]&&it[e][t];var r},ct=Be({}.isPrototypeOf),st=be.navigator,lt=st&&st.userAgent,ft=be,pt=lt?String(lt):"",ht=ft.process,dt=ft.Deno,vt=ht&&ht.versions||dt&&dt.version,yt=vt&&vt.v8;yt&&(je=(Re=yt.split("."))[0]>0&&Re[0]<4?1:+(Re[0]+Re[1])),!je&&pt&&(!(Re=pt.match(/Edge\/(\d+)/))||Re[1]>=74)&&(Re=pt.match(/Chrome\/(\d+)/))&&(je=+Re[1]);var gt=je,mt=Ae,bt=be.String,wt=!!Object.getOwnPropertySymbols&&!mt(function(){var e=Symbol("symbol detection");return!bt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gt&&gt<41}),At=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=ut,Et=rt,xt=ct,Ot=Object,It=At?function(e){return"symbol"==typeof e}:function(e){var t=St("Symbol");return Et(t)&&xt(t.prototype,Ot(e))},Pt=String,_t=function(e){try{return Pt(e)}catch(e){return"Object"}},kt=rt,Ct=_t,Rt=TypeError,jt=function(e){if(kt(e))return e;throw new Rt(Ct(e)+" is not a function")},Tt=jt,Nt=Ye,Lt=function(e,t){var r=e[t];return Nt(r)?void 0:Tt(r)},Mt=Ie,Ut=rt,Bt=ot,Dt=TypeError,Ft={exports:{}},$t=be,zt=Object.defineProperty,Gt=function(e,t){try{zt($t,e,{value:t,configurable:!0,writable:!0})}catch(r){$t[e]=t}return t},Wt=be,Ht=Gt,qt="__core-js_shared__",Vt=Ft.exports=Wt[qt]||Ht(qt,{});(Vt.versions||(Vt.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Yt=Ft.exports,Kt=Yt,Qt=function(e,t){return Kt[e]||(Kt[e]=t||{})},Jt=Je,Xt=Object,Zt=function(e){return Xt(Jt(e))},er=Zt,tr=Be({}.hasOwnProperty),rr=Object.hasOwn||function(e,t){return tr(er(e),t)},nr=Be,or=0,ir=Math.random(),ar=nr(1.1.toString),ur=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ar(++or+ir,36)},cr=Qt,sr=rr,lr=ur,fr=wt,pr=At,hr=be.Symbol,dr=cr("wks"),vr=pr?hr.for||hr:hr&&hr.withoutSetter||lr,yr=function(e){return sr(dr,e)||(dr[e]=fr&&sr(hr,e)?hr[e]:vr("Symbol."+e)),dr[e]},gr=Ie,mr=ot,br=It,wr=Lt,Ar=TypeError,Sr=yr("toPrimitive"),Er=function(e,t){if(!mr(e)||br(e))return e;var r,n=wr(e,Sr);if(n){if(void 0===t&&(t="default"),r=gr(n,e,t),!mr(r)||br(r))return r;throw new Ar("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Ut(r=e.toString)&&!Bt(n=Mt(r,e)))return n;if(Ut(r=e.valueOf)&&!Bt(n=Mt(r,e)))return n;if("string"!==t&&Ut(r=e.toString)&&!Bt(n=Mt(r,e)))return n;throw new Dt("Can't convert object to primitive value")}(e,t)},xr=It,Or=function(e){var t=Er(e,"string");return xr(t)?t:t+""},Ir=ot,Pr=be.document,_r=Ir(Pr)&&Ir(Pr.createElement),kr=function(e){return _r?Pr.createElement(e):{}},Cr=kr,Rr=!Se&&!Ae(function(){return 7!==Object.defineProperty(Cr("div"),"a",{get:function(){return 7}}).a}),jr=Se,Tr=Ie,Nr=Pe,Lr=Te,Mr=et,Ur=Or,Br=rr,Dr=Rr,Fr=Object.getOwnPropertyDescriptor;we.f=jr?Fr:function(e,t){if(e=Mr(e),t=Ur(t),Dr)try{return Fr(e,t)}catch(e){}if(Br(e,t))return Lr(!Tr(Nr.f,e,t),e[t])};var $r={},zr=Se&&Ae(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Gr=ot,Wr=String,Hr=TypeError,qr=function(e){if(Gr(e))return e;throw new Hr(Wr(e)+" is not an object")},Vr=Se,Yr=Rr,Kr=zr,Qr=qr,Jr=Or,Xr=TypeError,Zr=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn="enumerable",rn="configurable",nn="writable";$r.f=Vr?Kr?function(e,t,r){if(Qr(e),t=Jr(t),Qr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&nn in r&&!r[nn]){var n=en(e,t);n&&n[nn]&&(e[t]=r.value,r={configurable:rn in r?r[rn]:n[rn],enumerable:tn in r?r[tn]:n[tn],writable:!1})}return Zr(e,t,r)}:Zr:function(e,t,r){if(Qr(e),t=Jr(t),Qr(r),Yr)try{return Zr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Xr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var on=$r,an=Te,un=Se?function(e,t,r){return on.f(e,t,an(1,r))}:function(e,t,r){return e[t]=r,e},cn={exports:{}},sn=Se,ln=rr,fn=Function.prototype,pn=sn&&Object.getOwnPropertyDescriptor,hn=ln(fn,"name"),dn={PROPER:hn&&"something"===function(){}.name,CONFIGURABLE:hn&&(!sn||sn&&pn(fn,"name").configurable)},vn=rt,yn=Yt,gn=Be(Function.toString);vn(yn.inspectSource)||(yn.inspectSource=function(e){return gn(e)});var mn,bn,wn,An=yn.inspectSource,Sn=rt,En=be.WeakMap,xn=Sn(En)&&/native code/.test(String(En)),On=ur,In=Qt("keys"),Pn=function(e){return In[e]||(In[e]=On(e))},_n={},kn=xn,Cn=be,Rn=ot,jn=un,Tn=rr,Nn=Yt,Ln=Pn,Mn=_n,Un="Object already initialized",Bn=Cn.TypeError,Dn=Cn.WeakMap;if(kn||Nn.state){var Fn=Nn.state||(Nn.state=new Dn);Fn.get=Fn.get,Fn.has=Fn.has,Fn.set=Fn.set,mn=function(e,t){if(Fn.has(e))throw new Bn(Un);return t.facade=e,Fn.set(e,t),t},bn=function(e){return Fn.get(e)||{}},wn=function(e){return Fn.has(e)}}else{var $n=Ln("state");Mn[$n]=!0,mn=function(e,t){if(Tn(e,$n))throw new Bn(Un);return t.facade=e,jn(e,$n,t),t},bn=function(e){return Tn(e,$n)?e[$n]:{}},wn=function(e){return Tn(e,$n)}}var zn={set:mn,get:bn,has:wn,enforce:function(e){return wn(e)?bn(e):mn(e,{})},getterFor:function(e){return function(t){var r;if(!Rn(t)||(r=bn(t)).type!==e)throw new Bn("Incompatible receiver, "+e+" required");return r}}},Gn=Be,Wn=Ae,Hn=rt,qn=rr,Vn=Se,Yn=dn.CONFIGURABLE,Kn=An,Qn=zn.enforce,Jn=zn.get,Xn=String,Zn=Object.defineProperty,eo=Gn("".slice),to=Gn("".replace),ro=Gn([].join),no=Vn&&!Wn(function(){return 8!==Zn(function(){},"length",{value:8}).length}),oo=String(String).split("String"),io=cn.exports=function(e,t,r){"Symbol("===eo(Xn(t),0,7)&&(t="["+to(Xn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!qn(e,"name")||Yn&&e.name!==t)&&(Vn?Zn(e,"name",{value:t,configurable:!0}):e.name=t),no&&r&&qn(r,"arity")&&e.length!==r.arity&&Zn(e,"length",{value:r.arity});try{r&&qn(r,"constructor")&&r.constructor?Vn&&Zn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Qn(e);return qn(n,"source")||(n.source=ro(oo,"string"==typeof t?t:"")),e};Function.prototype.toString=io(function(){return Hn(this)&&Jn(this).source||Kn(this)},"toString");var ao=cn.exports,uo=rt,co=$r,so=ao,lo=Gt,fo=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(uo(r)&&so(r,i,n),n.global)o?e[t]=r:lo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:co.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},po={},ho=Math.ceil,vo=Math.floor,yo=Math.trunc||function(e){var t=+e;return(t>0?vo:ho)(t)},go=function(e){var t=+e;return t!=t||0===t?0:yo(t)},mo=go,bo=Math.max,wo=Math.min,Ao=go,So=Math.min,Eo=function(e){var t=Ao(e);return t>0?So(t,9007199254740991):0},xo=Eo,Oo=function(e){return xo(e.length)},Io=et,Po=Oo,_o=function(e){return function(t,r,n){var o=Io(t),i=Po(o);if(0===i)return!e&&-1;var a,u=function(e,t){var r=mo(e);return r<0?bo(r+t,0):wo(r,t)}(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ko={includes:_o(!0),indexOf:_o(!1)},Co=rr,Ro=et,jo=ko.indexOf,To=_n,No=Be([].push),Lo=function(e,t){var r,n=Ro(e),o=0,i=[];for(r in n)!Co(To,r)&&Co(n,r)&&No(i,r);for(;t.length>o;)Co(n,r=t[o++])&&(~jo(i,r)||No(i,r));return i},Mo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Uo=Lo,Bo=Mo.concat("length","prototype");po.f=Object.getOwnPropertyNames||function(e){return Uo(e,Bo)};var Do={};Do.f=Object.getOwnPropertySymbols;var Fo=ut,$o=po,zo=Do,Go=qr,Wo=Be([].concat),Ho=Fo("Reflect","ownKeys")||function(e){var t=$o.f(Go(e)),r=zo.f;return r?Wo(t,r(e)):t},qo=rr,Vo=Ho,Yo=we,Ko=$r,Qo=function(e,t,r){for(var n=Vo(t),o=Ko.f,i=Yo.f,a=0;a<n.length;a++){var u=n[a];qo(e,u)||r&&qo(r,u)||o(e,u,i(t,u))}},Jo=Ae,Xo=rt,Zo=/#|\.prototype\./,ei=function(e,t){var r=ri[ti(e)];return r===oi||r!==ni&&(Xo(t)?Jo(t):!!t)},ti=ei.normalize=function(e){return String(e).replace(Zo,".").toLowerCase()},ri=ei.data={},ni=ei.NATIVE="N",oi=ei.POLYFILL="P",ii=ei,ai=be,ui=we.f,ci=un,si=fo,li=Gt,fi=Qo,pi=ii,hi=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?ai:s?ai[u]||li(u,{}):ai[u]&&ai[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=ui(r,n))&&a.value:r[n],!pi(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;fi(i,o)}(e.sham||o&&o.sham)&&ci(i,"sham",!0),si(r,n,i,e)}},di=ze,vi=Se,yi=Array.isArray||function(e){return"Array"===di(e)},gi=TypeError,mi=Object.getOwnPropertyDescriptor,bi=vi&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),wi=TypeError,Ai=Zt,Si=Oo,Ei=bi?function(e,t){if(yi(e)&&!mi(e,"length").writable)throw new gi("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};hi({target:"Array",proto:!0,arity:1,forced:Ae(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=Ai(this),r=Si(t),n=arguments.length;!function(e){if(e>9007199254740991)throw wi("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return Ei(t,r),r}});var xi={},Oi=Lo,Ii=Mo,Pi=Object.keys||function(e){return Oi(e,Ii)},_i=Se,ki=zr,Ci=$r,Ri=qr,ji=et,Ti=Pi;xi.f=_i&&!ki?Object.defineProperties:function(e,t){Ri(e);for(var r,n=ji(t),o=Ti(t),i=o.length,a=0;i>a;)Ci.f(e,r=o[a++],n[r]);return e};var Ni,Li=ut("document","documentElement"),Mi=qr,Ui=xi,Bi=Mo,Di=_n,Fi=Li,$i=kr,zi="prototype",Gi="script",Wi=Pn("IE_PROTO"),Hi=function(){},qi=function(e){return"<"+Gi+">"+e+"</"+Gi+">"},Vi=function(e){e.write(qi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yi=function(){try{Ni=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Yi="undefined"!=typeof document?document.domain&&Ni?Vi(Ni):(t=$i("iframe"),r="java"+Gi+":",t.style.display="none",Fi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(qi("document.F=Object")),e.close(),e.F):Vi(Ni);for(var n=Bi.length;n--;)delete Yi[zi][Bi[n]];return Yi()};Di[Wi]=!0;var Ki=Object.create||function(e,t){var r;return null!==e?(Hi[zi]=Mi(e),r=new Hi,Hi[zi]=null,r[Wi]=e):r=Yi(),void 0===t?r:Ui.f(r,t)},Qi=yr,Ji=Ki,Xi=$r.f,Zi=Qi("unscopables"),ea=Array.prototype;void 0===ea[Zi]&&Xi(ea,Zi,{configurable:!0,value:Ji(null)});var ta,ra,na,oa=function(e){ea[Zi][e]=!0},ia={},aa=!Ae(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ua=rr,ca=rt,sa=Zt,la=aa,fa=Pn("IE_PROTO"),pa=Object,ha=pa.prototype,da=la?pa.getPrototypeOf:function(e){var t=sa(e);if(ua(t,fa))return t[fa];var r=t.constructor;return ca(r)&&t instanceof r?r.prototype:t instanceof pa?ha:null},va=Ae,ya=rt,ga=ot,ma=da,ba=fo,wa=yr("iterator"),Aa=!1;[].keys&&("next"in(na=[].keys())?(ra=ma(ma(na)))!==Object.prototype&&(ta=ra):Aa=!0);var Sa=!ga(ta)||va(function(){var e={};return ta[wa].call(e)!==e});Sa&&(ta={}),ya(ta[wa])||ba(ta,wa,function(){return this});var Ea={IteratorPrototype:ta,BUGGY_SAFARI_ITERATORS:Aa},xa=$r.f,Oa=rr,Ia=yr("toStringTag"),Pa=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Oa(e,Ia)&&xa(e,Ia,{configurable:!0,value:t})},_a=Ea.IteratorPrototype,ka=Ki,Ca=Te,Ra=Pa,ja=ia,Ta=function(){return this},Na=Be,La=jt,Ma=function(e,t,r){try{return Na(La(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Ua=ot,Ba=String,Da=TypeError,Fa=Ma,$a=ot,za=Je,Ga=function(e){if(function(e){return Ua(e)||null===e}(e))return e;throw new Da("Can't set "+Ba(e)+" as a prototype")},Wa=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Fa(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return za(r),Ga(n),$a(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Ha=hi,qa=Ie,Va=rt,Ya=da,Ka=Wa,Qa=Pa,Ja=un,Xa=fo,Za=ia,eu=dn.PROPER,tu=dn.CONFIGURABLE,ru=Ea.IteratorPrototype,nu=Ea.BUGGY_SAFARI_ITERATORS,ou=yr("iterator"),iu="keys",au="values",uu="entries",cu=function(){return this},su=function(e,t){return{value:e,done:t}},lu=et,fu=oa,pu=ia,hu=zn,du=$r.f,vu=su,yu=Se,gu="Array Iterator",mu=hu.set,bu=hu.getterFor(gu),wu=function(e,t,r,n,o,i,a){!function(e,t,r,n){var o=t+" Iterator";e.prototype=ka(_a,{next:Ca(+!n,r)}),Ra(e,o,!1),ja[o]=Ta}(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!nu&&e&&e in h)return h[e];switch(e){case iu:case au:case uu:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[ou]||h["@@iterator"]||o&&h[o],v=!nu&&d||l(o),y="Array"===t&&h.entries||d;if(y&&(u=Ya(y.call(new e)))!==Object.prototype&&u.next&&(Ya(u)!==ru&&(Ka?Ka(u,ru):Va(u[ou])||Xa(u,ou,cu)),Qa(u,f,!0)),eu&&o===au&&d&&d.name!==au&&(tu?Ja(h,"name",au):(p=!0,v=function(){return qa(d,this)})),o)if(c={values:l(au),keys:i?v:l(iu),entries:l(uu)},a)for(s in c)(nu||p||!(s in h))&&Xa(h,s,c[s]);else Ha({target:t,proto:!0,forced:nu||p},c);return h[ou]!==v&&Xa(h,ou,v,{name:o}),Za[t]=v,c}(Array,"Array",function(e,t){mu(this,{type:gu,target:lu(e),index:0,kind:t})},function(){var e=bu(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,vu(void 0,!0);switch(e.kind){case"keys":return vu(r,!1);case"values":return vu(t[r],!1)}return vu([r,t[r]],!1)},"values"),Au=pu.Arguments=pu.Array;if(fu("keys"),fu("values"),fu("entries"),yu&&"values"!==Au.name)try{du(Au,"name",{value:"values"})}catch(e){}var Su=ct,Eu=TypeError,xu=ao,Ou=$r,Iu=Se,Pu=$r,_u=Te,ku=hi,Cu=be,Ru=qr,ju=rt,Tu=da,Nu=Ae,Lu=rr,Mu=Ea.IteratorPrototype,Uu=Se,Bu="constructor",Du="Iterator",Fu=yr("toStringTag"),$u=TypeError,zu=Cu[Du],Gu=!ju(zu)||zu.prototype!==Mu||!Nu(function(){zu({})}),Wu=function(){if(function(e,t){if(Su(t,e))return e;throw new Eu("Incorrect invocation")}(this,Mu),Tu(this)===Mu)throw new $u("Abstract class Iterator not directly constructable")},Hu=function(e,t){Uu?function(e,t,r){r.get&&xu(r.get,t,{getter:!0}),r.set&&xu(r.set,t,{setter:!0}),Ou.f(e,t,r)}(Mu,e,{configurable:!0,get:function(){return t},set:function(t){if(Ru(this),this===Mu)throw new $u("You can't redefine this property");Lu(this,e)?this[e]=t:function(e,t,r){Iu?Pu.f(e,t,_u(0,r)):e[t]=r}(this,e,t)}}):Mu[e]=t};Lu(Mu,Fu)||Hu(Fu,Du),!Gu&&Lu(Mu,Bu)&&Mu[Bu]!==Object||Hu(Bu,Wu),Wu.prototype=Mu,ku({global:!0,constructor:!0,forced:Gu},{Iterator:Wu});var qu=function(e){return{iterator:e,next:e.next,done:!1}},Vu=fo,Yu=Ie,Ku=qr,Qu=Lt,Ju=function(e,t,r){var n,o;Ku(e);try{if(!(n=Qu(e,"return"))){if("throw"===t)throw r;return r}n=Yu(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Ku(n),r},Xu=Ju,Zu=Ie,ec=Ki,tc=un,rc=zn,nc=Lt,oc=Ea.IteratorPrototype,ic=su,ac=Ju,uc=yr("toStringTag"),cc="IteratorHelper",sc="WrapForValidIterator",lc="normal",fc="throw",pc=rc.set,hc=function(e){var t=rc.getterFor(e?sc:cc);return function(e,t,r){for(var n in t)Vu(e,n,t[n],r);return e}(ec(oc),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return ic(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:ic(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=nc(n,"return");return o?Zu(o,n):ic(void 0,!0)}if(r.inner)try{ac(r.inner.iterator,lc)}catch(e){return ac(n,fc,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=Xu(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,lc)}catch(e){return ac(n,fc,e)}return n&&ac(n,lc),ic(void 0,!0)}})},dc=hc(!0),vc=hc(!1);tc(vc,uc,"Iterator Helper");var yc=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?sc:cc,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,pc(this,o)};return n.prototype=t?dc:vc,n},gc=qr,mc=Ju,bc=function(e,t,r,n){try{return n?t(gc(r)[0],r[1]):t(r)}catch(t){mc(e,"throw",t)}},wc=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}},Ac=be,Sc=function(e,t){var r=Ac.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},Ec=hi,xc=Ie,Oc=jt,Ic=qr,Pc=qu,_c=yc,kc=bc,Cc=Ju,Rc=Sc,jc=!wc("filter",function(){}),Tc=!jc&&Rc("filter",TypeError),Nc=jc||Tc,Lc=_c(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=Ic(xc(o,r)),this.done=!!e.done)return;if(t=e.value,kc(r,n,[t,this.counter++],!0))return t}});Ec({target:"Iterator",proto:!0,real:!0,forced:Nc},{filter:function(e){Ic(this);try{Oc(e)}catch(e){Cc(this,"throw",e)}return Tc?xc(Tc,this,e):new Lc(Pc(this),{predicate:e})}});var Mc=ze,Uc=Be,Bc=function(e){if("Function"===Mc(e))return Uc(e)},Dc=jt,Fc=Ee,$c=Bc(Bc.bind),zc=ia,Gc=yr("iterator"),Wc=Array.prototype,Hc={};Hc[yr("toStringTag")]="z";var qc="[object z]"===String(Hc),Vc=rt,Yc=ze,Kc=yr("toStringTag"),Qc=Object,Jc="Arguments"===Yc(function(){return arguments}()),Xc=qc?Yc: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=Qc(e),Kc))?r:Jc?Yc(t):"Object"===(n=Yc(t))&&Vc(t.callee)?"Arguments":n},Zc=Xc,es=Lt,ts=Ye,rs=ia,ns=yr("iterator"),os=function(e){if(!ts(e))return es(e,ns)||es(e,"@@iterator")||rs[Zc(e)]},is=Ie,as=jt,us=qr,cs=_t,ss=os,ls=TypeError,fs=Ie,ps=qr,hs=_t,ds=Oo,vs=ct,ys=os,gs=Ju,ms=TypeError,bs=function(e,t){this.stopped=e,this.result=t},ws=bs.prototype,As=function(e,t,r){var n,o,i,a,u,c,s,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=function(e,t){return Dc(e),void 0===t?e:Fc?$c(e,t):function(){return e.apply(t,arguments)}}(t,f),g=function(e){return n&&gs(n,"normal"),new bs(!0,e)},m=function(e){return p?(ps(e),v?y(e[0],e[1],g):y(e[0],e[1])):v?y(e,g):y(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(o=ys(e)))throw new ms(hs(e)+" is not iterable");if(void 0!==(l=o)&&(zc.Array===l||Wc[Gc]===l)){for(i=0,a=ds(e);a>i;i++)if((u=m(e[i]))&&vs(ws,u))return u;return new bs(!1)}n=function(e,t){var r=arguments.length<2?ss(e):t;if(as(r))return us(is(r,e));throw new ls(cs(e)+" is not iterable")}(e,o)}for(c=h?e.next:n.next;!(s=fs(c,n)).done;){try{u=m(s.value)}catch(e){gs(n,"throw",e)}if("object"==typeof u&&u&&vs(ws,u))return u}return new bs(!1)},Ss=hi,Es=Ie,xs=As,Os=jt,Is=qr,Ps=qu,_s=Ju,ks=Sc("forEach",TypeError);Ss({target:"Iterator",proto:!0,real:!0,forced:ks},{forEach:function(e){Is(this);try{Os(e)}catch(e){_s(this,"throw",e)}if(ks)return Es(ks,this,e);var t=Ps(this),r=0;xs(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var Cs=Se,Rs=Be,js=Ie,Ts=Ae,Ns=Pi,Ls=Do,Ms=Pe,Us=Zt,Bs=Ve,Ds=Object.assign,Fs=Object.defineProperty,$s=Rs([].concat),zs=!Ds||Ts(function(){if(Cs&&1!==Ds({b:1},Ds(Fs({},"a",{enumerable:!0,get:function(){Fs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Ds({},e)[r]||Ns(Ds({},t)).join("")!==n})?function(e,t){for(var r=Us(e),n=arguments.length,o=1,i=Ls.f,a=Ms.f;n>o;)for(var u,c=Bs(arguments[o++]),s=i?$s(Ns(c),i(c)):Ns(c),l=s.length,f=0;l>f;)u=s[f++],Cs&&!js(a,c,u)||(r[u]=c[u]);return r}:Ds,Gs=zs;hi({target:"Object",stat:!0,arity:2,forced:Object.assign!==Gs},{assign:Gs});var Ws=Xc,Hs=String,qs=function(e){if("Symbol"===Ws(e))throw new TypeError("Cannot convert a Symbol value to a string");return Hs(e)},Vs=Ae,Ys=be.RegExp,Ks=!Vs(function(){var e=!0;try{Ys(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Ys.prototype,"flags").get.call(t)!==n||r!==n}),Qs=qr,Js=function(){var e=Qs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Xs=Ie,Zs=rr,el=ct,tl=Ks,rl=Js,nl=RegExp.prototype,ol=tl?function(e){return e.flags}:function(e){return tl||!el(nl,e)||Zs(e,"flags")?e.flags:Xs(rl,e)},il=dn.PROPER,al=fo,ul=qr,cl=qs,sl=Ae,ll=ol,fl="toString",pl=RegExp.prototype,hl=pl[fl],dl=sl(function(){return"/a/b"!==hl.call({source:"a",flags:"b"})}),vl=il&&hl.name!==fl;(dl||vl)&&al(pl,fl,function(){var e=ul(this);return"/"+cl(e.source)+"/"+cl(ll(e))},{unsafe:!0});var yl=kr("span").classList,gl=yl&&yl.constructor&&yl.constructor.prototype,ml=gl===Object.prototype?void 0:gl,bl=be,wl={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},Al=ml,Sl=wu,El=un,xl=Pa,Ol=yr("iterator"),Il=Sl.values,Pl=function(e,t){if(e){if(e[Ol]!==Il)try{El(e,Ol,Il)}catch(t){e[Ol]=Il}if(xl(e,t,!0),wl[t])for(var r in Sl)if(e[r]!==Sl[r])try{El(e,r,Sl[r])}catch(t){e[r]=Sl[r]}}};for(var _l in wl)Pl(bl[_l]&&bl[_l].prototype,_l);Pl(Al,"DOMTokenList");const kl=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);let Cl=window.unisphere;function Rl(e,t,r){return e in Cl?{value:Cl[e],isNew:!1}:(null==t||t.debug(`${e} not found on 'window.unisphere', creating with default value`,{data:{defaultValue:r}}),Cl[e]=r,{value:r,isNew:!0})}"unisphere"in window||(Cl=window.unisphere={});class jl{static createWorkspaceLogger(e){return new jl(e)}kill(){this._killed=!0,this._loggersStore.clear()}constructor(e){this.workspaceName=e,this._killed=!1,this._loggersStore=new Map}getLogger(e){return this.getOrCreateLogger("legacy",e)}getOrCreateLogger(e,t,r){const n=[e,t,null==r?void 0:r.scope,null==r?void 0:r.widgetName,null==r?void 0:r.runtimeName].filter(Boolean).join("."),o=this._loggersStore.get(n);if(o)return o;const i=new Nl({type:e,name:t,workspaceName:this.workspaceName,widgetName:null==r?void 0:r.widgetName,scope:null==r?void 0:r.scope,runtimeName:null==r?void 0:r.runtimeName});return this._loggersStore.set(n,i),i}}function Tl(){const{value:e}=Rl("loggers",null,{interceptors:[],logMessages:[],logToConsole:!0,logLevel:"warn"});return e}class Nl{constructor(e){this._options=e;const t=Tl();this._globalLoggers=t}createContextualGroup(){const e=this._options.contextId?`${this._options.contextId}.${kl()}`:kl();return new Nl(Object.assign(Object.assign({},this._options),{contextId:e}))}cloneLogger(e){return new Nl(Object.assign(Object.assign({},this._options),{type:e.newType,name:e.newName}))}logMessage(e,t,r,n,o){const i={salt:Math.random().toString(36).substring(4),type:this._options.type,name:this._options.name,workspaceName:this._options.workspaceName,widgetName:(null==o?void 0:o.widgetName)||this._options.widgetName,runtimeName:(null==o?void 0:o.runtimeName)||this._options.runtimeName,scope:this._options.scope,time:(new Date).toISOString(),message:t,data:r,error:n,level:e,contextId:this._options.contextId},a=Tl();if(a.logMessages.push(i),a.interceptors.forEach(e=>{e(i)}),this.shouldLog(e,a.logLevel)){const t={type:i.type,name:i.name,workspaceName:i.workspaceName,widgetName:i.widgetName,runtimeName:i.runtimeName,scope:i.scope,contextId:this._options.contextId},r=`${i.time} [Unisphere] ${i.message}`;switch(e){case"debug":console.debug(r,i.data,t);break;case"log":console.log(r,i.data,t);break;case"warn":console.warn(r,{data:i.data,error:i.error},t);break;case"error":console.error(r,{data:i.data,error:i.error},t)}}}shouldLog(e,t){const r=["debug","log","warn","error"];return r.indexOf(e)>=r.indexOf(t)}log(e,t){this.logMessage("log",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}debug(e,t){this.logMessage("debug",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}warn(e,t){this.logMessage("warn",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}error(e,t){this.logMessage("error",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}}var Ll=ko.includes,Ml=oa;hi({target:"Array",proto:!0,forced:Ae(function(){return!Array(1).includes()})},{includes:function(e){return Ll(this,e,arguments.length>1?arguments[1]:void 0)}}),Ml("includes");var Ul=hi,Bl=Ie,Dl=jt,Fl=qr,$l=qu,zl=yc,Gl=bc,Wl=Ju,Hl=Sc,ql=!wc("map",function(){}),Vl=!ql&&Hl("map",TypeError),Yl=ql||Vl,Kl=zl(function(){var e=this.iterator,t=Fl(Bl(this.next,e));if(!(this.done=!!t.done))return Gl(e,this.mapper,[t.value,this.counter++],!0)});Ul({target:"Iterator",proto:!0,real:!0,forced:Yl},{map:function(e){Fl(this);try{Dl(e)}catch(e){Wl(this,"throw",e)}return Vl?Bl(Vl,this,e):new Kl($l(this),{mapper:e})}});var Ql=hi,Jl=Ie,Xl=As,Zl=jt,ef=qr,tf=qu,rf=Ju,nf=Sc("some",TypeError);Ql({target:"Iterator",proto:!0,real:!0,forced:nf},{some:function(e){ef(this);try{Zl(e)}catch(e){rf(this,"throw",e)}if(nf)return Jl(nf,this,e);var t=tf(this),r=0;return Xl(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var of=ot,af=ze,uf=yr("match"),cf=TypeError,sf=yr("match"),lf=hi,ff=function(e){if(function(e){var t;return of(e)&&(void 0!==(t=e[uf])?!!t:"RegExp"===af(e))}(e))throw new cf("The method doesn't accept regular expressions");return e},pf=Je,hf=qs,df=Be("".indexOf);lf({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[sf]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~df(hf(pf(this)),hf(ff(e)),arguments.length>1?arguments[1]:void 0)}});const vf={type:"or",properties:[{type:"custom",condition:(e,t)=>e&&"DIV"===e.tagName?[]:[{path:t,message:"Expected HTMLElement"}]},{type:"primitive",value:"string"},{type:"or",properties:[{type:"object",properties:{target:{type:"literal",value:"element"},elementId:{type:"primitive",value:"string"}}},{type:"object",properties:{target:{type:"literal",value:"body"},classNames:{type:"primitive",value:"string",optional:!0},style:{optional:!0,type:"map",value:{type:"primitive",value:"string"}}}}]}]};Object.assign(Object.assign({},vf),{optional:!0}),Object.assign(Object.assign({},vf),{optional:!1});var yf=Be,gf=Set.prototype,mf={Set,add:yf(gf.add),has:yf(gf.has),remove:yf(gf.delete),proto:gf},bf=mf.has,wf=function(e){return bf(e),e},Af=Ie,Sf=function(e,t,r){for(var n,o,i=r?e:e.iterator,a=e.next;!(n=Af(a,i)).done;)if(void 0!==(o=t(n.value)))return o},Ef=Be,xf=Sf,Of=mf.Set,If=mf.proto,Pf=Ef(If.forEach),_f=Ef(If.keys),kf=_f(new Of).next,Cf=function(e,t,r){return r?xf({iterator:_f(e),next:kf},t):Pf(e,t)},Rf=Cf,jf=mf.Set,Tf=mf.add,Nf=function(e){var t=new jf;return Rf(e,function(e){Tf(t,e)}),t},Lf=Ma(mf.proto,"size","get")||function(e){return e.size},Mf=jt,Uf=qr,Bf=Ie,Df=go,Ff=qu,$f="Invalid size",zf=RangeError,Gf=TypeError,Wf=Math.max,Hf=function(e,t){this.set=e,this.size=Wf(t,0),this.has=Mf(e.has),this.keys=Mf(e.keys)};Hf.prototype={getIterator:function(){return Ff(Uf(Bf(this.keys,this.set)))},includes:function(e){return Bf(this.has,this.set,e)}};var qf=function(e){Uf(e);var t=+e.size;if(t!=t)throw new Gf($f);var r=Df(t);if(r<0)throw new zf($f);return new Hf(e,r)},Vf=wf,Yf=Nf,Kf=Lf,Qf=qf,Jf=Cf,Xf=Sf,Zf=mf.has,ep=mf.remove,tp=ut,rp=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},np=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}},op=function(e,t){var r=tp("Set");try{(new r)[e](rp(0));try{return(new r)[e](rp(-1)),!1}catch(o){if(!t)return!0;try{return(new r)[e](np(-1/0)),!1}catch(o){var n=new r;return n.add(1),n.add(2),t(n[e](np(1/0)))}}}catch(e){return!1}},ip=Ae;hi({target:"Set",proto:!0,real:!0,forced:!op("difference",function(e){return 0===e.size})||ip(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:function(e){var t=Vf(this),r=Qf(e),n=Yf(t);return Kf(t)<=r.size?Jf(t,function(e){r.includes(e)&&ep(n,e)}):Xf(r.getIterator(),function(e){Zf(n,e)&&ep(n,e)}),n}});var ap=wf,up=Lf,cp=qf,sp=Cf,lp=Sf,fp=mf.Set,pp=mf.add,hp=mf.has,dp=Ae;hi({target:"Set",proto:!0,real:!0,forced:!op("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||dp(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:function(e){var t=ap(this),r=cp(e),n=new fp;return up(t)>r.size?lp(r.getIterator(),function(e){hp(t,e)&&pp(n,e)}):sp(t,function(e){r.includes(e)&&pp(n,e)}),n}});var vp=wf,yp=mf.has,gp=Lf,mp=qf,bp=Cf,wp=Sf,Ap=Ju;hi({target:"Set",proto:!0,real:!0,forced:!op("isDisjointFrom",function(e){return!e})},{isDisjointFrom:function(e){var t=vp(this),r=mp(e);if(gp(t)<=r.size)return!1!==bp(t,function(e){if(r.includes(e))return!1},!0);var n=r.getIterator();return!1!==wp(n,function(e){if(yp(t,e))return Ap(n,"normal",!1)})}});var Sp=wf,Ep=Lf,xp=Cf,Op=qf;hi({target:"Set",proto:!0,real:!0,forced:!op("isSubsetOf",function(e){return e})},{isSubsetOf:function(e){var t=Sp(this),r=Op(e);return!(Ep(t)>r.size)&&!1!==xp(t,function(e){if(!r.includes(e))return!1},!0)}});var Ip=wf,Pp=mf.has,_p=Lf,kp=qf,Cp=Sf,Rp=Ju;hi({target:"Set",proto:!0,real:!0,forced:!op("isSupersetOf",function(e){return!e})},{isSupersetOf:function(e){var t=Ip(this),r=kp(e);if(_p(t)<r.size)return!1;var n=r.getIterator();return!1!==Cp(n,function(e){if(!Pp(t,e))return Rp(n,"normal",!1)})}});var jp=wf,Tp=Nf,Np=qf,Lp=Sf,Mp=mf.add,Up=mf.has,Bp=mf.remove,Dp=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}},Fp=Dp;hi({target:"Set",proto:!0,real:!0,forced:!op("symmetricDifference")||!Fp("symmetricDifference")},{symmetricDifference:function(e){var t=jp(this),r=Np(e).getIterator(),n=Tp(t);return Lp(r,function(e){Up(t,e)?Bp(n,e):Mp(n,e)}),n}});var $p=wf,zp=mf.add,Gp=Nf,Wp=qf,Hp=Sf,qp=Dp;hi({target:"Set",proto:!0,real:!0,forced:!op("union")||!qp("union")},{union:function(e){var t=$p(this),r=Wp(e).getIterator(),n=Gp(t);return Hp(r,function(e){zp(n,e)}),n}});var Vp=Ee,Yp=Function.prototype,Kp=Yp.apply,Qp=Yp.call,Jp="object"==typeof Reflect&&Reflect.apply||(Vp?Qp.bind(Kp):function(){return Qp.apply(Kp,arguments)}),Xp=$r.f,Zp=rt,eh=ot,th=Wa,rh=qs,nh=ot,oh=un,ih=Error,ah=Be("".replace),uh=String(new ih("zxcasd").stack),ch=/\n\s*at [^:]*:[^\n]*/,sh=ch.test(uh),lh=Te,fh=!Ae(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",lh(1,7)),7!==e.stack)}),ph=un,hh=fh,dh=Error.captureStackTrace,vh=ut,yh=rr,gh=un,mh=ct,bh=Wa,wh=Qo,Ah=function(e,t,r){r in e||Xp(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},Sh=function(e,t,r,n){hh&&(dh?dh(e,t):ph(e,"stack",function(e,t){if(sh&&"string"==typeof e&&!ih.prepareStackTrace)for(;t--;)e=ah(e,ch,"");return e}(r,n)))},Eh=Se,xh=hi,Oh=Jp,Ih=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=vh.apply(null,a);if(c){var s=c.prototype;if(yh(s,"cause")&&delete s.cause,!r)return c;var l=vh("Error"),f=t(function(e,t){var r,o,a,u,l,p=function(e,t){return void 0===e?arguments.length<2?"":t:rh(e)}(n?t:e,void 0),h=n?new c(e):new c;return void 0!==p&&gh(h,"message",p),Sh(h,f,h.stack,2),this&&mh(s,this)&&(r=h,o=this,a=f,th&&Zp(u=o.constructor)&&u!==a&&eh(l=u.prototype)&&l!==a.prototype&&th(r,l)),arguments.length>i&&function(e,t){nh(t)&&"cause"in t&&oh(e,"cause",t.cause)}(h,arguments[i]),h});f.prototype=s,"Error"!==u?bh?bh(f,l):wh(f,l,{name:!0}):Eh&&o in c&&(Ah(f,c,o),Ah(f,c,"prepareStackTrace")),wh(f,c);try{s.name!==u&&gh(s,"name",u),s.constructor=f}catch(e){}return f}},Ph="WebAssembly",_h=be[Ph],kh=7!==new Error("e",{cause:7}).cause,Ch=function(e,t){var r={};r[e]=Ih(e,t,kh),xh({global:!0,constructor:!0,arity:1,forced:kh},r)},Rh=function(e,t){if(_h&&_h[e]){var r={};r[e]=Ih(Ph+"."+e,t,kh),xh({target:Ph,stat:!0,constructor:!0,arity:1,forced:kh},r)}};Ch("Error",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("EvalError",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("RangeError",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("ReferenceError",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("SyntaxError",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("TypeError",function(e){return function(t){return Oh(e,this,arguments)}}),Ch("URIError",function(e){return function(t){return Oh(e,this,arguments)}}),Rh("CompileError",function(e){return function(t){return Oh(e,this,arguments)}}),Rh("LinkError",function(e){return function(t){return Oh(e,this,arguments)}}),Rh("RuntimeError",function(e){return function(t){return Oh(e,this,arguments)}});var jh=Ae,Th=be.RegExp,Nh=jh(function(){var e=Th("a","y");return e.lastIndex=2,null!==e.exec("abcd")});Nh||jh(function(){return!Th("a","y").sticky});var Lh,Mh,Uh=Nh||jh(function(){var e=Th("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),Bh={BROKEN_CARET:Uh},Dh=Ae,Fh=be.RegExp,$h=Dh(function(){var e=Fh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),zh=Ae,Gh=be.RegExp,Wh=zh(function(){var e=Gh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Hh=Ie,qh=Be,Vh=qs,Yh=Js,Kh=Bh,Qh=Ki,Jh=zn.get,Xh=$h,Zh=Wh,ed=Qt("native-string-replace",String.prototype.replace),td=RegExp.prototype.exec,rd=td,nd=qh("".charAt),od=qh("".indexOf),id=qh("".replace),ad=qh("".slice),ud=(Mh=/b*/g,Hh(td,Lh=/a/,"a"),Hh(td,Mh,"a"),0!==Lh.lastIndex||0!==Mh.lastIndex),cd=Kh.BROKEN_CARET,sd=void 0!==/()??/.exec("")[1];(ud||sd||cd||Xh||Zh)&&(rd=function(e){var t,r,n,o,i,a,u,c=this,s=Jh(c),l=Vh(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=Hh(rd,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=cd&&c.sticky,d=Hh(Yh,c),v=c.source,y=0,g=l;if(h&&(d=id(d,"y",""),-1===od(d,"g")&&(d+="g"),g=ad(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==nd(l,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),sd&&(r=new RegExp("^"+v+"$(?!\\s)",d)),ud&&(n=c.lastIndex),o=Hh(td,h?r:c,g),h?o?(o.input=ad(o.input,y),o[0]=ad(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ud&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),sd&&o&&o.length>1&&Hh(ed,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=Qh(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ld=rd;hi({target:"RegExp",proto:!0,forced:/./.exec!==ld},{exec:ld});var fd=Ie,pd=fo,hd=ld,dd=Ae,vd=yr,yd=un,gd=vd("species"),md=RegExp.prototype,bd=Be,wd=go,Ad=qs,Sd=Je,Ed=bd("".charAt),xd=bd("".charCodeAt),Od=bd("".slice),Id={charAt:function(e,t){var r,n,o=Ad(Sd(e)),i=wd(t),a=o.length;return i<0||i>=a?"":(r=xd(o,i))<55296||r>56319||i+1===a||(n=xd(o,i+1))<56320||n>57343?Ed(o,i):Od(o,i,i+2)}},Pd=Id.charAt,_d=Ie,kd=qr,Cd=rt,Rd=ze,jd=ld,Td=TypeError,Nd=Ie,Ld=qr,Md=ot,Ud=Eo,Bd=qs,Dd=Je,Fd=Lt,$d=function(e,t,r){return t+(r?Pd(e,t).length:1)},zd=ol,Gd=function(e,t){var r=e.exec;if(Cd(r)){var n=_d(r,e,t);return null!==n&&kd(n),n}if("RegExp"===Rd(e))return _d(jd,e,t);throw new Td("RegExp#exec called on incompatible receiver")},Wd=Be("".indexOf);!function(e,t,r,n){var o=vd(e),i=!dd(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!dd(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[gd]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===hd||a===md.exec?i&&!o?{done:!0,value:fd(u,t,r,n)}:{done:!0,value:fd(e,r,t,n)}:{done:!1}});pd(String.prototype,e,c[0]),pd(md,o,c[1])}n&&yd(md[o],"sham",!0)}("match",function(e,t,r){return[function(t){var r=Dd(this),n=Md(t)?Fd(t,e):void 0;return n?Nd(n,t,r):new RegExp(t)[e](Bd(r))},function(e){var n=Ld(this),o=Bd(e),i=r(t,n,o);if(i.done)return i.value;var a=Bd(zd(n));if(-1===Wd(a,"g"))return Gd(n,o);var u=-1!==Wd(a,"u");n.lastIndex=0;for(var c,s=[],l=0;null!==(c=Gd(n,o));){var f=Bd(c[0]);s[l]=f,""===f&&(n.lastIndex=$d(o,Ud(n.lastIndex),u)),l++}return 0===l?null:s}]});class Hd{constructor(){this._isOnpremMode="#OnPrem on#"===["#","OnPrem off","#"].join("")}get isOnpremMode(){return this._isOnpremMode}}const qd=["onorem","onprem","nvq2","nvp1","frp2","irp2"];new class{constructor(e=new Hd){this.onprem=e}resolveApiUrl(e){if(!this._baseServerUrl)throw new Error("base server url not initialized, did you remember to set environment config?");return`${this._baseServerUrl}/${e}`}setConfig(e){if(this.onprem.isOnpremMode)this._baseServerUrl=e,this._region="onprem";else{const t=/^https?:\/\/unisphere\.([a-z0-9]+)\.ovp\.kaltura\.com\/v1$/,r=null==e?void 0:e.match(t),n=(null==r?void 0:r[1])||null;if(!n)throw new Error(`cannot load workspace: unknown region mapped in serverUrl, expected format like "http(s)://unisphere.{region}.ovp.kaltura.com/v1", got "${e}"`);if(!this.isSupportedRegion(n))throw new Error(`cannot load workspace: region mapped in serverUrl is not supported, expected one of ${qd.join(", ")}, got "${n}"`);const o="https:"===window.location.protocol;this._baseServerUrl=`${o?"https":"http"}://unisphere.${n}.ovp.kaltura.com/v1`,this._region=n}}isOnpremMode(){return this.onprem.isOnpremMode}isSupportedRegion(e){return qd.includes(e)}getRegions(){return qd}getDefaultRegion(){return"nvp1"}getRegion(){if(!this._region)throw new Error("region not initialized, did you remember to set environment config?");return this._region}};var Vd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yd=function(e){return e&&e.Math===Math&&e},Kd=Yd("object"==typeof globalThis&&globalThis)||Yd("object"==typeof window&&window)||Yd("object"==typeof self&&self)||Yd("object"==typeof Vd&&Vd)||Yd("object"==typeof Vd&&Vd)||function(){return this}()||Function("return this")(),Qd={},Jd=function(e){try{return!!e()}catch(e){return!0}},Xd=!Jd(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Zd=!Jd(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),ev=Zd,tv=Function.prototype.call,rv=ev?tv.bind(tv):function(){return tv.apply(tv,arguments)},nv={},ov={}.propertyIsEnumerable,iv=Object.getOwnPropertyDescriptor,av=iv&&!ov.call({1:2},1);nv.f=av?function(e){var t=iv(this,e);return!!t&&t.enumerable}:ov;var uv,cv,sv=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lv=Zd,fv=Function.prototype,pv=fv.call,hv=lv&&fv.bind.bind(pv,pv),dv=lv?hv:function(e){return function(){return pv.apply(e,arguments)}},vv=dv,yv=vv({}.toString),gv=vv("".slice),mv=Jd,bv=Object,wv=dv("".split),Av=mv(function(){return!bv("z").propertyIsEnumerable(0)})?function(e){return"String"===function(e){return gv(yv(e),8,-1)}(e)?wv(e,""):bv(e)}:bv,Sv=function(e){return null==e},Ev=Sv,xv=TypeError,Ov=function(e){if(Ev(e))throw new xv("Can't call method on "+e);return e},Iv=Av,Pv=Ov,_v=function(e){return Iv(Pv(e))},kv="object"==typeof document&&document.all,Cv=void 0===kv&&void 0!==kv?function(e){return"function"==typeof e||e===kv}:function(e){return"function"==typeof e},Rv=Cv,jv=function(e){return"object"==typeof e?null!==e:Rv(e)},Tv=Kd,Nv=Cv,Lv=function(e,t){return arguments.length<2?(r=Tv[e],Nv(r)?r:void 0):Tv[e]&&Tv[e][t];var r},Mv=dv({}.isPrototypeOf),Uv=Kd.navigator,Bv=Uv&&Uv.userAgent,Dv=Kd,Fv=Bv?String(Bv):"",$v=Dv.process,zv=Dv.Deno,Gv=$v&&$v.versions||zv&&zv.version,Wv=Gv&&Gv.v8;Wv&&(cv=(uv=Wv.split("."))[0]>0&&uv[0]<4?1:+(uv[0]+uv[1])),!cv&&Fv&&(!(uv=Fv.match(/Edge\/(\d+)/))||uv[1]>=74)&&(uv=Fv.match(/Chrome\/(\d+)/))&&(cv=+uv[1]);var Hv=cv,qv=Jd,Vv=Kd.String,Yv=!!Object.getOwnPropertySymbols&&!qv(function(){var e=Symbol("symbol detection");return!Vv(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hv&&Hv<41}),Kv=Yv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qv=Lv,Jv=Cv,Xv=Mv,Zv=Object,ey=Kv?function(e){return"symbol"==typeof e}:function(e){var t=Qv("Symbol");return Jv(t)&&Xv(t.prototype,Zv(e))},ty=String,ry=Cv,ny=TypeError,oy=function(e){if(ry(e))return e;throw new ny(function(e){try{return ty(e)}catch(e){return"Object"}}(e)+" is not a function")},iy=Sv,ay=rv,uy=Cv,cy=jv,sy=TypeError,ly={exports:{}},fy=Kd,py=Object.defineProperty,hy=function(e,t){try{py(fy,e,{value:t,configurable:!0,writable:!0})}catch(r){fy[e]=t}return t},dy=Kd,vy=hy,yy="__core-js_shared__",gy=ly.exports=dy[yy]||vy(yy,{});(gy.versions||(gy.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var my,by=ly.exports,wy=by,Ay=function(e,t){return wy[e]||(wy[e]=t||{})},Sy=Ov,Ey=Object,xy=function(e){return Ey(Sy(e))},Oy=xy,Iy=dv({}.hasOwnProperty),Py=Object.hasOwn||function(e,t){return Iy(Oy(e),t)},_y=dv,ky=0,Cy=Math.random(),Ry=_y(1.1.toString),jy=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ry(++ky+Cy,36)},Ty=Ay,Ny=Py,Ly=jy,My=Yv,Uy=Kv,By=Kd.Symbol,Dy=Ty("wks"),Fy=Uy?By.for||By:By&&By.withoutSetter||Ly,$y=rv,zy=jv,Gy=ey,Wy=TypeError,Hy=(Ny(Dy,my="toPrimitive")||(Dy[my]=My&&Ny(By,my)?By[my]:Fy("Symbol."+my)),Dy[my]),qy=function(e,t){if(!zy(e)||Gy(e))return e;var r,n,o=(n=e[Hy],iy(n)?void 0:oy(n));if(o){if(void 0===t&&(t="default"),r=$y(o,e,t),!zy(r)||Gy(r))return r;throw new Wy("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&uy(r=e.toString)&&!cy(n=ay(r,e)))return n;if(uy(r=e.valueOf)&&!cy(n=ay(r,e)))return n;if("string"!==t&&uy(r=e.toString)&&!cy(n=ay(r,e)))return n;throw new sy("Can't convert object to primitive value")}(e,t)},Vy=ey,Yy=function(e){var t=qy(e,"string");return Vy(t)?t:t+""},Ky=jv,Qy=Kd.document,Jy=Ky(Qy)&&Ky(Qy.createElement),Xy=!Xd&&!Jd(function(){return 7!==Object.defineProperty((e="div",Jy?Qy.createElement(e):{}),"a",{get:function(){return 7}}).a;var e}),Zy=Xd,eg=rv,tg=nv,rg=sv,ng=_v,og=Yy,ig=Py,ag=Xy,ug=Object.getOwnPropertyDescriptor;Qd.f=Zy?ug:function(e,t){if(e=ng(e),t=og(t),ag)try{return ug(e,t)}catch(e){}if(ig(e,t))return rg(!eg(tg.f,e,t),e[t])};var cg={},sg=Xd&&Jd(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),lg=jv,fg=String,pg=TypeError,hg=function(e){if(lg(e))return e;throw new pg(fg(e)+" is not an object")},dg=Xd,vg=Xy,yg=sg,gg=hg,mg=Yy,bg=TypeError,wg=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Sg="enumerable",Eg="configurable",xg="writable";cg.f=dg?yg?function(e,t,r){if(gg(e),t=mg(t),gg(r),"function"==typeof e&&"prototype"===t&&"value"in r&&xg in r&&!r[xg]){var n=Ag(e,t);n&&n[xg]&&(e[t]=r.value,r={configurable:Eg in r?r[Eg]:n[Eg],enumerable:Sg in r?r[Sg]:n[Sg],writable:!1})}return wg(e,t,r)}:wg:function(e,t,r){if(gg(e),t=mg(t),gg(r),vg)try{return wg(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new bg("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Og=cg,Ig=sv,Pg=Xd?function(e,t,r){return Og.f(e,t,Ig(1,r))}:function(e,t,r){return e[t]=r,e},_g={exports:{}},kg=Xd,Cg=Py,Rg=Function.prototype,jg=kg&&Object.getOwnPropertyDescriptor,Tg={CONFIGURABLE:Cg(Rg,"name")&&(!kg||kg&&jg(Rg,"name").configurable)},Ng=Cv,Lg=by,Mg=dv(Function.toString);Ng(Lg.inspectSource)||(Lg.inspectSource=function(e){return Mg(e)});var Ug,Bg,Dg,Fg=Lg.inspectSource,$g=Cv,zg=Kd.WeakMap,Gg=$g(zg)&&/native code/.test(String(zg)),Wg=jy,Hg=Ay("keys"),qg={},Vg=Gg,Yg=Kd,Kg=Pg,Qg=Py,Jg=by,Xg=qg,Zg="Object already initialized",em=Yg.TypeError,tm=Yg.WeakMap;if(Vg||Jg.state){var rm=Jg.state||(Jg.state=new tm);rm.get=rm.get,rm.has=rm.has,rm.set=rm.set,Ug=function(e,t){if(rm.has(e))throw new em(Zg);return t.facade=e,rm.set(e,t),t},Bg=function(e){return rm.get(e)||{}},Dg=function(e){return rm.has(e)}}else{var nm=function(e){return Hg[e]||(Hg[e]=Wg(e))}("state");Xg[nm]=!0,Ug=function(e,t){if(Qg(e,nm))throw new em(Zg);return t.facade=e,Kg(e,nm,t),t},Bg=function(e){return Qg(e,nm)?e[nm]:{}},Dg=function(e){return Qg(e,nm)}}var om={get:Bg,enforce:function(e){return Dg(e)?Bg(e):Ug(e,{})}},im=dv,am=Jd,um=Cv,cm=Py,sm=Xd,lm=Tg.CONFIGURABLE,fm=Fg,pm=om.enforce,hm=om.get,dm=String,vm=Object.defineProperty,ym=im("".slice),gm=im("".replace),mm=im([].join),bm=sm&&!am(function(){return 8!==vm(function(){},"length",{value:8}).length}),wm=String(String).split("String"),Am=_g.exports=function(e,t,r){"Symbol("===ym(dm(t),0,7)&&(t="["+gm(dm(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!cm(e,"name")||lm&&e.name!==t)&&(sm?vm(e,"name",{value:t,configurable:!0}):e.name=t),bm&&r&&cm(r,"arity")&&e.length!==r.arity&&vm(e,"length",{value:r.arity});try{r&&cm(r,"constructor")&&r.constructor?sm&&vm(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=pm(e);return cm(n,"source")||(n.source=mm(wm,"string"==typeof t?t:"")),e};Function.prototype.toString=Am(function(){return um(this)&&hm(this).source||fm(this)},"toString");var Sm,Em=_g.exports,xm=Cv,Om=cg,Im=Em,Pm=hy,_m={},km=Math.ceil,Cm=Math.floor,Rm=Math.trunc||function(e){var t=+e;return(t>0?Cm:km)(t)},jm=function(e){var t=+e;return t!=t||0===t?0:Rm(t)},Tm=jm,Nm=Math.max,Lm=Math.min,Mm=jm,Um=Math.min,Bm=_v,Dm=function(e){return t=e.length,(r=Mm(t))>0?Um(r,9007199254740991):0;var t,r},Fm={indexOf:(Sm=!1,function(e,t,r){var n=Bm(e),o=Dm(n);if(0===o)return-1;var i=function(e,t){var r=Tm(e);return r<0?Nm(r+t,0):Lm(r,t)}(r,o);for(Sm;o>i;i++)if(i in n&&n[i]===t)return i||0;return-1})},$m=Py,zm=_v,Gm=Fm.indexOf,Wm=qg,Hm=dv([].push),qm=function(e,t){var r,n=zm(e),o=0,i=[];for(r in n)!$m(Wm,r)&&$m(n,r)&&Hm(i,r);for(;t.length>o;)$m(n,r=t[o++])&&(~Gm(i,r)||Hm(i,r));return i},Vm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ym=qm,Km=Vm.concat("length","prototype");_m.f=Object.getOwnPropertyNames||function(e){return Ym(e,Km)};var Qm={};Qm.f=Object.getOwnPropertySymbols;var Jm=Lv,Xm=_m,Zm=Qm,eb=hg,tb=dv([].concat),rb=Jm("Reflect","ownKeys")||function(e){var t=Xm.f(eb(e)),r=Zm.f;return r?tb(t,r(e)):t},nb=Py,ob=rb,ib=Qd,ab=cg,ub=Jd,cb=Cv,sb=/#|\.prototype\./,lb=function(e,t){var r=pb[fb(e)];return r===db||r!==hb&&(cb(t)?ub(t):!!t)},fb=lb.normalize=function(e){return String(e).replace(sb,".").toLowerCase()},pb=lb.data={},hb=lb.NATIVE="N",db=lb.POLYFILL="P",vb=lb,yb=Kd,gb=Qd.f,mb=Pg,bb=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(xm(r)&&Im(r,i,n),n.global)o?e[t]=r:Pm(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Om.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},wb=hy,Ab=function(e,t,r){for(var n=ob(t),o=ab.f,i=ib.f,a=0;a<n.length;a++){var u=n[a];nb(e,u)||r&&nb(r,u)||o(e,u,i(t,u))}},Sb=vb,Eb=qm,xb=Vm,Ob=Object.keys||function(e){return Eb(e,xb)},Ib=Xd,Pb=dv,_b=rv,kb=Jd,Cb=Ob,Rb=Qm,jb=nv,Tb=xy,Nb=Av,Lb=Object.assign,Mb=Object.defineProperty,Ub=Pb([].concat),Bb=!Lb||kb(function(){if(Ib&&1!==Lb({b:1},Lb(Mb({},"a",{enumerable:!0,get:function(){Mb(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Lb({},e)[r]||Cb(Lb({},t)).join("")!==n})?function(e,t){for(var r=Tb(e),n=arguments.length,o=1,i=Rb.f,a=jb.f;n>o;)for(var u,c=Nb(arguments[o++]),s=i?Ub(Cb(c),i(c)):Cb(c),l=s.length,f=0;l>f;)u=s[f++],Ib&&!_b(a,c,u)||(r[u]=c[u]);return r}:Lb,Db=Bb;!function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?yb:s?yb[u]||wb(u,{}):yb[u]&&yb[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=gb(r,n))&&a.value:r[n],!Sb(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ab(i,o)}(e.sham||o&&o.sham)&&mb(i,"sham",!0),bb(r,n,i,e)}}({target:"Object",stat:!0,arity:2,forced:Object.assign!==Db},{assign:Db});Object.assign(Object.assign({},vf),{optional:!1});Object.assign(Object.assign({},vf),{optional:!0});var Fb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$b=function(e){return e&&e.Math===Math&&e},zb=$b("object"==typeof globalThis&&globalThis)||$b("object"==typeof window&&window)||$b("object"==typeof self&&self)||$b("object"==typeof Fb&&Fb)||$b("object"==typeof Fb&&Fb)||function(){return this}()||Function("return this")(),Gb={},Wb=function(e){try{return!!e()}catch(e){return!0}},Hb=!Wb(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),qb=!Wb(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Vb=qb,Yb=Function.prototype.call,Kb=Vb?Yb.bind(Yb):function(){return Yb.apply(Yb,arguments)},Qb={},Jb={}.propertyIsEnumerable,Xb=Object.getOwnPropertyDescriptor,Zb=Xb&&!Jb.call({1:2},1);Qb.f=Zb?function(e){var t=Xb(this,e);return!!t&&t.enumerable}:Jb;var ew,tw,rw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nw=qb,ow=Function.prototype,iw=ow.call,aw=nw&&ow.bind.bind(iw,iw),uw=nw?aw:function(e){return function(){return iw.apply(e,arguments)}},cw=uw,sw=cw({}.toString),lw=cw("".slice),fw=function(e){return lw(sw(e),8,-1)},pw=Wb,hw=fw,dw=Object,vw=uw("".split),yw=pw(function(){return!dw("z").propertyIsEnumerable(0)})?function(e){return"String"===hw(e)?vw(e,""):dw(e)}:dw,gw=function(e){return null==e},mw=gw,bw=TypeError,ww=function(e){if(mw(e))throw new bw("Can't call method on "+e);return e},Aw=yw,Sw=ww,Ew=function(e){return Aw(Sw(e))},xw="object"==typeof document&&document.all,Ow=void 0===xw&&void 0!==xw?function(e){return"function"==typeof e||e===xw}:function(e){return"function"==typeof e},Iw=Ow,Pw=function(e){return"object"==typeof e?null!==e:Iw(e)},_w=zb,kw=Ow,Cw=function(e,t){return arguments.length<2?(r=_w[e],kw(r)?r:void 0):_w[e]&&_w[e][t];var r},Rw=uw({}.isPrototypeOf),jw=zb.navigator,Tw=jw&&jw.userAgent,Nw=Tw?String(Tw):"",Lw=zb,Mw=Nw,Uw=Lw.process,Bw=Lw.Deno,Dw=Uw&&Uw.versions||Bw&&Bw.version,Fw=Dw&&Dw.v8;Fw&&(tw=(ew=Fw.split("."))[0]>0&&ew[0]<4?1:+(ew[0]+ew[1])),!tw&&Mw&&(!(ew=Mw.match(/Edge\/(\d+)/))||ew[1]>=74)&&(ew=Mw.match(/Chrome\/(\d+)/))&&(tw=+ew[1]);var $w=tw,zw=$w,Gw=Wb,Ww=zb.String,Hw=!!Object.getOwnPropertySymbols&&!Gw(function(){var e=Symbol("symbol detection");return!Ww(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zw&&zw<41}),qw=Hw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vw=Cw,Yw=Ow,Kw=Rw,Qw=Object,Jw=qw?function(e){return"symbol"==typeof e}:function(e){var t=Vw("Symbol");return Yw(t)&&Kw(t.prototype,Qw(e))},Xw=String,Zw=function(e){try{return Xw(e)}catch(e){return"Object"}},eA=Ow,tA=Zw,rA=TypeError,nA=function(e){if(eA(e))return e;throw new rA(tA(e)+" is not a function")},oA=nA,iA=gw,aA=function(e,t){var r=e[t];return iA(r)?void 0:oA(r)},uA=Kb,cA=Ow,sA=Pw,lA=TypeError,fA={exports:{}},pA=zb,hA=Object.defineProperty,dA=function(e,t){try{hA(pA,e,{value:t,configurable:!0,writable:!0})}catch(r){pA[e]=t}return t},vA=zb,yA=dA,gA="__core-js_shared__",mA=fA.exports=vA[gA]||yA(gA,{});(mA.versions||(mA.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var bA=fA.exports,wA=bA,AA=function(e,t){return wA[e]||(wA[e]=t||{})},SA=ww,EA=Object,xA=function(e){return EA(SA(e))},OA=xA,IA=uw({}.hasOwnProperty),PA=Object.hasOwn||function(e,t){return IA(OA(e),t)},_A=uw,kA=0,CA=Math.random(),RA=_A(1.1.toString),jA=function(e){return"Symbol("+(void 0===e?"":e)+")_"+RA(++kA+CA,36)},TA=AA,NA=PA,LA=jA,MA=Hw,UA=qw,BA=zb.Symbol,DA=TA("wks"),FA=UA?BA.for||BA:BA&&BA.withoutSetter||LA,$A=function(e){return NA(DA,e)||(DA[e]=MA&&NA(BA,e)?BA[e]:FA("Symbol."+e)),DA[e]},zA=Kb,GA=Pw,WA=Jw,HA=aA,qA=TypeError,VA=$A("toPrimitive"),YA=function(e,t){if(!GA(e)||WA(e))return e;var r,n=HA(e,VA);if(n){if(void 0===t&&(t="default"),r=zA(n,e,t),!GA(r)||WA(r))return r;throw new qA("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&cA(r=e.toString)&&!sA(n=uA(r,e)))return n;if(cA(r=e.valueOf)&&!sA(n=uA(r,e)))return n;if("string"!==t&&cA(r=e.toString)&&!sA(n=uA(r,e)))return n;throw new lA("Can't convert object to primitive value")}(e,t)},KA=Jw,QA=function(e){var t=YA(e,"string");return KA(t)?t:t+""},JA=Pw,XA=zb.document,ZA=JA(XA)&&JA(XA.createElement),eS=function(e){return ZA?XA.createElement(e):{}},tS=eS,rS=!Hb&&!Wb(function(){return 7!==Object.defineProperty(tS("div"),"a",{get:function(){return 7}}).a}),nS=Hb,oS=Kb,iS=Qb,aS=rw,uS=Ew,cS=QA,sS=PA,lS=rS,fS=Object.getOwnPropertyDescriptor;Gb.f=nS?fS:function(e,t){if(e=uS(e),t=cS(t),lS)try{return fS(e,t)}catch(e){}if(sS(e,t))return aS(!oS(iS.f,e,t),e[t])};var pS={},hS=Hb&&Wb(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),dS=Pw,vS=String,yS=TypeError,gS=function(e){if(dS(e))return e;throw new yS(vS(e)+" is not an object")},mS=Hb,bS=rS,wS=hS,AS=gS,SS=QA,ES=TypeError,xS=Object.defineProperty,OS=Object.getOwnPropertyDescriptor,IS="enumerable",PS="configurable",_S="writable";pS.f=mS?wS?function(e,t,r){if(AS(e),t=SS(t),AS(r),"function"==typeof e&&"prototype"===t&&"value"in r&&_S in r&&!r[_S]){var n=OS(e,t);n&&n[_S]&&(e[t]=r.value,r={configurable:PS in r?r[PS]:n[PS],enumerable:IS in r?r[IS]:n[IS],writable:!1})}return xS(e,t,r)}:xS:function(e,t,r){if(AS(e),t=SS(t),AS(r),bS)try{return xS(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new ES("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var kS=pS,CS=rw,RS=Hb?function(e,t,r){return kS.f(e,t,CS(1,r))}:function(e,t,r){return e[t]=r,e},jS={exports:{}},TS=Hb,NS=PA,LS=Function.prototype,MS=TS&&Object.getOwnPropertyDescriptor,US=NS(LS,"name"),BS={PROPER:US&&"something"===function(){}.name,CONFIGURABLE:US&&(!TS||TS&&MS(LS,"name").configurable)},DS=Ow,FS=bA,$S=uw(Function.toString);DS(FS.inspectSource)||(FS.inspectSource=function(e){return $S(e)});var zS,GS,WS,HS=FS.inspectSource,qS=Ow,VS=zb.WeakMap,YS=qS(VS)&&/native code/.test(String(VS)),KS=jA,QS=AA("keys"),JS=function(e){return QS[e]||(QS[e]=KS(e))},XS={},ZS=YS,eE=zb,tE=Pw,rE=RS,nE=PA,oE=bA,iE=JS,aE=XS,uE="Object already initialized",cE=eE.TypeError,sE=eE.WeakMap;if(ZS||oE.state){var lE=oE.state||(oE.state=new sE);lE.get=lE.get,lE.has=lE.has,lE.set=lE.set,zS=function(e,t){if(lE.has(e))throw new cE(uE);return t.facade=e,lE.set(e,t),t},GS=function(e){return lE.get(e)||{}},WS=function(e){return lE.has(e)}}else{var fE=iE("state");aE[fE]=!0,zS=function(e,t){if(nE(e,fE))throw new cE(uE);return t.facade=e,rE(e,fE,t),t},GS=function(e){return nE(e,fE)?e[fE]:{}},WS=function(e){return nE(e,fE)}}var pE={set:zS,get:GS,has:WS,enforce:function(e){return WS(e)?GS(e):zS(e,{})},getterFor:function(e){return function(t){var r;if(!tE(t)||(r=GS(t)).type!==e)throw new cE("Incompatible receiver, "+e+" required");return r}}},hE=uw,dE=Wb,vE=Ow,yE=PA,gE=Hb,mE=BS.CONFIGURABLE,bE=HS,wE=pE.enforce,AE=pE.get,SE=String,EE=Object.defineProperty,xE=hE("".slice),OE=hE("".replace),IE=hE([].join),PE=gE&&!dE(function(){return 8!==EE(function(){},"length",{value:8}).length}),_E=String(String).split("String"),kE=jS.exports=function(e,t,r){"Symbol("===xE(SE(t),0,7)&&(t="["+OE(SE(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!yE(e,"name")||mE&&e.name!==t)&&(gE?EE(e,"name",{value:t,configurable:!0}):e.name=t),PE&&r&&yE(r,"arity")&&e.length!==r.arity&&EE(e,"length",{value:r.arity});try{r&&yE(r,"constructor")&&r.constructor?gE&&EE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=wE(e);return yE(n,"source")||(n.source=IE(_E,"string"==typeof t?t:"")),e};Function.prototype.toString=kE(function(){return vE(this)&&AE(this).source||bE(this)},"toString");var CE=jS.exports,RE=Ow,jE=pS,TE=CE,NE=dA,LE=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(RE(r)&&TE(r,i,n),n.global)o?e[t]=r:NE(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:jE.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},ME={},UE=Math.ceil,BE=Math.floor,DE=Math.trunc||function(e){var t=+e;return(t>0?BE:UE)(t)},FE=function(e){var t=+e;return t!=t||0===t?0:DE(t)},$E=FE,zE=Math.max,GE=Math.min,WE=function(e,t){var r=$E(e);return r<0?zE(r+t,0):GE(r,t)},HE=FE,qE=Math.min,VE=function(e){var t=HE(e);return t>0?qE(t,9007199254740991):0},YE=VE,KE=function(e){return YE(e.length)},QE=Ew,JE=WE,XE=KE,ZE=function(e){return function(t,r,n){var o=QE(t),i=XE(o);if(0===i)return!e&&-1;var a,u=JE(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ex={includes:ZE(!0),indexOf:ZE(!1)},tx=PA,rx=Ew,nx=ex.indexOf,ox=XS,ix=uw([].push),ax=function(e,t){var r,n=rx(e),o=0,i=[];for(r in n)!tx(ox,r)&&tx(n,r)&&ix(i,r);for(;t.length>o;)tx(n,r=t[o++])&&(~nx(i,r)||ix(i,r));return i},ux=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cx=ax,sx=ux.concat("length","prototype");ME.f=Object.getOwnPropertyNames||function(e){return cx(e,sx)};var lx={};lx.f=Object.getOwnPropertySymbols;var fx=Cw,px=ME,hx=lx,dx=gS,vx=uw([].concat),yx=fx("Reflect","ownKeys")||function(e){var t=px.f(dx(e)),r=hx.f;return r?vx(t,r(e)):t},gx=PA,mx=yx,bx=Gb,wx=pS,Ax=function(e,t,r){for(var n=mx(t),o=wx.f,i=bx.f,a=0;a<n.length;a++){var u=n[a];gx(e,u)||r&&gx(r,u)||o(e,u,i(t,u))}},Sx=Wb,Ex=Ow,xx=/#|\.prototype\./,Ox=function(e,t){var r=Px[Ix(e)];return r===kx||r!==_x&&(Ex(t)?Sx(t):!!t)},Ix=Ox.normalize=function(e){return String(e).replace(xx,".").toLowerCase()},Px=Ox.data={},_x=Ox.NATIVE="N",kx=Ox.POLYFILL="P",Cx=Ox,Rx=zb,jx=Gb.f,Tx=RS,Nx=LE,Lx=dA,Mx=Ax,Ux=Cx,Bx=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?Rx:s?Rx[u]||Lx(u,{}):Rx[u]&&Rx[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=jx(r,n))&&a.value:r[n],!Ux(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Mx(i,o)}(e.sham||o&&o.sham)&&Tx(i,"sham",!0),Nx(r,n,i,e)}},Dx=qb,Fx=Function.prototype,$x=Fx.apply,zx=Fx.call,Gx="object"==typeof Reflect&&Reflect.apply||(Dx?zx.bind($x):function(){return zx.apply($x,arguments)}),Wx=uw,Hx=nA,qx=Pw,Vx=String,Yx=TypeError,Kx=Pw,Qx=ww,Jx=function(e){if(function(e){return qx(e)||null===e}(e))return e;throw new Yx("Can't set "+Vx(e)+" as a prototype")},Xx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=function(e,t,r){try{return Wx(Hx(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Qx(r),Jx(n),Kx(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Zx=pS.f,eO=Ow,tO=Pw,rO=Xx,nO=function(e,t,r){var n,o;return rO&&eO(n=t.constructor)&&n!==r&&tO(o=n.prototype)&&o!==r.prototype&&rO(e,o),e},oO={};oO[$A("toStringTag")]="z";var iO="[object z]"===String(oO),aO=Ow,uO=fw,cO=$A("toStringTag"),sO=Object,lO="Arguments"===uO(function(){return arguments}()),fO=iO?uO: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=sO(e),cO))?r:lO?uO(t):"Object"===(n=uO(t))&&aO(t.callee)?"Arguments":n},pO=fO,hO=String,dO=function(e){if("Symbol"===pO(e))throw new TypeError("Cannot convert a Symbol value to a string");return hO(e)},vO=dO,yO=function(e,t){return void 0===e?arguments.length<2?"":t:vO(e)},gO=Pw,mO=RS,bO=Error,wO=uw("".replace),AO=String(new bO("zxcasd").stack),SO=/\n\s*at [^:]*:[^\n]*/,EO=SO.test(AO),xO=function(e,t){if(EO&&"string"==typeof e&&!bO.prepareStackTrace)for(;t--;)e=wO(e,SO,"");return e},OO=rw,IO=!Wb(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",OO(1,7)),7!==e.stack)}),PO=RS,_O=xO,kO=IO,CO=Error.captureStackTrace,RO=Cw,jO=PA,TO=RS,NO=Rw,LO=Xx,MO=Ax,UO=function(e,t,r){r in e||Zx(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},BO=nO,DO=yO,FO=Hb,$O=Bx,zO=Gx,GO=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=RO.apply(null,a);if(c){var s=c.prototype;if(jO(s,"cause")&&delete s.cause,!r)return c;var l=RO("Error"),f=t(function(e,t){var r,o,a,u,l=DO(n?t:e,void 0),p=n?new c(e):new c;return void 0!==l&&TO(p,"message",l),r=p,o=f,a=p.stack,u=2,kO&&(CO?CO(r,o):PO(r,"stack",_O(a,u))),this&&NO(s,this)&&BO(p,this,f),arguments.length>i&&function(e,t){gO(t)&&"cause"in t&&mO(e,"cause",t.cause)}(p,arguments[i]),p});f.prototype=s,"Error"!==u?LO?LO(f,l):MO(f,l,{name:!0}):FO&&o in c&&(UO(f,c,o),UO(f,c,"prepareStackTrace")),MO(f,c);try{s.name!==u&&TO(s,"name",u),s.constructor=f}catch(e){}return f}},WO="WebAssembly",HO=zb[WO],qO=7!==new Error("e",{cause:7}).cause,VO=function(e,t){var r={};r[e]=GO(e,t,qO),$O({global:!0,constructor:!0,arity:1,forced:qO},r)},YO=function(e,t){if(HO&&HO[e]){var r={};r[e]=GO(WO+"."+e,t,qO),$O({target:WO,stat:!0,constructor:!0,arity:1,forced:qO},r)}};VO("Error",function(e){return function(t){return zO(e,this,arguments)}}),VO("EvalError",function(e){return function(t){return zO(e,this,arguments)}}),VO("RangeError",function(e){return function(t){return zO(e,this,arguments)}}),VO("ReferenceError",function(e){return function(t){return zO(e,this,arguments)}}),VO("SyntaxError",function(e){return function(t){return zO(e,this,arguments)}}),VO("TypeError",function(e){return function(t){return zO(e,this,arguments)}}),VO("URIError",function(e){return function(t){return zO(e,this,arguments)}}),YO("CompileError",function(e){return function(t){return zO(e,this,arguments)}}),YO("LinkError",function(e){return function(t){return zO(e,this,arguments)}}),YO("RuntimeError",function(e){return function(t){return zO(e,this,arguments)}});var KO={},QO=ax,JO=ux,XO=Object.keys||function(e){return QO(e,JO)},ZO=Hb,eI=hS,tI=pS,rI=gS,nI=Ew,oI=XO;KO.f=ZO&&!eI?Object.defineProperties:function(e,t){rI(e);for(var r,n=nI(t),o=oI(t),i=o.length,a=0;i>a;)tI.f(e,r=o[a++],n[r]);return e};var iI,aI=Cw("document","documentElement"),uI=gS,cI=KO,sI=ux,lI=XS,fI=aI,pI=eS,hI="prototype",dI="script",vI=JS("IE_PROTO"),yI=function(){},gI=function(e){return"<"+dI+">"+e+"</"+dI+">"},mI=function(e){e.write(gI("")),e.close();var t=e.parentWindow.Object;return e=null,t},bI=function(){try{iI=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;bI="undefined"!=typeof document?document.domain&&iI?mI(iI):(t=pI("iframe"),r="java"+dI+":",t.style.display="none",fI.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(gI("document.F=Object")),e.close(),e.F):mI(iI);for(var n=sI.length;n--;)delete bI[hI][sI[n]];return bI()};lI[vI]=!0;var wI=Object.create||function(e,t){var r;return null!==e?(yI[hI]=uI(e),r=new yI,yI[hI]=null,r[vI]=e):r=bI(),void 0===t?r:cI.f(r,t)},AI=$A,SI=wI,EI=pS.f,xI=AI("unscopables"),OI=Array.prototype;void 0===OI[xI]&&EI(OI,xI,{configurable:!0,value:SI(null)});var II,PI,_I,kI=function(e){OI[xI][e]=!0},CI={},RI=!Wb(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jI=PA,TI=Ow,NI=xA,LI=RI,MI=JS("IE_PROTO"),UI=Object,BI=UI.prototype,DI=LI?UI.getPrototypeOf:function(e){var t=NI(e);if(jI(t,MI))return t[MI];var r=t.constructor;return TI(r)&&t instanceof r?r.prototype:t instanceof UI?BI:null},FI=Wb,$I=Ow,zI=Pw,GI=DI,WI=LE,HI=$A("iterator"),qI=!1;[].keys&&("next"in(_I=[].keys())?(PI=GI(GI(_I)))!==Object.prototype&&(II=PI):qI=!0);var VI=!zI(II)||FI(function(){var e={};return II[HI].call(e)!==e});VI&&(II={}),$I(II[HI])||WI(II,HI,function(){return this});var YI={IteratorPrototype:II,BUGGY_SAFARI_ITERATORS:qI},KI=pS.f,QI=PA,JI=$A("toStringTag"),XI=function(e,t,r){e&&!r&&(e=e.prototype),e&&!QI(e,JI)&&KI(e,JI,{configurable:!0,value:t})},ZI=YI.IteratorPrototype,eP=wI,tP=rw,rP=XI,nP=CI,oP=function(){return this},iP=function(e,t,r,n){var o=t+" Iterator";return e.prototype=eP(ZI,{next:tP(+!n,r)}),rP(e,o,!1),nP[o]=oP,e},aP=Bx,uP=Kb,cP=Ow,sP=iP,lP=DI,fP=Xx,pP=XI,hP=RS,dP=LE,vP=CI,yP=BS.PROPER,gP=BS.CONFIGURABLE,mP=YI.IteratorPrototype,bP=YI.BUGGY_SAFARI_ITERATORS,wP=$A("iterator"),AP="keys",SP="values",EP="entries",xP=function(){return this},OP=function(e,t,r,n,o,i,a){sP(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!bP&&e&&e in h)return h[e];switch(e){case AP:case SP:case EP:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[wP]||h["@@iterator"]||o&&h[o],v=!bP&&d||l(o),y="Array"===t&&h.entries||d;if(y&&(u=lP(y.call(new e)))!==Object.prototype&&u.next&&(lP(u)!==mP&&(fP?fP(u,mP):cP(u[wP])||dP(u,wP,xP)),pP(u,f,!0)),yP&&o===SP&&d&&d.name!==SP&&(gP?hP(h,"name",SP):(p=!0,v=function(){return uP(d,this)})),o)if(c={values:l(SP),keys:i?v:l(AP),entries:l(EP)},a)for(s in c)(bP||p||!(s in h))&&dP(h,s,c[s]);else aP({target:t,proto:!0,forced:bP||p},c);return h[wP]!==v&&dP(h,wP,v,{name:o}),vP[t]=v,c},IP=function(e,t){return{value:e,done:t}},PP=Ew,_P=kI,kP=CI,CP=pE,RP=pS.f,jP=OP,TP=IP,NP=Hb,LP="Array Iterator",MP=CP.set,UP=CP.getterFor(LP),BP=jP(Array,"Array",function(e,t){MP(this,{type:LP,target:PP(e),index:0,kind:t})},function(){var e=UP(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,TP(void 0,!0);switch(e.kind){case"keys":return TP(r,!1);case"values":return TP(t[r],!1)}return TP([r,t[r]],!1)},"values"),DP=kP.Arguments=kP.Array;if(_P("keys"),_P("values"),_P("entries"),NP&&"values"!==DP.name)try{RP(DP,"name",{value:"values"})}catch(e){}var FP=fw,$P=Hb,zP=Array.isArray||function(e){return"Array"===FP(e)},GP=TypeError,WP=Object.getOwnPropertyDescriptor,HP=$P&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),qP=TypeError,VP=xA,YP=KE,KP=HP?function(e,t){if(zP(e)&&!WP(e,"length").writable)throw new GP("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};Bx({target:"Array",proto:!0,arity:1,forced:Wb(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=VP(this),r=YP(t),n=arguments.length;!function(e){if(e>9007199254740991)throw qP("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return KP(t,r),r}});var QP=Rw,JP=TypeError,XP=function(e,t){if(QP(t,e))return e;throw new JP("Incorrect invocation")},ZP=CE,e_=pS,t_=function(e,t,r){return r.get&&ZP(r.get,t,{getter:!0}),r.set&&ZP(r.set,t,{setter:!0}),e_.f(e,t,r)},r_=Hb,n_=pS,o_=rw,i_=function(e,t,r){r_?n_.f(e,t,o_(0,r)):e[t]=r},a_=Bx,u_=zb,c_=XP,s_=gS,l_=Ow,f_=DI,p_=t_,h_=i_,d_=Wb,v_=PA,y_=YI.IteratorPrototype,g_=Hb,m_="constructor",b_="Iterator",w_=$A("toStringTag"),A_=TypeError,S_=u_[b_],E_=!l_(S_)||S_.prototype!==y_||!d_(function(){S_({})}),x_=function(){if(c_(this,y_),f_(this)===y_)throw new A_("Abstract class Iterator not directly constructable")},O_=function(e,t){g_?p_(y_,e,{configurable:!0,get:function(){return t},set:function(t){if(s_(this),this===y_)throw new A_("You can't redefine this property");v_(this,e)?this[e]=t:h_(this,e,t)}}):y_[e]=t};v_(y_,w_)||O_(w_,b_),!E_&&v_(y_,m_)&&y_[m_]!==Object||O_(m_,x_),x_.prototype=y_,a_({global:!0,constructor:!0,forced:E_},{Iterator:x_});var I_=function(e){return{iterator:e,next:e.next,done:!1}},P_=LE,__=function(e,t,r){for(var n in t)P_(e,n,t[n],r);return e},k_=Kb,C_=gS,R_=aA,j_=function(e,t,r){var n,o;C_(e);try{if(!(n=R_(e,"return"))){if("throw"===t)throw r;return r}n=k_(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return C_(n),r},T_=j_,N_=Kb,L_=wI,M_=RS,U_=__,B_=pE,D_=aA,F_=YI.IteratorPrototype,$_=IP,z_=j_,G_=$A("toStringTag"),W_="IteratorHelper",H_="WrapForValidIterator",q_="normal",V_="throw",Y_=B_.set,K_=function(e){var t=B_.getterFor(e?H_:W_);return U_(L_(F_),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return $_(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:$_(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=D_(n,"return");return o?N_(o,n):$_(void 0,!0)}if(r.inner)try{z_(r.inner.iterator,q_)}catch(e){return z_(n,V_,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=T_(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,q_)}catch(e){return z_(n,V_,e)}return n&&z_(n,q_),$_(void 0,!0)}})},Q_=K_(!0),J_=K_(!1);M_(J_,G_,"Iterator Helper");var X_=gS,Z_=j_,ek=function(e,t,r,n){try{return n?t(X_(r)[0],r[1]):t(r)}catch(t){Z_(e,"throw",t)}},tk=zb,rk=function(e,t){var r=tk.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},nk=Bx,ok=Kb,ik=nA,ak=gS,uk=I_,ck=ek,sk=j_,lk=rk,fk=!function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}("filter",function(){}),pk=!fk&&lk("filter",TypeError),hk=fk||pk,dk=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?H_:W_,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,Y_(this,o)};return n.prototype=t?Q_:J_,n}(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=ak(ok(o,r)),this.done=!!e.done)return;if(t=e.value,ck(r,n,[t,this.counter++],!0))return t}});nk({target:"Iterator",proto:!0,real:!0,forced:hk},{filter:function(e){ak(this);try{ik(e)}catch(e){sk(this,"throw",e)}return pk?ok(pk,this,e):new dk(uk(this),{predicate:e})}});var vk=fw,yk=uw,gk=function(e){if("Function"===vk(e))return yk(e)},mk=nA,bk=qb,wk=gk(gk.bind),Ak=function(e,t){return mk(e),void 0===t?e:bk?wk(e,t):function(){return e.apply(t,arguments)}},Sk=CI,Ek=$A("iterator"),xk=Array.prototype,Ok=function(e){return void 0!==e&&(Sk.Array===e||xk[Ek]===e)},Ik=fO,Pk=aA,_k=gw,kk=CI,Ck=$A("iterator"),Rk=function(e){if(!_k(e))return Pk(e,Ck)||Pk(e,"@@iterator")||kk[Ik(e)]},jk=Kb,Tk=nA,Nk=gS,Lk=Zw,Mk=Rk,Uk=TypeError,Bk=function(e,t){var r=arguments.length<2?Mk(e):t;if(Tk(r))return Nk(jk(r,e));throw new Uk(Lk(e)+" is not iterable")},Dk=Ak,Fk=Kb,$k=gS,zk=Zw,Gk=Ok,Wk=KE,Hk=Rw,qk=Bk,Vk=Rk,Yk=j_,Kk=TypeError,Qk=function(e,t){this.stopped=e,this.result=t},Jk=Qk.prototype,Xk=function(e,t,r){var n,o,i,a,u,c,s,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Dk(t,l),y=function(e){return n&&Yk(n,"normal"),new Qk(!0,e)},g=function(e){return f?($k(e),d?v(e[0],e[1],y):v(e[0],e[1])):d?v(e,y):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=Vk(e)))throw new Kk(zk(e)+" is not iterable");if(Gk(o)){for(i=0,a=Wk(e);a>i;i++)if((u=g(e[i]))&&Hk(Jk,u))return u;return new Qk(!1)}n=qk(e,o)}for(c=p?e.next:n.next;!(s=Fk(c,n)).done;){try{u=g(s.value)}catch(e){Yk(n,"throw",e)}if("object"==typeof u&&u&&Hk(Jk,u))return u}return new Qk(!1)},Zk=Bx,eC=Kb,tC=Xk,rC=nA,nC=gS,oC=I_,iC=j_,aC=rk("find",TypeError);Zk({target:"Iterator",proto:!0,real:!0,forced:aC},{find:function(e){nC(this);try{rC(e)}catch(e){iC(this,"throw",e)}if(aC)return eC(aC,this,e);var t=oC(this),r=0;return tC(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var uC=Bx,cC=Kb,sC=Xk,lC=nA,fC=gS,pC=I_,hC=j_,dC=rk("forEach",TypeError);uC({target:"Iterator",proto:!0,real:!0,forced:dC},{forEach:function(e){fC(this);try{lC(e)}catch(e){hC(this,"throw",e)}if(dC)return cC(dC,this,e);var t=pC(this),r=0;sC(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var vC=Hb,yC=uw,gC=Kb,mC=Wb,bC=XO,wC=lx,AC=Qb,SC=xA,EC=yw,xC=Object.assign,OC=Object.defineProperty,IC=yC([].concat),PC=!xC||mC(function(){if(vC&&1!==xC({b:1},xC(OC({},"a",{enumerable:!0,get:function(){OC(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==xC({},e)[r]||bC(xC({},t)).join("")!==n})?function(e,t){for(var r=SC(e),n=arguments.length,o=1,i=wC.f,a=AC.f;n>o;)for(var u,c=EC(arguments[o++]),s=i?IC(bC(c),i(c)):bC(c),l=s.length,f=0;l>f;)u=s[f++],vC&&!gC(a,c,u)||(r[u]=c[u]);return r}:xC,_C=PC;Bx({target:"Object",stat:!0,arity:2,forced:Object.assign!==_C},{assign:_C});var kC=eS("span").classList,CC=kC&&kC.constructor&&kC.constructor.prototype,RC=CC===Object.prototype?void 0:CC,jC=zb,TC={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},NC=RC,LC=BP,MC=RS,UC=XI,BC=$A("iterator"),DC=LC.values,FC=function(e,t){if(e){if(e[BC]!==DC)try{MC(e,BC,DC)}catch(t){e[BC]=DC}if(UC(e,t,!0),TC[t])for(var r in LC)if(e[r]!==LC[r])try{MC(e,r,LC[r])}catch(t){e[r]=LC[r]}}};for(var $C in TC)FC(jC[$C]&&jC[$C].prototype,$C);FC(NC,"DOMTokenList");var zC=gS,GC=function(){var e=zC(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},WC=Wb,HC=zb.RegExp,qC=WC(function(){var e=HC("a","y");return e.lastIndex=2,null!==e.exec("abcd")});qC||WC(function(){return!HC("a","y").sticky});var VC=qC||WC(function(){var e=HC("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),YC={BROKEN_CARET:VC},KC=Wb,QC=zb.RegExp,JC=KC(function(){var e=QC(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),XC=Wb,ZC=zb.RegExp,eR=XC(function(){var e=ZC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),tR=Kb,rR=uw,nR=dO,oR=GC,iR=YC,aR=wI,uR=pE.get,cR=JC,sR=eR,lR=AA("native-string-replace",String.prototype.replace),fR=RegExp.prototype.exec,pR=fR,hR=rR("".charAt),dR=rR("".indexOf),vR=rR("".replace),yR=rR("".slice),gR=function(){var e=/a/,t=/b*/g;return tR(fR,e,"a"),tR(fR,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),mR=iR.BROKEN_CARET,bR=void 0!==/()??/.exec("")[1];(gR||bR||mR||cR||sR)&&(pR=function(e){var t,r,n,o,i,a,u,c=this,s=uR(c),l=nR(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=tR(pR,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=mR&&c.sticky,d=tR(oR,c),v=c.source,y=0,g=l;if(h&&(d=vR(d,"y",""),-1===dR(d,"g")&&(d+="g"),g=yR(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==hR(l,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),bR&&(r=new RegExp("^"+v+"$(?!\\s)",d)),gR&&(n=c.lastIndex),o=tR(fR,h?r:c,g),h?o?(o.input=yR(o.input,y),o[0]=yR(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:gR&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),bR&&o&&o.length>1&&tR(lR,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=aR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var wR=pR;Bx({target:"RegExp",proto:!0,forced:/./.exec!==wR},{exec:wR});var AR=Kb,SR=LE,ER=wR,xR=Wb,OR=$A,IR=RS,PR=OR("species"),_R=RegExp.prototype,kR=function(e,t,r,n){var o=OR(e),i=!xR(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!xR(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[PR]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===ER||a===_R.exec?i&&!o?{done:!0,value:AR(u,t,r,n)}:{done:!0,value:AR(e,r,t,n)}:{done:!1}});SR(String.prototype,e,c[0]),SR(_R,o,c[1])}n&&IR(_R[o],"sham",!0)},CR=uw,RR=FE,jR=dO,TR=ww,NR=CR("".charAt),LR=CR("".charCodeAt),MR=CR("".slice),UR=function(e){return function(t,r){var n,o,i=jR(TR(t)),a=RR(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=LR(i,a))<55296||n>56319||a+1===u||(o=LR(i,a+1))<56320||o>57343?e?NR(i,a):n:e?MR(i,a,a+2):o-56320+(n-55296<<10)+65536}},BR={codeAt:UR(!1),charAt:UR(!0)},DR=BR.charAt,FR=uw,$R=xA,zR=Math.floor,GR=FR("".charAt),WR=FR("".replace),HR=FR("".slice),qR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,VR=/\$([$&'`]|\d{1,2})/g,YR=Wb,KR=zb.RegExp,QR=!YR(function(){var e=!0;try{KR(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(KR.prototype,"flags").get.call(t)!==n||r!==n}),JR=Kb,XR=PA,ZR=Rw,ej=QR,tj=GC,rj=RegExp.prototype,nj=ej?function(e){return e.flags}:function(e){return ej||!ZR(rj,e)||XR(e,"flags")?e.flags:JR(tj,e)},oj=Kb,ij=gS,aj=Ow,uj=fw,cj=wR,sj=TypeError,lj=function(e,t){var r=e.exec;if(aj(r)){var n=oj(r,e,t);return null!==n&&ij(n),n}if("RegExp"===uj(e))return oj(cj,e,t);throw new sj("RegExp#exec called on incompatible receiver")},fj=Gx,pj=Kb,hj=uw,dj=kR,vj=Wb,yj=gS,gj=Ow,mj=Pw,bj=FE,wj=VE,Aj=dO,Sj=ww,Ej=function(e,t,r){return t+(r?DR(e,t).length:1)},xj=aA,Oj=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=VR;return void 0!==o&&(o=$R(o),c=qR),WR(i,c,function(i,c){var s;switch(GR(c,0)){case"$":return"$";case"&":return e;case"`":return HR(t,0,r);case"'":return HR(t,a);case"<":s=o[HR(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>u){var f=zR(l/10);return 0===f?i:f<=u?void 0===n[f-1]?GR(c,1):n[f-1]+GR(c,1):i}s=n[l-1]}return void 0===s?"":s})},Ij=nj,Pj=lj,_j=$A("replace"),kj=Math.max,Cj=Math.min,Rj=hj([].concat),jj=hj([].push),Tj=hj("".indexOf),Nj=hj("".slice),Lj=function(e){return void 0===e?e:String(e)},Mj="$0"==="a".replace(/./,"$0"),Uj=!!/./[_j]&&""===/./[_j]("a","$0"),Bj=!vj(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});dj("replace",function(e,t,r){var n=Uj?"$":"$0";return[function(e,r){var n=Sj(this),o=mj(e)?xj(e,_j):void 0;return o?pj(o,e,n,r):pj(t,Aj(n),e,r)},function(e,o){var i=yj(this),a=Aj(e);if("string"==typeof o&&-1===Tj(o,n)&&-1===Tj(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=gj(o);c||(o=Aj(o));var s,l=Aj(Ij(i)),f=-1!==Tj(l,"g");f&&(s=-1!==Tj(l,"u"),i.lastIndex=0);for(var p,h=[];null!==(p=Pj(i,a))&&(jj(h,p),f);)""===Aj(p[0])&&(i.lastIndex=Ej(a,wj(i.lastIndex),s));for(var d="",v=0,y=0;y<h.length;y++){for(var g,m=Aj((p=h[y])[0]),b=kj(Cj(bj(p.index),a.length),0),w=[],A=1;A<p.length;A++)jj(w,Lj(p[A]));var S=p.groups;if(c){var E=Rj([m],w,b,a);void 0!==S&&jj(E,S),g=Aj(fj(o,void 0,E))}else g=Oj(m,a,b,w,S,o);b>=v&&(d+=Nj(a,v,b)+g,v=b+m.length)}return d+Nj(a,v)}]},!Bj||!Mj||Uj);class Dj extends Error{constructor(e,t){super(e),this.name="UnisphereLoadError",this.code=t,Object.setPrototypeOf(this,Dj.prototype)}}var Fj=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},$j=Kb,zj=gS,Gj=Pw,Wj=ww,Hj=Fj,qj=dO,Vj=aA,Yj=lj;kR("search",function(e,t,r){return[function(t){var r=Wj(this),n=Gj(t)?Vj(t,e):void 0;return n?$j(n,t,r):new RegExp(t)[e](qj(r))},function(e){var n=zj(this),o=qj(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;Hj(a,0)||(n.lastIndex=0);var u=Yj(n,o);return Hj(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});const Kj=e=>{const t=window.location.search.substr(1).split("&"),r=`${e}=`,n=t.filter(e=>e.search(r)>=0);return n.length>0?n[0].substring(n[0].search(r)+r.length):""};var Qj=ex.includes,Jj=kI;Bx({target:"Array",proto:!0,forced:Wb(function(){return!Array(1).includes()})},{includes:function(e){return Qj(this,e,arguments.length>1?arguments[1]:void 0)}}),Jj("includes");var Xj=nA,Zj=xA,eT=yw,tT=KE,rT=TypeError,nT="Reduce of empty array with no initial value",oT={left:function(e,t,r,n){var o=Zj(e),i=eT(o),a=tT(o);if(Xj(t),0===a&&r<2)throw new rT(nT);var u=0;if(r<2)for(;;){if(u in i){n=i[u],u+=1;break}if(a<=(u+=1))throw new rT(nT)}for(;a>u;u+=1)u in i&&(n=t(n,i[u],u,o));return n}},iT=Wb,aT=zb,uT=Nw,cT=fw,sT=function(e){return uT.slice(0,e.length)===e},lT=sT("Bun/")?"BUN":sT("Cloudflare-Workers")?"CLOUDFLARE":sT("Deno/")?"DENO":sT("Node.js/")?"NODE":aT.Bun&&"string"==typeof Bun.version?"BUN":aT.Deno&&"object"==typeof Deno.version?"DENO":"process"===cT(aT.process)?"NODE":aT.window&&aT.document?"BROWSER":"REST",fT="NODE"===lT,pT=oT.left;Bx({target:"Array",proto:!0,forced:!fT&&$w>79&&$w<83||!function(e,t){var r=[][e];return!!r&&iT(function(){r.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return pT(this,e,t,t>1?arguments[1]:void 0)}});var hT=Bx,dT=Xk,vT=nA,yT=gS,gT=I_,mT=j_,bT=rk,wT=Gx,AT=TypeError,ST=Wb(function(){[].keys().reduce(function(){},void 0)}),ET=!ST&&bT("reduce",AT);hT({target:"Iterator",proto:!0,real:!0,forced:ST||ET},{reduce:function(e){yT(this);try{vT(e)}catch(e){mT(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(ET)return wT(ET,this,t?[e]:[e,r]);var n=gT(this),o=0;if(dT(n,function(n){t?(t=!1,r=n):r=e(r,n,o),o++},{IS_RECORD:!0}),t)throw new AT("Reduce of empty iterator with no initial value");return r}});var xT=Pw,OT=fw,IT=$A("match"),PT=TypeError,_T=function(e){if(function(e){var t;return xT(e)&&(void 0!==(t=e[IT])?!!t:"RegExp"===OT(e))}(e))throw new PT("The method doesn't accept regular expressions");return e},kT=$A("match"),CT=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[kT]=!1,"/./"[e](t)}catch(e){}}return!1},RT=Bx,jT=gk,TT=Gb.f,NT=VE,LT=dO,MT=_T,UT=ww,BT=CT,DT=jT("".slice),FT=Math.min,$T=BT("startsWith"),zT=!$T&&!!function(){var e=TT(String.prototype,"startsWith");return e&&!e.writable}();RT({target:"String",proto:!0,forced:!zT&&!$T},{startsWith:function(e){var t=LT(UT(this));MT(e);var r=NT(FT(arguments.length>1?arguments[1]:void 0,t.length)),n=LT(e);return DT(t,r,r+n.length)===n}});var GT,WT="\t\n\v\f\r                 \u2028\u2029\ufeff",HT=ww,qT=dO,VT=WT,YT=uw("".replace),KT=RegExp("^["+VT+"]+"),QT=RegExp("(^|[^"+VT+"])["+VT+"]+$"),JT={trim:function(e){var t=qT(HT(e));return t=YT(t,KT,""),t=YT(t,QT,"$1")}},XT=BS.PROPER,ZT=WT,eN=JT.trim;Bx({target:"String",proto:!0,forced:(GT="trim",Wb(function(){return!!ZT[GT]()||"​…᠎"!=="​…᠎"[GT]()||XT&&ZT[GT].name!==GT}))},{trim:function(){return eN(this)}});let tN="true"===Kj("unisphereVerbose")?"log":Kj("unisphereVerbose")||"";const rN=["log","debug"].includes(tN)?tN:"warn",nN=Kj("unisphereEnvironment")||"prod",oN=Kj("unispherePresets")||null,iN={logLevel:rN,verbose:tN,environment:"dev"===nN?"dev":"prod",presets:oN?oN.split(",").reduce((e,t)=>(t.startsWith("-")?e.deactivate.push(t.substring(1).trim()):e.activate.push(t.trim()),e),{activate:[],deactivate:[]}):null},aN=()=>iN;function uN(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(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(a,u)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var cN=zb,sN=Cw,lN=t_,fN=Hb,pN=$A("species"),hN=uw,dN=Wb,vN=Ow,yN=fO,gN=HS,mN=function(){},bN=Cw("Reflect","construct"),wN=/^\s*(?:class|function)\b/,AN=hN(wN.exec),SN=!wN.test(mN),EN=function(e){if(!vN(e))return!1;try{return bN(mN,[],e),!0}catch(e){return!1}},xN=function(e){if(!vN(e))return!1;switch(yN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return SN||!!AN(wN,gN(e))}catch(e){return!0}};xN.sham=!0;var ON,IN,PN,_N,kN=!bN||dN(function(){var e;return EN(EN.call)||!EN(Object)||!EN(function(){e=!0})||e})?xN:EN,CN=kN,RN=Zw,jN=TypeError,TN=gS,NN=gw,LN=$A("species"),MN=uw([].slice),UN=TypeError,BN=function(e,t){if(e<t)throw new UN("Not enough arguments");return e},DN=/(?:ipad|iphone|ipod).*applewebkit/i.test(Nw),FN=zb,$N=Gx,zN=Ak,GN=Ow,WN=PA,HN=Wb,qN=aI,VN=MN,YN=eS,KN=BN,QN=DN,JN=fT,XN=FN.setImmediate,ZN=FN.clearImmediate,eL=FN.process,tL=FN.Dispatch,rL=FN.Function,nL=FN.MessageChannel,oL=FN.String,iL=0,aL={},uL="onreadystatechange";HN(function(){ON=FN.location});var cL=function(e){if(WN(aL,e)){var t=aL[e];delete aL[e],t()}},sL=function(e){return function(){cL(e)}},lL=function(e){cL(e.data)},fL=function(e){FN.postMessage(oL(e),ON.protocol+"//"+ON.host)};XN&&ZN||(XN=function(e){KN(arguments.length,1);var t=GN(e)?e:rL(e),r=VN(arguments,1);return aL[++iL]=function(){$N(t,void 0,r)},IN(iL),iL},ZN=function(e){delete aL[e]},JN?IN=function(e){eL.nextTick(sL(e))}:tL&&tL.now?IN=function(e){tL.now(sL(e))}:nL&&!QN?(_N=(PN=new nL).port2,PN.port1.onmessage=lL,IN=zN(_N.postMessage,_N)):FN.addEventListener&&GN(FN.postMessage)&&!FN.importScripts&&ON&&"file:"!==ON.protocol&&!HN(fL)?(IN=fL,FN.addEventListener("message",lL,!1)):IN=uL in YN("script")?function(e){qN.appendChild(YN("script"))[uL]=function(){qN.removeChild(this),cL(e)}}:function(e){setTimeout(sL(e),0)});var pL={set:XN},hL=zb,dL=Hb,vL=Object.getOwnPropertyDescriptor,yL=function(e){if(!dL)return hL[e];var t=vL(hL,e);return t&&t.value},gL=function(){this.head=null,this.tail=null};gL.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}};var mL,bL,wL,AL,SL,EL=gL,xL=/ipad|iphone|ipod/i.test(Nw)&&"undefined"!=typeof Pebble,OL=/web0s(?!.*chrome)/i.test(Nw),IL=zb,PL=yL,_L=Ak,kL=pL.set,CL=EL,RL=DN,jL=xL,TL=OL,NL=fT,LL=IL.MutationObserver||IL.WebKitMutationObserver,ML=IL.document,UL=IL.process,BL=IL.Promise,DL=PL("queueMicrotask");if(!DL){var FL=new CL,$L=function(){var e,t;for(NL&&(e=UL.domain)&&e.exit();t=FL.get();)try{t()}catch(e){throw FL.head&&mL(),e}e&&e.enter()};RL||NL||TL||!LL||!ML?!jL&&BL&&BL.resolve?((AL=BL.resolve(void 0)).constructor=BL,SL=_L(AL.then,AL),mL=function(){SL($L)}):NL?mL=function(){UL.nextTick($L)}:(kL=_L(kL,IL),mL=function(){kL($L)}):(bL=!0,wL=ML.createTextNode(""),new LL($L).observe(wL,{characterData:!0}),mL=function(){wL.data=bL=!bL}),DL=function(e){FL.head||mL(),FL.add(e)}}var zL=DL,GL=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},WL=zb.Promise,HL=zb,qL=WL,VL=Ow,YL=Cx,KL=HS,QL=$A,JL=lT,XL=$w;qL&&qL.prototype;var ZL=QL("species"),eM=!1,tM=VL(HL.PromiseRejectionEvent),rM=YL("Promise",function(){var e=KL(qL),t=e!==String(qL);if(!t&&66===XL)return!0;if(!XL||XL<51||!/native code/.test(e)){var r=new qL(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[ZL]=n,!(eM=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==JL&&"DENO"!==JL||tM)}),nM={CONSTRUCTOR:rM,REJECTION_EVENT:tM,SUBCLASSING:eM},oM={},iM=nA,aM=TypeError,uM=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new aM("Bad Promise constructor");t=e,r=n}),this.resolve=iM(t),this.reject=iM(r)};oM.f=function(e){return new uM(e)};var cM,sM,lM,fM,pM,hM=Bx,dM=fT,vM=zb,yM=cN,gM=Kb,mM=LE,bM=Xx,wM=XI,AM=nA,SM=Ow,EM=Pw,xM=XP,OM=function(e,t){var r,n=TN(e).constructor;return void 0===n||NN(r=TN(n)[LN])?t:function(e){if(CN(e))return e;throw new jN(RN(e)+" is not a constructor")}(r)},IM=pL.set,PM=zL,_M=GL,kM=EL,CM=pE,RM=WL,jM=oM,TM="Promise",NM=nM.CONSTRUCTOR,LM=nM.REJECTION_EVENT,MM=nM.SUBCLASSING,UM=CM.getterFor(TM),BM=CM.set,DM=RM&&RM.prototype,FM=RM,$M=DM,zM=vM.TypeError,GM=vM.document,WM=vM.process,HM=jM.f,qM=HM,VM=!!(GM&&GM.createEvent&&vM.dispatchEvent),YM="unhandledrejection",KM=function(e){var t;return!(!EM(e)||!SM(t=e.then))&&t},QM=function(e,t){var r,n,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,c=e.resolve,s=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&tU(t),t.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===e.promise?s(new zM("Promise-chain cycle")):(n=KM(r))?gM(n,r,c,s):c(r)):s(i)}catch(e){l&&!o&&l.exit(),s(e)}},JM=function(e,t){e.notified||(e.notified=!0,PM(function(){for(var r,n=e.reactions;r=n.get();)QM(r,e);e.notified=!1,t&&!e.rejection&&ZM(e)}))},XM=function(e,t,r){var n,o;VM?((n=GM.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),vM.dispatchEvent(n)):n={promise:t,reason:r},!LM&&(o=vM["on"+e])?o(n):e===YM&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",r)},ZM=function(e){gM(IM,vM,function(){var t,r=e.facade,n=e.value;if(eU(e)&&(t=_M(function(){dM?WM.emit("unhandledRejection",n,r):XM(YM,r,n)}),e.rejection=dM||eU(e)?2:1,t.error))throw t.value})},eU=function(e){return 1!==e.rejection&&!e.parent},tU=function(e){gM(IM,vM,function(){var t=e.facade;dM?WM.emit("rejectionHandled",t):XM("rejectionhandled",t,e.value)})},rU=function(e,t,r){return function(n){e(t,n,r)}},nU=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,JM(e,!0))},oU=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new zM("Promise can't be resolved itself");var n=KM(t);n?PM(function(){var r={done:!1};try{gM(n,t,rU(oU,r,e),rU(nU,r,e))}catch(t){nU(r,t,e)}}):(e.value=t,e.state=1,JM(e,!1))}catch(t){nU({done:!1},t,e)}}};if(NM&&($M=(FM=function(e){xM(this,$M),AM(e),gM(cM,this);var t=UM(this);try{e(rU(oU,t),rU(nU,t))}catch(e){nU(t,e)}}).prototype,(cM=function(e){BM(this,{type:TM,done:!1,notified:!1,parent:!1,reactions:new kM,rejection:!1,state:0,value:null})}).prototype=mM($M,"then",function(e,t){var r=UM(this),n=HM(OM(this,FM));return r.parent=!0,n.ok=!SM(e)||e,n.fail=SM(t)&&t,n.domain=dM?WM.domain:void 0,0===r.state?r.reactions.add(n):PM(function(){QM(n,r)}),n.promise}),sM=function(){var e=new cM,t=UM(e);this.promise=e,this.resolve=rU(oU,t),this.reject=rU(nU,t)},jM.f=HM=function(e){return e===FM||e===lM?new sM(e):qM(e)},SM(RM)&&DM!==Object.prototype)){fM=DM.then,MM||mM(DM,"then",function(e,t){var r=this;return new FM(function(e,t){gM(fM,r,e,t)}).then(e,t)},{unsafe:!0});try{delete DM.constructor}catch(e){}bM&&bM(DM,$M)}hM({global:!0,constructor:!0,wrap:!0,forced:NM},{Promise:FM}),lM=yM.Promise,wM(FM,TM,!1),pM=sN(TM),fN&&pM&&!pM[pN]&&lN(pM,pN,{configurable:!0,get:function(){return this}});var iU=$A("iterator"),aU=!1;try{var uU=0,cU={next:function(){return{done:!!uU++}},return:function(){aU=!0}};cU[iU]=function(){return this},Array.from(cU,function(){throw 2})}catch(e){}var sU=WL,lU=nM.CONSTRUCTOR||!function(e,t){try{if(!t&&!aU)return!1}catch(e){return!1}var r=!1;try{var n={};n[iU]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}(function(e){sU.all(e).then(void 0,function(){})}),fU=Kb,pU=nA,hU=oM,dU=GL,vU=Xk;Bx({target:"Promise",stat:!0,forced:lU},{all:function(e){var t=this,r=hU.f(t),n=r.resolve,o=r.reject,i=dU(function(){var r=pU(t.resolve),i=[],a=0,u=1;vU(e,function(e){var c=a++,s=!1;u++,fU(r,t,e).then(function(e){s||(s=!0,i[c]=e,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var yU=Bx,gU=nM.CONSTRUCTOR,mU=WL,bU=Cw,wU=Ow,AU=LE,SU=mU&&mU.prototype;if(yU({target:"Promise",proto:!0,forced:gU,real:!0},{catch:function(e){return this.then(void 0,e)}}),wU(mU)){var EU=bU("Promise").prototype.catch;SU.catch!==EU&&AU(SU,"catch",EU,{unsafe:!0})}var xU=Kb,OU=nA,IU=oM,PU=GL,_U=Xk;Bx({target:"Promise",stat:!0,forced:lU},{race:function(e){var t=this,r=IU.f(t),n=r.reject,o=PU(function(){var o=OU(t.resolve);_U(e,function(e){xU(o,t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var kU=oM;Bx({target:"Promise",stat:!0,forced:nM.CONSTRUCTOR},{reject:function(e){var t=kU.f(this);return(0,t.reject)(e),t.promise}});var CU=gS,RU=Pw,jU=oM,TU=Bx,NU=nM.CONSTRUCTOR;Cw("Promise"),TU({target:"Promise",stat:!0,forced:NU},{resolve:function(e){return function(e,t){if(CU(e),RU(t)&&t.constructor===e)return t;var r=jU.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var LU=BS.PROPER,MU=LE,UU=gS,BU=dO,DU=Wb,FU=nj,$U="toString",zU=RegExp.prototype,GU=zU[$U],WU=DU(function(){return"/a/b"!==GU.call({source:"a",flags:"b"})}),HU=LU&&GU.name!==$U;(WU||HU)&&MU(zU,$U,function(){var e=UU(this);return"/"+BU(e.source)+"/"+BU(FU(e))},{unsafe:!0});const qU=jl.createWorkspaceLogger("window").getOrCreateLogger("loader","fetch-artifact"),VU=(e,t,r,n)=>{e.length>0&&(qU.log(`calling ${n} callbacks for ${r} (${e.length} queued)`),e.forEach(e=>{try{e(t)}catch(e){qU.error(`error calling ${n} callback for ${r}`,{error:e})}}))};const YU=jl.createWorkspaceLogger("_global_").getOrCreateLogger("loader","reserve-workspace-by-application"),{value:KU}=Rl("loadWorkspaceIntent",YU,{}),QU=({workspaceName:e,appId:t})=>{const r=e||"",n=t||"_unknown_";if(KU[r]&&KU[r]!==n){const e=`unisphere workspace '${r}' is not allowed to load by app '${n}'. Application '${KU[r]}' already reserved this workspace (consider using the same instance loaded by '${KU[r]}')`;throw YU.warn(e,{data:{workspaceName:r,appId:n,reservedByApp:KU[r]}}),new Dj(e,"UNISPHERE_WORKSPACE_ALREADY_EXISTS")}YU.debug(`reserving workspace for app '${n}'`,{data:{workspaceName:r,appId:n}}),KU[r]=n},JU=e=>uN(void 0,void 0,void 0,function*(){var t;const r=jl.createWorkspaceLogger(e.workspaceName||"").getOrCreateLogger("loader","fetch-and-load-unisphere-workspace");QU({workspaceName:e.workspaceName,appId:e.appId});const n=`${e.serverUrl}/loader/index.esm.js`;r.log("fetching environment unisphere loader",{data:{environmentLoaderUrl:n,unisphereWorkspaceConfig:e}});const{factoryModule:{loader:o}}=yield function(e){return uN(this,arguments,void 0,function*({owner:e,url:t,fetchStrategy:r}){var n;const{value:o}=Rl("factoriesByURLS",qU,{}),i=t.toLowerCase(),a=o[i];if(a)return a.factoryModule?(qU.log(`using cached factory module for ${t}`),{factoryModule:a.factoryModule}):(qU.log(`a request to fetch factory already in progress for ${t}, waiting for it to finish`),new Promise((e,t)=>{a.onFetched.push(e),a.onError.push(t)}));qU.log(`fetching factory module for ${t}`);const u={requester:e,factoryModule:null,onFetched:[],onError:[]};o[i]=u;try{const e=null===(n=window.kalturaGlobalConfig)||void 0===n?void 0:n.scriptsNonce,o=r||(e?"scripts":"esm");qU.log(`using fetch strategy ${o} for ${t}`,{data:{fetchStrategy:r,hasNonce:!!e,resolvedFetchStrategy:o}});const i="scripts"===o?yield function(e,t){return uN(this,void 0,void 0,function*(){return new Promise((r,n)=>{qU.log(`Importing module with nonce from ${e}`);const o=`unisphere_import_${Date.now()}_${Math.random().toString(36).slice(2)}`;window[`${o}_resolve`]=t=>{qU.log(`Module from ${e} loaded successfully`),delete window[`${o}_resolve`],delete window[`${o}_reject`];const n=document.getElementById(o);n&&n.remove(),r(t)},window[`${o}_reject`]=t=>{qU.error(`Failed to load module from ${e}`,{error:t}),delete window[`${o}_resolve`],delete window[`${o}_reject`];const r=document.getElementById(o);r&&r.remove(),n(t)};const i=document.createElement("script");i.id=o,t&&i.setAttribute("nonce",t),i.textContent=`\n (async () => {\n try {\n const module = await import("${e}");\n try {\n window["${o}_resolve"](module);\n } catch (error) {\n console.error('Failed to resolve module from "${e}"', { error });\n }\n } catch (error) {\n window["${o}_reject"](error);\n }\n })();\n `,document.head.appendChild(i),setTimeout(()=>{if(window[`${o}_resolve`]){qU.error(`Import timeout for ${e}`);const t=new Error(`Timeout importing module from ${e}`);window[`${o}_reject`](t)}},3e4)})})}(t,e):yield import(t);qU.log(`fetched factory module for ${t}, caching it`),u.factoryModule=i;const a={factoryModule:u.factoryModule};return VU(u.onFetched,a,t,"onFetched"),u.onFetched=[],u.onError=[],a}catch(e){throw qU.log(`failed to fetch factory module for ${t}, removing from list`),VU(u.onError,e,t,"onError"),u.onError=[],u.onFetched=[],qU.log(`removing cached factory info for ${t} (next time it will be fetched again)`),delete o[i],e}})}({owner:"(unknown)",url:n,fetchStrategy:null===(t=e.devops)||void 0===t?void 0:t.fetchStrategy});if(!o)throw new Error(`failed to load dev loader from '${n}'`);return r.log(`executing environment unisphere loader from '${n}'`),o(e)});var XU=Bx,ZU=Kb,eB=Xk,tB=nA,rB=gS,nB=I_,oB=j_,iB=rk("some",TypeError);XU({target:"Iterator",proto:!0,real:!0,forced:iB},{some:function(e){rB(this);try{tB(e)}catch(e){oB(this,"throw",e)}if(iB)return ZU(iB,this,e);var t=nB(this),r=0;return eB(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var aB,uB,cB=Bx,sB=Kb,lB=Ow,fB=gS,pB=dO,hB=(aB=!1,(uB=/[ac]/).exec=function(){return aB=!0,/./.exec.apply(this,arguments)},!0===uB.test("abc")&&aB),dB=/./.test;cB({target:"RegExp",proto:!0,forced:!hB},{test:function(e){var t=fB(this),r=pB(e),n=t.exec;if(!lB(n))return sB(dB,t,r);var o=sB(n,t,r);return null!==o&&(fB(o),!0)}});var vB=Bx,yB=_T,gB=ww,mB=dO,bB=CT,wB=uw("".indexOf);vB({target:"String",proto:!0,forced:!bB("includes")},{includes:function(e){return!!~wB(mB(gB(this)),mB(yB(e)),arguments.length>1?arguments[1]:void 0)}});var AB=BR.charAt,SB=dO,EB=pE,xB=OP,OB=IP,IB="String Iterator",PB=EB.set,_B=EB.getterFor(IB);xB(String,"String",function(e){PB(this,{type:IB,string:SB(e),index:0})},function(){var e,t=_B(this),r=t.string,n=t.index;return n>=r.length?OB(void 0,!0):(e=AB(r,n),t.index+=e.length,OB(e,!1))});var kB=Wb,CB=Hb,RB=$A("iterator"),jB=!kB(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),!t.size&&!CB||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[RB]||"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}),TB=Ak,NB=Kb,LB=xA,MB=ek,UB=Ok,BB=kN,DB=KE,FB=i_,$B=Bk,zB=Rk,GB=Array,WB=uw,HB=2147483647,qB=/[^\0-\u007E]/,VB=/[.\u3002\uFF0E\uFF61]/g,YB="Overflow: input needs wider integers to process",KB=RangeError,QB=WB(VB.exec),JB=Math.floor,XB=String.fromCharCode,ZB=WB("".charCodeAt),eD=WB([].join),tD=WB([].push),rD=WB("".replace),nD=WB("".split),oD=WB("".toLowerCase),iD=function(e){return e+22+75*(e<26)},aD=function(e,t,r){var n=0;for(e=r?JB(e/700):e>>1,e+=JB(e/t);e>455;)e=JB(e/35),n+=36;return JB(n+36*e/(e+38))},uD=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=ZB(e,r++);if(o>=55296&&o<=56319&&r<n){var i=ZB(e,r++);56320==(64512&i)?tD(t,((1023&o)<<10)+(1023&i)+65536):(tD(t,o),r--)}else tD(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&tD(t,XB(n));var c=t.length,s=c;for(c&&tD(t,"-");s<o;){var l=HB;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=s+1;if(l-i>JB((HB-a)/f))throw new KB(YB);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>HB)throw new KB(YB);if(n===i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;tD(t,XB(iD(d+v%y))),p=JB(v/y),h+=36}tD(t,XB(iD(p))),u=aD(a,f,s===c),a=0,s++}}a++,i++}return eD(t,"")},cD=Bx,sD=uw,lD=WE,fD=RangeError,pD=String.fromCharCode,hD=String.fromCodePoint,dD=sD([].join);cD({target:"String",stat:!0,arity:1,forced:!!hD&&1!==hD.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],lD(t,1114111)!==t)throw new fD(t+" is not a valid code point");r[o]=t<65536?pD(t):pD(55296+((t-=65536)>>10),t%1024+56320)}return dD(r,"")}});var vD=MN,yD=Math.floor,gD=function(e,t){var r=e.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=yD(r/2),u=gD(vD(e,0,a),t),c=gD(vD(e,a),t),s=u.length,l=c.length,f=0,p=0;f<s||p<l;)e[f+p]=f<s&&p<l?t(u[f],c[p])<=0?u[f++]:c[p++]:f<s?u[f++]:c[p++];return e},mD=Bx,bD=zb,wD=yL,AD=Cw,SD=Kb,ED=uw,xD=Hb,OD=jB,ID=LE,PD=t_,_D=__,kD=XI,CD=iP,RD=pE,jD=XP,TD=Ow,ND=PA,LD=Ak,MD=fO,UD=gS,BD=Pw,DD=dO,FD=wI,$D=rw,zD=Bk,GD=Rk,WD=IP,HD=BN,qD=gD,VD=$A("iterator"),YD="URLSearchParams",KD=YD+"Iterator",QD=RD.set,JD=RD.getterFor(YD),XD=RD.getterFor(KD),ZD=wD("fetch"),eF=wD("Request"),tF=wD("Headers"),rF=eF&&eF.prototype,nF=tF&&tF.prototype,oF=bD.TypeError,iF=bD.encodeURIComponent,aF=String.fromCharCode,uF=AD("String","fromCodePoint"),cF=parseInt,sF=ED("".charAt),lF=ED([].join),fF=ED([].push),pF=ED("".replace),hF=ED([].shift),dF=ED([].splice),vF=ED("".split),yF=ED("".slice),gF=ED(/./.exec),mF=/\+/g,bF=/^[0-9a-f]+$/i,wF=function(e,t){var r=yF(e,t,t+2);return gF(bF,r)?cF(r,16):NaN},AF=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},SF=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},EF=function(e){for(var t=(e=pF(e,mF," ")).length,r="",n=0;n<t;){var o=sF(e,n);if("%"===o){if("%"===sF(e,n+1)||n+3>t){r+="%",n++;continue}var i=wF(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=AF(i);if(0===a)o=aF(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],c=1;c<a&&!(3+ ++n>t||"%"!==sF(e,n));){var s=wF(e,n+1);if(s!=s){n+=3;break}if(s>191||s<128)break;fF(u,s),n+=2,c++}if(u.length!==a){r+="�";continue}var l=SF(u);null===l?r+="�":o=uF(l)}}r+=o,n++}return r},xF=/[!'()~]|%20/g,OF={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},IF=function(e){return OF[e]},PF=function(e){return pF(iF(e),xF,IF)},_F=CD(function(e,t){QD(this,{type:KD,target:JD(e).entries,index:0,kind:t})},YD,function(){var e=XD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,WD(void 0,!0);var n=t[r];switch(e.kind){case"keys":return WD(n.key,!1);case"values":return WD(n.value,!1)}return WD([n.key,n.value],!1)},!0),kF=function(e){this.entries=[],this.url=null,void 0!==e&&(BD(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===sF(e,0)?yF(e,1):e:DD(e)))};kF.prototype={type:YD,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,u,c=this.entries,s=GD(e);if(s)for(r=(t=zD(e,s)).next;!(n=SD(r,t)).done;){if(i=(o=zD(UD(n.value))).next,(a=SD(i,o)).done||(u=SD(i,o)).done||!SD(i,o).done)throw new oF("Expected sequence with length 2");fF(c,{key:DD(a.value),value:DD(u.value)})}else for(var l in e)ND(e,l)&&fF(c,{key:l,value:DD(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=vF(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=vF(t,"="),fF(n,{key:EF(hF(r)),value:EF(lF(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],fF(r,PF(e.key)+"="+PF(e.value));return lF(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var CF=function(){jD(this,RF);var e=QD(this,new kF(arguments.length>0?arguments[0]:void 0));xD||(this.size=e.entries.length)},RF=CF.prototype;if(_D(RF,{append:function(e,t){var r=JD(this);HD(arguments.length,2),fF(r.entries,{key:DD(e),value:DD(t)}),xD||this.length++,r.updateURL()},delete:function(e){for(var t=JD(this),r=HD(arguments.length,1),n=t.entries,o=DD(e),i=r<2?void 0:arguments[1],a=void 0===i?i:DD(i),u=0;u<n.length;){var c=n[u];if(c.key!==o||void 0!==a&&c.value!==a)u++;else if(dF(n,u,1),void 0!==a)break}xD||(this.size=n.length),t.updateURL()},get:function(e){var t=JD(this).entries;HD(arguments.length,1);for(var r=DD(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=JD(this).entries;HD(arguments.length,1);for(var r=DD(e),n=[],o=0;o<t.length;o++)t[o].key===r&&fF(n,t[o].value);return n},has:function(e){for(var t=JD(this).entries,r=HD(arguments.length,1),n=DD(e),o=r<2?void 0:arguments[1],i=void 0===o?o:DD(o),a=0;a<t.length;){var u=t[a++];if(u.key===n&&(void 0===i||u.value===i))return!0}return!1},set:function(e,t){var r=JD(this);HD(arguments.length,1);for(var n,o=r.entries,i=!1,a=DD(e),u=DD(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?dF(o,c--,1):(i=!0,n.value=u));i||fF(o,{key:a,value:u}),xD||(this.size=o.length),r.updateURL()},sort:function(){var e=JD(this);qD(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=JD(this).entries,n=LD(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 _F(this,"keys")},values:function(){return new _F(this,"values")},entries:function(){return new _F(this,"entries")}},{enumerable:!0}),ID(RF,VD,RF.entries,{name:"entries"}),ID(RF,"toString",function(){return JD(this).serialize()},{enumerable:!0}),xD&&PD(RF,"size",{get:function(){return JD(this).entries.length},configurable:!0,enumerable:!0}),kD(CF,YD),mD({global:!0,constructor:!0,forced:!OD},{URLSearchParams:CF}),!OD&&TD(tF)){var jF=ED(nF.has),TF=ED(nF.set),NF=function(e){if(BD(e)){var t,r=e.body;if(MD(r)===YD)return t=e.headers?new tF(e.headers):new tF,jF(t,"content-type")||TF(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),FD(e,{body:$D(0,DD(r)),headers:$D(0,t)})}return e};if(TD(ZD)&&mD({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return ZD(e,arguments.length>1?NF(arguments[1]):{})}}),TD(eF)){var LF=function(e){return jD(this,rF),new eF(e,arguments.length>1?NF(arguments[1]):{})};rF.constructor=LF,LF.prototype=rF,mD({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:LF})}}var MF,UF=Bx,BF=Hb,DF=jB,FF=zb,$F=Ak,zF=uw,GF=LE,WF=t_,HF=XP,qF=PA,VF=PC,YF=function(e){var t=LB(e),r=BB(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=TB(o,n>2?arguments[2]:void 0));var a,u,c,s,l,f,p=zB(t),h=0;if(!p||this===GB&&UB(p))for(a=DB(t),u=r?new this(a):GB(a);a>h;h++)f=i?o(t[h],h):t[h],FB(u,h,f);else for(u=r?new this:[],l=(s=$B(t,p)).next;!(c=NB(l,s)).done;h++)f=i?MB(s,o,[c.value,h],!0):c.value,FB(u,h,f);return u.length=h,u},KF=MN,QF=BR.codeAt,JF=dO,XF=XI,ZF=BN,e$={URLSearchParams:CF,getState:JD},t$=pE,r$=t$.set,n$=t$.getterFor("URL"),o$=e$.URLSearchParams,i$=e$.getState,a$=FF.URL,u$=FF.TypeError,c$=FF.parseInt,s$=Math.floor,l$=Math.pow,f$=zF("".charAt),p$=zF(/./.exec),h$=zF([].join),d$=zF(1.1.toString),v$=zF([].pop),y$=zF([].push),g$=zF("".replace),m$=zF([].shift),b$=zF("".split),w$=zF("".slice),A$=zF("".toLowerCase),S$=zF([].unshift),E$="Invalid scheme",x$="Invalid host",O$="Invalid port",I$=/[a-z]/i,P$=/[\d+-.a-z]/i,_$=/\d/,k$=/^0x/i,C$=/^[0-7]+$/,R$=/^\d+$/,j$=/^[\da-f]+$/i,T$=/[\0\t\n\r #%/:<>?@[\\\]^|]/,N$=/[\0\t\n\r #/:<>?@[\\\]^|]/,L$=/^[\u0000-\u0020]+/,M$=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,U$=/[\t\n\r]/g,B$=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)S$(t,e%256),e=s$(e/256);return h$(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+=d$(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},D$={},F$=VF({},D$,{" ":1,'"':1,"<":1,">":1,"`":1}),$$=VF({},F$,{"#":1,"?":1,"{":1,"}":1}),z$=VF({},$$,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G$=function(e,t){var r=QF(e,0);return r>32&&r<127&&!qF(t,e)?e:encodeURIComponent(e)},W$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},H$=function(e,t){var r;return 2===e.length&&p$(I$,f$(e,0))&&(":"===(r=f$(e,1))||!t&&"|"===r)},q$=function(e){var t;return e.length>1&&H$(w$(e,0,2))&&(2===e.length||"/"===(t=f$(e,2))||"\\"===t||"?"===t||"#"===t)},V$=function(e){return"."===e||"%2e"===A$(e)},Y$=function(e){return".."===(e=A$(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},K$={},Q$={},J$={},X$={},Z$={},ez={},tz={},rz={},nz={},oz={},iz={},az={},uz={},cz={},sz={},lz={},fz={},pz={},hz={},dz={},vz={},yz=function(e,t,r){var n,o,i,a=JF(e);if(t){if(o=this.parse(a))throw new u$(o);this.searchParams=null}else{if(void 0!==r&&(n=new yz(r,!0)),o=this.parse(a,null,n))throw new u$(o);(i=i$(new o$)).bindURL(this),this.searchParams=i}};yz.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,u=this,c=t||K$,s=0,l="",f=!1,p=!1,h=!1;for(e=JF(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=g$(e,L$,""),e=g$(e,M$,"$1")),e=g$(e,U$,""),n=YF(e);s<=n.length;){switch(o=n[s],c){case K$:if(!o||!p$(I$,o)){if(t)return E$;c=J$;continue}l+=A$(o),c=Q$;break;case Q$:if(o&&(p$(P$,o)||"+"===o||"-"===o||"."===o))l+=A$(o);else{if(":"!==o){if(t)return E$;l="",c=J$,s=0;continue}if(t&&(u.isSpecial()!==qF(W$,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&W$[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?c=cz:u.isSpecial()&&r&&r.scheme===u.scheme?c=X$:u.isSpecial()?c=rz:"/"===n[s+1]?(c=Z$,s++):(u.cannotBeABaseURL=!0,y$(u.path,""),c=hz)}break;case J$:if(!r||r.cannotBeABaseURL&&"#"!==o)return E$;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=KF(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=vz;break}c="file"===r.scheme?cz:ez;continue;case X$:if("/"!==o||"/"!==n[s+1]){c=ez;continue}c=nz,s++;break;case Z$:if("/"===o){c=oz;break}c=pz;continue;case ez:if(u.scheme=r.scheme,o===MF)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=KF(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=tz;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=KF(r.path),u.query="",c=dz;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=KF(r.path),u.path.length--,c=pz;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=KF(r.path),u.query=r.query,u.fragment="",c=vz}break;case tz:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=pz;continue}c=oz}else c=nz;break;case rz:if(c=nz,"/"!==o||"/"!==f$(l,s+1))continue;s++;break;case nz:if("/"!==o&&"\\"!==o){c=oz;continue}break;case oz:if("@"===o){f&&(l="%40"+l),f=!0,i=YF(l);for(var d=0;d<i.length;d++){var v=i[d];if(":"!==v||h){var y=G$(v,z$);h?u.password+=y:u.username+=y}else h=!0}l=""}else if(o===MF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===l)return"Invalid authority";s-=YF(l).length+1,l="",c=iz}else l+=o;break;case iz:case az:if(t&&"file"===u.scheme){c=lz;continue}if(":"!==o||p){if(o===MF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===l)return x$;if(t&&""===l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=fz,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),l+=o}else{if(""===l)return x$;if(a=u.parseHost(l))return a;if(l="",c=uz,t===az)return}break;case uz:if(!p$(_$,o)){if(o===MF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==l){var g=c$(l,10);if(g>65535)return O$;u.port=u.isSpecial()&&g===W$[u.scheme]?null:g,l=""}if(t)return;c=fz;continue}return O$}l+=o;break;case cz:if(u.scheme="file","/"===o||"\\"===o)c=sz;else{if(!r||"file"!==r.scheme){c=pz;continue}switch(o){case MF:u.host=r.host,u.path=KF(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=KF(r.path),u.query="",c=dz;break;case"#":u.host=r.host,u.path=KF(r.path),u.query=r.query,u.fragment="",c=vz;break;default:q$(h$(KF(n,s),""))||(u.host=r.host,u.path=KF(r.path),u.shortenPath()),c=pz;continue}}break;case sz:if("/"===o||"\\"===o){c=lz;break}r&&"file"===r.scheme&&!q$(h$(KF(n,s),""))&&(H$(r.path[0],!0)?y$(u.path,r.path[0]):u.host=r.host),c=pz;continue;case lz:if(o===MF||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&H$(l))c=pz;else if(""===l){if(u.host="",t)return;c=fz}else{if(a=u.parseHost(l))return a;if("localhost"===u.host&&(u.host=""),t)return;l="",c=fz}continue}l+=o;break;case fz:if(u.isSpecial()){if(c=pz,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==MF&&(c=pz,"/"!==o))continue}else u.fragment="",c=vz;else u.query="",c=dz;break;case pz:if(o===MF||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(Y$(l)?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||y$(u.path,"")):V$(l)?"/"===o||"\\"===o&&u.isSpecial()||y$(u.path,""):("file"===u.scheme&&!u.path.length&&H$(l)&&(u.host&&(u.host=""),l=f$(l,0)+":"),y$(u.path,l)),l="","file"===u.scheme&&(o===MF||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)m$(u.path);"?"===o?(u.query="",c=dz):"#"===o&&(u.fragment="",c=vz)}else l+=G$(o,$$);break;case hz:"?"===o?(u.query="",c=dz):"#"===o?(u.fragment="",c=vz):o!==MF&&(u.path[0]+=G$(o,D$));break;case dz:t||"#"!==o?o!==MF&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":G$(o,D$)):(u.fragment="",c=vz);break;case vz:o!==MF&&(u.fragment+=G$(o,F$))}s++}},parseHost:function(e){var t,r,n;if("["===f$(e,0)){if("]"!==f$(e,e.length-1))return x$;if(t=function(e){var t,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return f$(e,f)};if(":"===p()){if(":"!==f$(e,1))return;f+=2,l=++s}for(;p();){if(8===s)return;if(":"!==p()){for(t=r=0;r<4&&p$(j$,p());)t=16*t+c$(p(),16),f++,r++;if("."===p()){if(0===r)return;if(f-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."===p()&&n<4))return;f++}if(!p$(_$,p()))return;for(;p$(_$,p());){if(i=c$(p(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!==++n&&4!==n||s++}if(4!==n)return;break}if(":"===p()){if(f++,!p())return}else if(p())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!==s)return;return c}(w$(e,1,-1)),!t)return x$;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=nD(rD(oD(e),VB,"."),".");for(t=0;t<o.length;t++)r=o[t],tD(n,QB(qB,r)?"xn--"+uD(r):r);return eD(n,".")}(e),p$(T$,e))return x$;if(t=function(e){var t,r,n,o,i,a,u,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"===f$(o,0)&&(i=p$(k$,o)?16:8,o=w$(o,8===i?1:2)),""===o)a=0;else{if(!p$(10===i?R$:8===i?C$:j$,o))return e;a=c$(o,i)}y$(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=l$(256,5-t))return null}else if(a>255)return null;for(u=v$(r),n=0;n<r.length;n++)u+=r[n]*l$(256,3-n);return u}(e),null===t)return x$;this.host=t}else{if(p$(N$,e))return x$;for(t="",r=YF(e),n=0;n<r.length;n++)t+=G$(r[n],D$);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return qF(W$,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&H$(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,a=e.path,u=e.query,c=e.fragment,s=t+":";return null!==o?(s+="//",e.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=B$(o),null!==i&&(s+=":"+i)):"file"===t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+h$(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(e){var t=this.parse(e);if(t)throw new u$(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new gz(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+B$(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(JF(e)+":",K$)},getUsername:function(){return this.username},setUsername:function(e){var t=YF(JF(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=G$(t[r],z$)}},getPassword:function(){return this.password},setPassword:function(e){var t=YF(JF(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=G$(t[r],z$)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?B$(e):B$(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,iz)},getHostname:function(){var e=this.host;return null===e?"":B$(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,az)},getPort:function(){var e=this.port;return null===e?"":JF(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=JF(e))?this.port=null:this.parse(e,uz))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+h$(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,fz))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=JF(e))?this.query=null:("?"===f$(e,0)&&(e=w$(e,1)),this.query="",this.parse(e,dz)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=JF(e))?("#"===f$(e,0)&&(e=w$(e,1)),this.fragment="",this.parse(e,vz)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gz=function(e){var t=HF(this,mz),r=ZF(arguments.length,1)>1?arguments[1]:void 0,n=r$(t,new yz(e,!1,r));BF||(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())},mz=gz.prototype,bz=function(e,t){return{get:function(){return n$(this)[e]()},set:t&&function(e){return n$(this)[t](e)},configurable:!0,enumerable:!0}};if(BF&&(WF(mz,"href",bz("serialize","setHref")),WF(mz,"origin",bz("getOrigin")),WF(mz,"protocol",bz("getProtocol","setProtocol")),WF(mz,"username",bz("getUsername","setUsername")),WF(mz,"password",bz("getPassword","setPassword")),WF(mz,"host",bz("getHost","setHost")),WF(mz,"hostname",bz("getHostname","setHostname")),WF(mz,"port",bz("getPort","setPort")),WF(mz,"pathname",bz("getPathname","setPathname")),WF(mz,"search",bz("getSearch","setSearch")),WF(mz,"searchParams",bz("getSearchParams")),WF(mz,"hash",bz("getHash","setHash"))),GF(mz,"toJSON",function(){return n$(this).serialize()},{enumerable:!0}),GF(mz,"toString",function(){return n$(this).serialize()},{enumerable:!0}),a$){var wz=a$.createObjectURL,Az=a$.revokeObjectURL;wz&&GF(gz,"createObjectURL",$F(wz,a$)),Az&&GF(gz,"revokeObjectURL",$F(Az,a$))}XF(gz,"URL"),UF({global:!0,constructor:!0,forced:!DF,sham:!BF},{URL:gz});var Sz=Kb;Bx({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Sz(URL.prototype.toString,this)}});var Ez=LE,xz=uw,Oz=dO,Iz=BN,Pz=URLSearchParams,_z=Pz.prototype,kz=xz(_z.append),Cz=xz(_z.delete),Rz=xz(_z.forEach),jz=xz([].push),Tz=new Pz("a=1&a=2&b=3");Tz.delete("a",1),Tz.delete("b",void 0),Tz+""!="a=2"&&Ez(_z,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return Cz(this,e);var n=[];Rz(this,function(e,t){jz(n,{key:t,value:e})}),Iz(t,1);for(var o,i=Oz(e),a=Oz(r),u=0,c=0,s=!1,l=n.length;u<l;)o=n[u++],s||o.key===i?(s=!0,Cz(this,o.key)):c++;for(;c<l;)(o=n[c++]).key===i&&o.value===a||kz(this,o.key,o.value)},{enumerable:!0,unsafe:!0});var Nz=LE,Lz=uw,Mz=dO,Uz=BN,Bz=URLSearchParams,Dz=Bz.prototype,Fz=Lz(Dz.getAll),$z=Lz(Dz.has),zz=new Bz("a=1");!zz.has("a",2)&&zz.has("a",void 0)||Nz(Dz,"has",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return $z(this,e);var n=Fz(this,e);Uz(t,1);for(var o=Mz(r),i=0;i<n.length;)if(n[i++]===o)return!0;return!1},{enumerable:!0,unsafe:!0});var Gz=Hb,Wz=uw,Hz=t_,qz=URLSearchParams.prototype,Vz=Wz(qz.forEach);Gz&&!("size"in qz)&&Hz(qz,"size",{get:function(){var e=0;return Vz(this,function(){e++}),e},configurable:!0,enumerable:!0});var Yz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Kz=Yz+"-_",Qz=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t},Jz={c2i:Qz(Yz+"+/"),c2iUrl:Qz(Kz)},Xz=Bx,Zz=zb,eG=Cw,tG=uw,rG=Kb,nG=Wb,oG=dO,iG=BN,aG=Jz.c2i,uG=/[^\d+/a-z]/i,cG=/[\t\n\f\r ]+/g,sG=/[=]{1,2}$/,lG=eG("atob"),fG=String.fromCharCode,pG=tG("".charAt),hG=tG("".replace),dG=tG(uG.exec),vG=!!lG&&!nG(function(){return"hi"!==lG("aGk=")}),yG=vG&&nG(function(){return""!==lG(" ")}),gG=vG&&!nG(function(){lG("a")}),mG=vG&&!nG(function(){lG()}),bG=vG&&1!==lG.length;Xz({global:!0,bind:!0,enumerable:!0,forced:!vG||yG||gG||mG||bG},{atob:function(e){if(iG(arguments.length,1),vG&&!yG&&!gG)return rG(lG,Zz,e);var t,r,n,o=hG(oG(e),cG,""),i="",a=0,u=0;if(o.length%4==0&&(o=hG(o,sG,"")),(t=o.length)%4==1||dG(uG,o))throw new(eG("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;a<t;)r=pG(o,a++),n=u%4?64*n+aG[r]:aG[r],u++%4&&(i+=fG(255&n>>(-2*u&6)));return i}});var wG=zb,AG=fT,SG=Hb,EG=Wb,xG=gS,OG=yO,IG=Error.prototype.toString,PG=EG(function(){if(SG){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==IG.call(e))return!0}return"2: 1"!==IG.call({message:1,name:2})||"Error"!==IG.call({})})?function(){var e=xG(this),t=OG(e.name,"Error"),r=OG(e.message);return t?r?t+": "+r:t:r}:IG,_G={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},kG=Bx,CG=Cw,RG=Wb,jG=wI,TG=rw,NG=pS.f,LG=LE,MG=t_,UG=PA,BG=XP,DG=gS,FG=PG,$G=yO,zG=_G,GG=xO,WG=pE,HG=Hb,qG="DOMException",VG="DATA_CLONE_ERR",YG=CG("Error"),KG=CG(qG)||function(){try{(new(CG("MessageChannel")||function(e){if(AG){try{return wG.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===VG&&25===e.code)return e.constructor}}(),QG=KG&&KG.prototype,JG=YG.prototype,XG=WG.set,ZG=WG.getterFor(qG),eW="stack"in new YG(qG),tW=function(e){return UG(zG,e)&&zG[e].m?zG[e].c:0},rW=function(){BG(this,nW);var e=arguments.length,t=$G(e<1?void 0:arguments[0]),r=$G(e<2?void 0:arguments[1],"Error"),n=tW(r);if(XG(this,{type:qG,name:r,message:t,code:n}),HG||(this.name=r,this.message=t,this.code=n),eW){var o=new YG(t);o.name=qG,NG(this,"stack",TG(1,GG(o.stack,1)))}},nW=rW.prototype=jG(JG),oW=function(e){return{enumerable:!0,configurable:!0,get:e}},iW=function(e){return oW(function(){return ZG(this)[e]})};HG&&(MG(nW,"code",iW("code")),MG(nW,"message",iW("message")),MG(nW,"name",iW("name"))),NG(nW,"constructor",TG(1,rW));var aW=RG(function(){return!(new KG instanceof YG)}),uW=aW||RG(function(){return JG.toString!==FG||"2: 1"!==String(new KG(1,2))}),cW=aW||RG(function(){return 25!==new KG(1,"DataCloneError").code});aW||25!==KG[VG]||QG[VG],kG({global:!0,constructor:!0,forced:aW},{DOMException:aW?rW:KG});var sW=CG(qG),lW=sW.prototype;for(var fW in uW&&KG===sW&&LG(lW,"toString",FG),cW&&HG&&KG===sW&&MG(lW,"code",oW(function(){return tW(DG(this).name)})),zG)if(UG(zG,fW)){var pW=zG[fW],hW=pW.s,dW=TG(6,pW.c);UG(sW,hW)||NG(sW,hW,dW),UG(lW,hW)||NG(lW,hW,dW)}var vW=Bx,yW=zb,gW=Cw,mW=rw,bW=pS.f,wW=PA,AW=XP,SW=nO,EW=yO,xW=_G,OW=xO,IW=Hb,PW="DOMException",_W=gW("Error"),kW=gW(PW),CW=function(){AW(this,RW);var e=arguments.length,t=EW(e<1?void 0:arguments[0]),r=EW(e<2?void 0:arguments[1],"Error"),n=new kW(t,r),o=new _W(t);return o.name=PW,bW(n,"stack",mW(1,OW(o.stack,1))),SW(n,this,CW),n},RW=CW.prototype=kW.prototype,jW="stack"in new _W(PW),TW="stack"in new kW(1,2),NW=kW&&IW&&Object.getOwnPropertyDescriptor(yW,PW),LW=!(!NW||NW.writable&&NW.configurable),MW=jW&&!LW&&!TW;vW({global:!0,constructor:!0,forced:MW},{DOMException:MW?CW:kW});var UW=gW(PW),BW=UW.prototype;if(BW.constructor!==UW)for(var DW in bW(BW,"constructor",mW(1,UW)),xW)if(wW(xW,DW)){var FW=xW[DW],$W=FW.s;wW(UW,$W)||bW(UW,$W,mW(6,FW.c))}var zW="DOMException";function GW(e){return uN(this,void 0,void 0,function*(){const{getByWorkspaceName:t}=yield function(){const e=window;return new Promise(t=>{var r,n;if(null===(n=null===(r=e.unisphere)||void 0===r?void 0:r.instancesManager)||void 0===n?void 0:n.get)t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName||(()=>(console.warn("getByPresetName not implemented"),Promise.reject(new Error)))});else{const r=()=>{document.removeEventListener("unisphere-ready",r),t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName})};document.addEventListener("unisphere-ready",r)}})}();return t(e)})}function WW(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return HW(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?HW(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function HW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}XI(Cw(zW),zW),aN(),aN(),new Map;var qW=function(){return u(function e(r,n,o,i){t(this,e),p(this,"iconIds",new Map),p(this,"panelIds",new Set),p(this,"persistentIconIds",new Map),p(this,"buttonVisibilityStates",new Map),p(this,"panelsByWidgetName",new Map),p(this,"widgetNameByPanel",new Map),p(this,"widgetNameByIcon",new Map),p(this,"workspaceName",""),p(this,"shouldCreateWorkspace",!1),p(this,"expandOnFirstPlayPanels",new Set),this.player=r,this.eventManager=n,this.logger=o,this.config=i,this.containerManager=new ye(r),this.player.config.provider.unisphereLoaderUrl&&"string"==typeof this.config.workspaceName?this.workspaceName=this.config.workspaceName:(this.workspaceName=X("kaltura_player_workspace_"),this.shouldCreateWorkspace=!0)},[{key:"upperBarManager",get:function(){return this.player.getService(A.UPPER_BAR_MANAGER)}},{key:"sidePanelsManager",get:function(){return this.player.getService(A.SIDE_PANELS_MANAGER)}},{key:"addEventHandlers",value:function(){var t=this;q.subscribe(m.MEDIA_SEEK_TO_TIME,function(e){var r=e.payload,n=r.seekToInSeconds,o=r.entryId,i=r.play;t.handleSeekToTime({seekToInSeconds:n,entryId:o,play:i})}),this.eventManager.listenOnce(this.player,e.core.EventType.FIRST_PLAYING,function(){t.handleFirstPlay()})}},{key:"handleFirstPlay",value:function(){var t,r=WW(this.expandOnFirstPlayPanels);try{for(r.s();!(t=r.n()).done;){var n,o=t.value;null===(n=this.sidePanelsManager)||void 0===n||n.activateItem(o);var i=this.widgetNameByPanel.get(o);this.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_OPENED_AUTO,{runtimeWidgetName:i}))}}catch(e){r.e(e)}finally{r.f()}}},{key:"handleSeekToTime",value:function(e){var t,r=e.seekToInSeconds,n=e.entryId,o=e.play,i=parseFloat(r);isNaN(i)||i<0?this.logger.warn("Invalid seekToInSeconds value:",r):n&&(null===(t=this.player)||void 0===t||null===(t=t.sources)||void 0===t?void 0:t.id)!==n?this.logger.warn("Entry ID mismatch:",{current:this.player.sources.id,requested:n}):(this.player.currentTime=i,o?this.player.play():this.player.pause())}},{key:"getWorkspace",value:(n=d(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.shouldCreateWorkspace){e.next=2;break}return e.next=1,JU({serverUrl:this.player.config.provider.unisphereLoaderUrl,workspaceName:this.workspaceName,appId:"kaltura-player",appVersion:"",ui:{theme:"light",language:"en"}});case 1:t=e.sent,e.next=4;break;case 2:return e.next=3,GW(this.config.workspaceName);case 3:t=e.sent;case 4:return B.set(t),e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"addUpperBarIcon",value:function(t,r,n,o,i,a,u){var c,s=this;if(!this.iconIds.has(t)&&!this.persistentIconIds.has(t)){u&&this.widgetNameByIcon.set(t,u),this.panelIds.add(i);var l=null===(c=this.upperBarManager)||void 0===c?void 0:c.add({displayName:r,ariaLabel:r,order:n,component:function(){return(0,g.h)(U,{id:t,label:r,iconPath:o})},svgIcon:{path:o},onClick:function(){var t,r,n;null!==(t=s.sidePanelsManager)&&void 0!==t&&t.isItemActive(i)?(null===(r=s.sidePanelsManager)||void 0===r||r.deactivateItem(i),s.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_CLOSED,{runtimeWidgetName:u}))):(null===(n=s.sidePanelsManager)||void 0===n||n.activateItem(i),s.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_OPENED_MANUAL,{runtimeWidgetName:u})))}});a?this.persistentIconIds.set(t,l):this.iconIds.set(t,l)}}},{key:"initRuntime",value:function(e,t,r){if(null!=e&&e.widgetName&&null!=e&&e.runtimeName&&null!=t&&t.layouts){this.addEventHandlers();var n=t.layouts;if(n&&n.length>0){var o,i=this.player.ui.store.getState().shell.activePresetName,a=WW(n);try{for(a.s();!(o=a.n()).done;){var u,c=o.value;if((null==c?void 0:c.type)===S.SIDEPANEL&&null!=c&&null!==(u=c.presets)&&void 0!==u&&u.includes(i)){var s={containerType:S.SIDEPANEL,presets:c.presets.filter(E),unisphereArea:c.sidepanel.visualType,position:null==r?void 0:r.position,expandMode:null==r?void 0:r.expandMode,expandOnFirstPlay:null==r?void 0:r.expandOnFirstPlay,layout:c,runtimeWidgetName:e.widgetName},l=this.containerManager.createContainer(s);if(l){var f,p=c.sidepanel.visualType,h=Q.get(p),d=null==h||null===(f=h.upperBarIcon)||void 0===f?void 0:f.panelId;d&&c.header&&(this.addUpperBarIcon(X(e.widgetName.split(".")[2]),c.header.tooltip,0,c.header.icon,d,!1,e.widgetName),this.panelsByWidgetName.set(e.widgetName,d),this.widgetNameByPanel.set(d,e.widgetName)),this.mountRuntimeToContainer(e,c,l),null!=r&&r.expandOnFirstPlay&&d&&this.expandOnFirstPlayPanels.add(d)}}}}catch(e){a.e(e)}finally{a.f()}}}}},{key:"mountRuntimeToContainer",value:(r=d(y().mark(function e(t,r,n){var o,i,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,this.waitForContainer(n);case 1:o=e.sent,null==t||t.mountVisual({type:r.sidepanel.visualType,settings:r.sidepanel.visualSettings,target:o}),e.next=3;break;case 2:e.prev=2,a=e.catch(0),null===(i=this.logger)||void 0===i||i.warn("Failed to mount runtime to container:",a);case 3:case"end":return e.stop()}},e,this,[[0,2]])})),function(e,t,n){return r.apply(this,arguments)})},{key:"waitForContainer",value:function(e){var t=this;return new Promise(function(r,n){var o,i=null===(o=t.player)||void 0===o?void 0:o.config.targetId,a=0,u=function(){var t=document.getElementById(i),o=null==t?void 0:t.querySelector("#".concat(e));o?(clearInterval(c),r(o)):(a+=100)>=5e3&&(clearInterval(c),n(new Error("Container with id '".concat(e,"' not found in DOM after ").concat(5e3,"ms"))))},c=setInterval(u,100);u()})}},{key:"updateButtonVisibility",value:function(t,r){this.buttonVisibilityStates.get(t)!==r&&(this.buttonVisibilityStates.set(t,r),this.player.dispatchEvent(new e.core.FakeEvent(b.BUTTON_VISIBILITY_UPDATE,{buttonId:t,visible:r})))}},{key:"getButtonVisibility",value:function(e){return this.buttonVisibilityStates.get(e)}},{key:"activateByWidgetName",value:function(e){if(this.sidePanelsManager&&"function"==typeof this.sidePanelsManager.activateItem){var t=this.getByWidgetName(e);t?(this.logger.log("Activating panel with panel ID ".concat(t," for runtime widget ").concat(e)),this.sidePanelsManager.activateItem(t)):this.logger.warn("Panel ID ".concat(t," not found"))}else this.logger.warn("SidePanelsManager service not found or activateItem method not available")}},{key:"getByWidgetName",value:function(e){return this.panelsByWidgetName.get(e)}},{key:"updateSessionData",value:function(){var e,t;Q.update(w.PLAYER_SESSION,{entryId:this.player.sources.id,ks:null===(e=this.player.config.session)||void 0===e?void 0:e.ks,entryName:null===(t=this.player.sources.metadata)||void 0===t?void 0:t.name})}},{key:"reset",value:function(){var e,t=WW(this.panelIds);try{for(t.s();!(e=t.n()).done;){var r,n,o=e.value;null!==(r=this.sidePanelsManager)&&void 0!==r&&r.isItemActive(o)&&this.sidePanelsManager.deactivateItem(o),null===(n=this.sidePanelsManager)||void 0===n||n.remove(o)}}catch(e){t.e(e)}finally{t.f()}this.panelIds.clear();var i,a=WW(this.iconIds.values());try{for(a.s();!(i=a.n()).done;){var u,c=i.value;null===(u=this.upperBarManager)||void 0===u||u.remove(c)}}catch(e){a.e(e)}finally{a.f()}this.iconIds.clear(),this.containerManager.destroy(),this.buttonVisibilityStates.clear(),this.expandOnFirstPlayPanels.clear(),this.panelsByWidgetName.clear(),this.widgetNameByPanel.clear(),this.widgetNameByIcon.clear()}},{key:"destroy",value:function(){this.reset(),this.containerManager.destroy();var e,t=WW(this.persistentIconIds.values());try{for(t.s();!(e=t.n()).done;){var r,n=e.value;null===(r=this.upperBarManager)||void 0===r||r.remove(n)}}catch(e){t.e(e)}finally{t.f()}q.destroy(),Q.destroy(),B.destroy(),this.unsubscribeStore&&this.unsubscribeStore()}}]);var r,n}();function VW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(VW=function(){return!!e})()}var YW="unisphereService",KW=function(e){function r(e,n,o){var i,a,u,l;return t(this,r),a=this,l=[e,n,o],u=s(u=r),(i=c(a,VW()?Reflect.construct(u,l||[],s(a).constructor):u.apply(a,l)))._unispherePluginManager=new qW(n,i.eventManager,i.logger,i.config),n.registerService(YW,{pluginManager:i._unispherePluginManager,eventService:q}),i}return f(r,e),u(r,[{key:"reset",value:function(){this._unispherePluginManager.reset()}},{key:"destroy",value:function(){this.eventManager.destroy(),this._unispherePluginManager.reset(),q.destroy()}}],[{key:"isValid",value:function(){return!0}}])}(e.BasePlugin);p(KW,"defaultConfig",{widgets:[]}),(0,e.registerPlugin)(YW,KW)})(),n})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("KalturaPlayer",[],t):"object"==typeof exports?exports.KalturaPlayer=t():(e.KalturaPlayer=e.KalturaPlayer||{},e.KalturaPlayer.plugins=e.KalturaPlayer.plugins||{},e.KalturaPlayer.plugins["unisphere-service"]=t())}(self,()=>(()=>{var e={51(e,t,r){var n=r(114),o=r(535),i=r(507),a=r(313),u=r(929),c=r(315),s=r(961);function l(){"use strict";var t=o(),r=t.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function d(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,s(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,o){return t.w(d(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:u,async:function(e,t,r,n,o){return(p(t)?a:i)(d(e),t,r,n,o)},keys:c,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},88(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},114(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},278(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},292(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],u=0;u<e.length;u++){var c=e[u],s=n.base?c[0]+n.base:c[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var p=r(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=o(h,n);n.byIndex=u,t.splice(u,0,{identifier:f,updater:d,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var u=r(i[a]);t[u].references--}for(var c=n(e,o),s=0;s<i.length;s++){var l=r(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},296(e){"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}},312(e,t){"use strict";const{hasOwnProperty:r}=Object.prototype,n=p();n.configure=p,n.stringify=n,n.default=n,t.stringify=n,t.configure=p,e.exports=n;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(e){return e.length<5e3&&!o.test(e)?`"${e}"`:JSON.stringify(e)}function a(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){const r=e[t];let n=t;for(;0!==n&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r}return e}const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(e){return void 0!==u.call(e)&&0!==e.length}function s(e,t,r){e.length<r&&(r=e.length);const n=","===t?"":" ";let o=`"0":${n}${e[0]}`;for(let i=1;i<r;i++)o+=`${t}"${i}":${n}${e[i]}`;return o}function l(e,t){let n;if(r.call(e,t)){if(n=e[t],"number"!=typeof n)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===n?1/0:n}function f(e){return 1===e?"1 item":`${e} items`}function p(e){const t=function(e){if(r.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const n=function(e){if(r.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),o=function(e,t){let n;if(r.call(e,t)&&(n=e[t],"boolean"!=typeof n))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===n||n}(e,"bigint"),u=function(e){let t;if(r.call(e,"deterministic")&&(t=e.deterministic,"boolean"!=typeof t&&"function"!=typeof t))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return void 0===t||t}(e),p="function"==typeof u?u:void 0,h=l(e,"maximumDepth"),d=l(e,"maximumBreadth");function v(e,r,s,l,g,y){let m=r[e];switch("object"==typeof m&&null!==m&&"function"==typeof m.toJSON&&(m=m.toJSON(e)),m=l.call(r,e,m),typeof m){case"string":return i(m);case"object":{if(null===m)return"null";if(-1!==s.indexOf(m))return n;let e="",t=",";const r=y;if(Array.isArray(m)){if(0===m.length)return"[]";if(h<s.length+1)return'"[Array]"';s.push(m),""!==g&&(e+=`\n${y+=g}`,t=`,\n${y}`);const n=Math.min(m.length,d);let o=0;for(;o<n-1;o++){const r=v(String(o),m,s,l,g,y);e+=void 0!==r?r:"null",e+=t}const i=v(String(o),m,s,l,g,y);return e+=void 0!==i?i:"null",m.length-1>d&&(e+=`${t}"... ${f(m.length-d-1)} not stringified"`),""!==g&&(e+=`\n${r}`),s.pop(),`[${e}]`}let o=Object.keys(m);const b=o.length;if(0===b)return"{}";if(h<s.length+1)return'"[Object]"';let w="",S="";""!==g&&(t=`,\n${y+=g}`,w=" ");const A=Math.min(b,d);u&&!c(m)&&(o=a(o,p)),s.push(m);for(let r=0;r<A;r++){const n=o[r],a=v(n,m,s,l,g,y);void 0!==a&&(e+=`${S}${i(n)}:${w}${a}`,S=t)}return b>d&&(e+=`${S}"...":${w}"${f(b-d)} not stringified"`,S=t),""!==g&&S.length>1&&(e=`\n${y}${e}\n${r}`),s.pop(),`{${e}}`}case"number":return isFinite(m)?String(m):t?t(m):"null";case"boolean":return!0===m?"true":"false";case"undefined":return;case"bigint":if(o)return String(m);default:return t?t(m):void 0}}function g(e,r,a,u,c,s){switch("object"==typeof r&&null!==r&&"function"==typeof r.toJSON&&(r=r.toJSON(e)),typeof r){case"string":return i(r);case"object":{if(null===r)return"null";if(-1!==a.indexOf(r))return n;const e=s;let t="",o=",";if(Array.isArray(r)){if(0===r.length)return"[]";if(h<a.length+1)return'"[Array]"';a.push(r),""!==c&&(t+=`\n${s+=c}`,o=`,\n${s}`);const n=Math.min(r.length,d);let i=0;for(;i<n-1;i++){const e=g(String(i),r[i],a,u,c,s);t+=void 0!==e?e:"null",t+=o}const l=g(String(i),r[i],a,u,c,s);return t+=void 0!==l?l:"null",r.length-1>d&&(t+=`${o}"... ${f(r.length-d-1)} not stringified"`),""!==c&&(t+=`\n${e}`),a.pop(),`[${t}]`}a.push(r);let l="";""!==c&&(o=`,\n${s+=c}`,l=" ");let p="";for(const e of u){const n=g(e,r[e],a,u,c,s);void 0!==n&&(t+=`${p}${i(e)}:${l}${n}`,p=o)}return""!==c&&p.length>1&&(t=`\n${s}${t}\n${e}`),a.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(o)return String(r);default:return t?t(r):void 0}}function y(e,r,l,v,g){switch(typeof r){case"string":return i(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return y(e,r,l,v,g);if(null===r)return"null"}if(-1!==l.indexOf(r))return n;const t=g;if(Array.isArray(r)){if(0===r.length)return"[]";if(h<l.length+1)return'"[Array]"';l.push(r);let e=`\n${g+=v}`;const n=`,\n${g}`,o=Math.min(r.length,d);let i=0;for(;i<o-1;i++){const t=y(String(i),r[i],l,v,g);e+=void 0!==t?t:"null",e+=n}const a=y(String(i),r[i],l,v,g);return e+=void 0!==a?a:"null",r.length-1>d&&(e+=`${n}"... ${f(r.length-d-1)} not stringified"`),e+=`\n${t}`,l.pop(),`[${e}]`}let o=Object.keys(r);const m=o.length;if(0===m)return"{}";if(h<l.length+1)return'"[Object]"';const b=`,\n${g+=v}`;let w="",S="",A=Math.min(m,d);c(r)&&(w+=s(r,b,d),o=o.slice(r.length),A-=r.length,S=b),u&&(o=a(o,p)),l.push(r);for(let e=0;e<A;e++){const t=o[e],n=y(t,r[t],l,v,g);void 0!==n&&(w+=`${S}${i(t)}: ${n}`,S=b)}return m>d&&(w+=`${S}"...": "${f(m-d)} not stringified"`,S=b),""!==S&&(w=`\n${g}${w}\n${t}`),l.pop(),`{${w}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(o)return String(r);default:return t?t(r):void 0}}function m(e,r,l){switch(typeof r){case"string":return i(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return m(e,r,l);if(null===r)return"null"}if(-1!==l.indexOf(r))return n;let t="";const o=void 0!==r.length;if(o&&Array.isArray(r)){if(0===r.length)return"[]";if(h<l.length+1)return'"[Array]"';l.push(r);const e=Math.min(r.length,d);let n=0;for(;n<e-1;n++){const e=m(String(n),r[n],l);t+=void 0!==e?e:"null",t+=","}const o=m(String(n),r[n],l);return t+=void 0!==o?o:"null",r.length-1>d&&(t+=`,"... ${f(r.length-d-1)} not stringified"`),l.pop(),`[${t}]`}let v=Object.keys(r);const g=v.length;if(0===g)return"{}";if(h<l.length+1)return'"[Object]"';let y="",b=Math.min(g,d);o&&c(r)&&(t+=s(r,",",d),v=v.slice(r.length),b-=r.length,y=","),u&&(v=a(v,p)),l.push(r);for(let e=0;e<b;e++){const n=v[e],o=m(n,r[n],l);void 0!==o&&(t+=`${y}${i(n)}:${o}`,y=",")}return g>d&&(t+=`${y}"...":"${f(g-d)} not stringified"`),l.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(o)return String(r);default:return t?t(r):void 0}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return v("",{"":e},[],t,n,"");if(Array.isArray(t))return g("",e,[],function(e){const t=new Set;for(const r of e)"string"!=typeof r&&"number"!=typeof r||t.add(String(r));return t}(t),n,"")}if(0!==n.length)return y("",e,[],n,"")}return m("",e,[])}}},313(e,t,r){var n=r(535),o=r(929);e.exports=function(e,t,r,i,a){return new o(n().w(e,t,r,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},315(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},360(e){"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,a&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var u=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(u,c[t]):e.appendChild(u)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},507(e,t,r){var n=r(313);e.exports=function(e,t,r,o,i){var a=n(e,t,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},535(e,t,r){var n=r(736);function o(){var t,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,o,i,a){var u=o&&o.prototype instanceof l?o:l,c=Object.create(u.prototype);return n(c,"_invoke",function(e,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,a=0,u=t,p.n=r,s}};function h(e,n){for(a=e,u=n,r=0;!f&&c&&!o&&r<l.length;r++){var o,i=l[r],h=p.p,d=i[2];e>3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(a=0,p.v=n,p.n=i[1]):h<d&&(o=e<3||i[0]>n||n>d)&&(i[4]=e,i[5]=n,p.n=d,a=0))}if(o||e>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(r=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((r=(f=p.n<0)?u:e.call(n,p))!==s)break}catch(e){i=t,a=1,u=e}finally{c=1}}return{value:r,done:f}}}(e,i,a),!0),c}var s={};function l(){}function f(){}function p(){}r=Object.getPrototypeOf;var h=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),d=p.prototype=l.prototype=Object.create(h);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=p,n(d,"constructor",p),n(p,"constructor",f),f.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,a,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},564(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},736(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},790(e,t,r){var n=r(51)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},877(e,t,r){"use strict";r.d(t,{Ay:()=>p,Ck:()=>f,PB:()=>c,Ui:()=>s,nY:()=>u,qA:()=>l});var n=r(942),o=r.n(n),i=r(278),a=r.n(i)()(o());a.push([e.id,".sidepanel-container-producer__sidepanel-container___wwQyy{background:rgba(0,0,0,.6);height:100%;display:flex;flex-direction:column;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.sidepanel-container-producer__sidepanel-container___wwQyy *{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.sidepanel-container-producer__sidepanel-container___wwQyy *::selection{background-color:hsla(0,0%,100%,.4);color:inherit}.sidepanel-container-producer__sidepanel-container___wwQyy *::-moz-selection{background-color:hsla(0,0%,100%,.4);color:inherit}.sidepanel-container-producer__sidepanel-header___CuNlB{display:flex;align-items:center;width:100%;padding:16px 16px 0 16px;gap:8px}.sidepanel-container-producer__sidepanel-title___ZLiz7{color:#fff;flex:1;min-width:0;font-size:16px;font-weight:700;line-height:100%;letter-spacing:.01em;margin:0;justify-content:center}.sidepanel-container-producer__sidepanel-buttons-container___YAez9{display:flex;align-items:center;justify-content:center;line-height:100%}.sidepanel-container-producer__sidepanel-button___YPN3t{background:none !important;border:none !important;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;flex-shrink:0;transition:background-color .2s ease;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidepanel-container-producer__sidepanel-button___YPN3t:focus-visible{outline:2px solid hsla(0,0%,100%,.6);outline-offset:2px}.sidepanel-container-producer__sidepanel-content___G0WEt{flex:1;overflow:auto;height:100%}","",{version:3,sources:["webpack://./services/container/producers/sidepanel-container-producer.scss"],names:[],mappings:"AAAA,2DACE,yBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CAGA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAGA,6DACE,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAIF,wEACE,mCAAA,CACA,aAAA,CAGF,6EACE,mCAAA,CACA,aAAA,CAIJ,wDACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,wBAAA,CACA,OAAA,CAGF,uDACE,UAAA,CACA,MAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACA,QAAA,CACA,sBAAA,CAGF,mEACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,gBAAA,CAGF,wDACE,0BAAA,CACA,sBAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,SAAA,CACA,iBAAA,CACA,aAAA,CACA,oCAAA,CACA,UAAA,CACA,WAAA,CAGA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAEA,sEACE,oCAAA,CACA,kBAAA,CAIJ,yDACE,MAAA,CACA,aAAA,CACA,WAAA",sourcesContent:[".sidepanel-container {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n display: flex;\n flex-direction: column;\n\n /* Enable text selection and copy-paste functionality */\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n\n /* Ensure all child elements support text selection */\n * {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n }\n\n /* Style text selection */\n *::selection {\n background-color: rgba(255, 255, 255, 0.4);\n color: inherit;\n }\n\n *::-moz-selection {\n background-color: rgba(255, 255, 255, 0.4);\n color: inherit;\n }\n}\n\n.sidepanel-header {\n display: flex;\n align-items: center;\n width: 100%;\n padding: 16px 16px 0 16px;\n gap: 8px;\n}\n\n.sidepanel-title {\n color: #FFFFFF;\n flex: 1;\n min-width: 0;\n font-size: 16px;\n font-weight: 700;\n line-height: 100%;\n letter-spacing: 0.01em;\n margin: 0;\n justify-content: center;\n}\n\n.sidepanel-buttons-container {\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 100%;\n}\n\n.sidepanel-button {\n background: none !important;\n border: none !important;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-radius: 4px;\n flex-shrink: 0;\n transition: background-color 0.2s ease;\n width: 32px;\n height: 32px;\n\n /* Disable text selection on buttons but allow interaction */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n &:focus-visible {\n outline: 2px solid rgba(255, 255, 255, 0.6);\n outline-offset: 2px;\n }\n}\n\n.sidepanel-content {\n flex: 1;\n overflow: auto;\n height: 100%;\n}\n"],sourceRoot:""}]);var u="sidepanel-container-producer__sidepanel-container___wwQyy",c="sidepanel-container-producer__sidepanel-header___CuNlB",s="sidepanel-container-producer__sidepanel-title___ZLiz7",l="sidepanel-container-producer__sidepanel-buttons-container___YAez9",f="sidepanel-container-producer__sidepanel-button___YPN3t";const p=a},929(e,t,r){var n=r(114),o=r(736);e.exports=function e(t,r){function i(e,o,a,u){try{var c=t[e](o),s=c.value;return s instanceof n?r.resolve(s.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):r.resolve(s).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){i(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},942(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},961(e,t,r){var n=r(564).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}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.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})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{PlayerEvent:()=>b,UnisphereEvent:()=>m});const e=KalturaPlayer;function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return o="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},o(e)}function i(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function p(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,u,"next",e)}function u(e){h(i,n,o,a,u,"throw",e)}a(void 0)})}}var v=r(790),g=r.n(v);const y=KalturaPlayer.ui.preact;var m=function(e){return e.MEDIA_SEEK_TO_TIME="kaltura-player.events.media.seek-to-time",e}({}),b=function(e){return e.BUTTON_VISIBILITY_UPDATE="kaltura-player.events.button.visibility-update",e.PLUGIN_SIDEPANEL_OPENED_MANUAL="kaltura-player.events.plugin.sidepanel-opened-manual",e.PLUGIN_SIDEPANEL_OPENED_AUTO="kaltura-player.events.plugin.sidepanel-opened-auto",e.PLUGIN_SIDEPANEL_CLOSED="kaltura-player.events.plugin.sidepanel-closed",e}({}),w=function(e){return e.SELECTED_CHAPTER="selectedChapter",e.CURRENT_TIME="currentTime",e.IS_PAUSED="isPaused",e.PLAYER_SESSION="player-session",e.IS_SMALL_SIZE="isSmallSize",e}(w||{}),S=function(e){return e.SIDE_PANELS_MANAGER="sidePanelsManager",e.UPPER_BAR_MANAGER="upperBarManager",e}(S||{}),A=function(e){return e.SIDEPANEL="sidepanel",e.SIMPLE="simple",e}(A||{}),E=function(e){return["Playback"].includes(e)},O=e.ui.components.Tooltip,x=function(e){var t=e.onClick,r=e.className;return(0,y.h)("button",{"data-testid":"player_unisphere_closeButton",className:r,onClick:t},(0,y.h)(O,{label:"Close",type:"bottom"},(0,y.h)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,y.h)("path",{d:"M15.6592 14.245L10.7048 9.29061C10.317 8.9028 9.68581 8.90476 9.29528 9.29528C8.90204 9.68853 8.90267 10.3169 9.29061 10.7048L14.245 15.6592L9.29061 20.6137C8.9028 21.0015 8.90476 21.6327 9.29528 22.0232C9.68853 22.4165 10.3169 22.4158 10.7048 22.0279L15.6592 17.0735L20.6137 22.0279C21.0015 22.4157 21.6327 22.4137 22.0232 22.0232C22.4165 21.63 22.4158 21.0016 22.0279 20.6137L17.0735 15.6592L22.0279 10.7048C22.4157 10.317 22.4137 9.68581 22.0232 9.29528C21.63 8.90204 21.0016 8.90267 20.6137 9.29061L15.6592 14.245Z",fill:"white"}))))},k=function(e){var t;return(0,y.h)("div",{"data-testid":"player_unisphere_containerElement",style:null!==(t=e.style)&&void 0!==t?t:{},id:e.id})};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const _=KalturaPlayer.ui.preactHooks;function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var R=e.ui.components.Tooltip,T=function(e){var t=e.buttons,r=e.buttonClassName,n=e.containerClassName,o=e.player,i=P((0,_.useState)({}),2),a=i[0],u=i[1];return(0,_.useEffect)(function(){var e=function(e){var t=e.payload||{},r=t.buttonId,n=t.visible;"string"==typeof r&&"boolean"==typeof n&&u(function(e){return j(j({},e),{},p({},r,n))})};return o.addEventListener(b.BUTTON_VISIBILITY_UPDATE,e),function(){o.removeEventListener(b.BUTTON_VISIBILITY_UPDATE,e)}},[o]),(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelButtons",className:n},t.filter(function(e){var t=a[e.id];return void 0!==t?t:!1!==e.visible}).map(function(e){return(0,y.h)("button",{"data-testid":"player_unisphere_sidepanelButton",key:e.id,className:r,title:e.tooltip,onClick:function(){e.onClick&&e.onClick()}},(0,y.h)(R,{label:e.tooltip,type:"bottom"},(0,y.h)("svg",{id:"unisphere-icon-".concat(e.id),width:"24px",height:"32px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,y.h)("path",{d:e.icon,fill:"white"}))))}))},N=e.ui.components,L=N.Tooltip,M=N.Icon,$=function(t){var r=t.id,n=t.label,o=t.iconPath;return(0,y.h)(L,{label:n,type:"bottom"},(0,y.h)("button",{type:"button","data-testid":"player_unisphere_upperBarIcon","aria-label":n,className:e.ui.style.upperBarIcon},(0,y.h)(M,{id:"unisphere-icon-".concat(r),height:32,width:32,viewBox:"0 0 32 32",path:o})))},D=function(){function e(){t(this,e)}return u(e,null,[{key:"set",value:function(t){e.workspaceInstance=t}},{key:"get",value:function(){return e.workspaceInstance}},{key:"destroy",value:function(){try{this.workspaceInstance.kill()}catch(e){}e.workspaceInstance=null}}])}();function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}p(D,"workspaceInstance",null);var B,F=function(){function e(){t(this,e)}return u(e,null,[{key:"addToUnsubscribeMap",value:function(t){return e.unsubscribeMap.set(e.sequence,t),++e.sequence,e.sequence}},{key:"unsubscribeAll",value:function(){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return U(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e.unsubscribeMap);try{for(r.s();!(t=r.n()).done;){var n=P(t.value,2),o=n[0];(0,n[1])(),e.unsubscribeMap.delete(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"unsubscribe",value:function(t){var r=e.unsubscribeMap.get(t);r&&(r(),e.unsubscribeMap.delete(t))}}])}();function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}p(F,"unsubscribeMap",new Map),p(F,"sequence",-1),p(function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,z()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r)}(F),"get",function(){var e=d(g().mark(function e(t){var r,n,o,i,a,u;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.widgetId,n=t.context,o=t.settings,i=D.get(),e.prev=1,e.next=2,null==i?void 0:i.loadRuntime(r,n,o||{});case 2:return a=e.sent,e.abrupt("return",a?null==a?void 0:a.runtime:null);case 3:return e.prev=3,u=e.catch(1),e.abrupt("return",Promise.reject(u));case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}());var W,H="unisphere.service.pub-sub",q=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,G()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}(F);function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}B=q,p(q,"subscribe",function(e,t){var r=D.get(),n=null==r?void 0:r.getService(H);if(n){var o=n.subscribe(e,t);return B.addToUnsubscribeMap(o)}return-1}),p(q,"emit",function(e,t){var r=D.get(),n=null==r?void 0:r.getService(H);null==n||n.emit({id:e,version:"1.0.0",payload:t})});var Y="player",J="unisphere.service.storage",K=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,V()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}(F);W=K,p(K,"update",function(e,t){var r=D.get(),n=null==r?void 0:r.getService(J);null==n||n.update(Y,e,t)}),p(K,"get",function(e){var t=D.get(),r=null==t?void 0:t.getService(J);return r?r.get(Y,e):null}),p(K,"subscribe",function(e,t){var r=D.get(),n=null==r?void 0:r.getService(J);if(n){var o=n.subscribe(t,{namespace:Y,property:e,emitLastValue:!0});W.addToUnsubscribeMap(o)}});const Q=KalturaPlayer.core;function X(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+Q.Utils.Generator.uniqueId(10)}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ee=function(){return u(function e(){t(this,e),p(this,"_disposers",new Map)},[{key:"generateId",value:function(e){return X("".concat(e.containerType,"_container_"))}},{key:"getSidePanelsManager",value:function(e){return e.getService(S.SIDE_PANELS_MANAGER)}},{key:"addDisposer",value:function(e,t){this._disposers.set(e,t)}},{key:"dispose",value:function(e){var t=this._disposers.get(e);t&&(t(),this._disposers.delete(e))}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this._disposers);try{for(t.s();!(e=t.n()).done;){var r=P(e.value,1)[0];this.dispose(r)}}catch(e){t.e(e)}finally{t.f()}}}])}(),te=r(292),re=r.n(te),ne=r(360),oe=r.n(ne),ie=r(296),ae=r.n(ie),ue=r(88),ce=r.n(ue),se=r(877),le={attributes:{id:"@playkit-js/unisphere-service"}};function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fe=function(){return!!e})()}le.setAttributes=ae(),le.insert=function(e){window.kalturaGlobalConfig&&"string"==typeof window.kalturaGlobalConfig.stylesNonce&&e.setAttribute("nonce",window.kalturaGlobalConfig.stylesNonce),document.head.appendChild(e)},le.domAPI=oe(),le.insertStyleElement=ce(),re()(se.Ay,le),se.Ay&&se.Ay.locals&&se.Ay.locals;var pe=function(r){function n(){return t(this,n),e=this,o=arguments,r=s(r=n),c(e,fe()?Reflect.construct(r,o||[],s(e).constructor):r.apply(e,o));var e,r,o}return f(n,r),u(n,[{key:"createContainer",value:function(e,t){var r,n=this,o=this.generateId(t),i=t.unisphereArea,a=t.position,u=t.expandMode,c=t.presets,s=t.layout,l=t.runtimeWidgetName;console.log("Creating side panel with containerId:",o);var f=null===(r=this.getSidePanelsManager(e))||void 0===r?void 0:r.add({label:o,panelComponent:function(){return n.createSidepanelComponent(s,o,f,e,l)},presets:c,position:a,expandMode:u});return"number"==typeof f?(this.addDisposer(o,function(){var t;null===(t=n.getSidePanelsManager(e))||void 0===t||t.remove(f)}),K.update(i,{upperBarIcon:{panelId:f}}),o):null}},{key:"createSidepanelComponent",value:function(t,r,n,o,i){var a=this;return(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelComponent",className:se.nY},(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelHeader",className:se.PB},(0,y.h)("h3",{"data-testid":"player_unisphere_sidepanelTitle",className:se.Ui},"buttons"===t.sidepanel.header.type?t.sidepanel.header.title:""),t.sidepanel.header.buttons&&(0,y.h)(T,{buttons:t.sidepanel.header.buttons,buttonClassName:se.Ck,containerClassName:se.qA,player:o}),t.sidepanel.header.showCloseButton&&(0,y.h)(x,{className:se.Ck,onClick:function(){var t;null===(t=a.getSidePanelsManager(o))||void 0===t||t.deactivateItem(n),o.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_CLOSED,{runtimeWidgetName:i}))}})),(0,y.h)(k,{style:{flex:"1",overflow:"auto",height:"100%"},id:r}))}}])}(ee);function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(he=function(){return!!e})()}var de=function(e){function r(){return t(this,r),e=this,o=arguments,n=s(n=r),c(e,he()?Reflect.construct(n,o||[],s(e).constructor):n.apply(e,o));var e,n,o}return f(r,e),u(r,[{key:"createContainer",value:function(e,t){var r=this.generateId(t),n=t.playerArea,o=t.presets,i=e.ui.addComponent({label:r,presets:o,area:n,get:function(){return(0,y.h)(k,{style:{width:"inherit"},id:r})}});return this.addDisposer(r,i),r}}])}(ee);function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ge=function(){return u(function e(r){t(this,e),p(this,"containerProducers",new Map),this.player=r,this.containerProducers.set(A.SIDEPANEL,new pe),this.containerProducers.set(A.SIMPLE,new de)},[{key:"createContainer",value:function(e){var t=this.containerProducers.get(e.containerType);return t?t.createContainer(this.player,e):null}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this.containerProducers);try{for(t.s();!(e=t.n()).done;){var r,n=P(e.value,1)[0];null===(r=this.containerProducers.get(n))||void 0===r||r.destroy()}}catch(e){t.e(e)}finally{t.f()}}}])}();r(312).configure;var ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},me=function(e){return e&&e.Math===Math&&e},be=me("object"==typeof globalThis&&globalThis)||me("object"==typeof window&&window)||me("object"==typeof self&&self)||me("object"==typeof ye&&ye)||me("object"==typeof ye&&ye)||function(){return this}()||Function("return this")(),we={},Se=function(e){try{return!!e()}catch(e){return!0}},Ae=!Se(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Ee=!Se(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Oe=Ee,xe=Function.prototype.call,ke=Oe?xe.bind(xe):function(){return xe.apply(xe,arguments)},Ie={},Pe={}.propertyIsEnumerable,_e=Object.getOwnPropertyDescriptor,Ce=_e&&!Pe.call({1:2},1);Ie.f=Ce?function(e){var t=_e(this,e);return!!t&&t.enumerable}:Pe;var je,Re,Te=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ne=Ee,Le=Function.prototype,Me=Le.call,$e=Ne&&Le.bind.bind(Me,Me),De=Ne?$e:function(e){return function(){return Me.apply(e,arguments)}},Ue=De,Be=Ue({}.toString),Fe=Ue("".slice),ze=function(e){return Fe(Be(e),8,-1)},Ge=Se,We=ze,He=Object,qe=De("".split),Ve=Ge(function(){return!He("z").propertyIsEnumerable(0)})?function(e){return"String"===We(e)?qe(e,""):He(e)}:He,Ye=function(e){return null==e},Je=Ye,Ke=TypeError,Qe=function(e){if(Je(e))throw new Ke("Can't call method on "+e);return e},Xe=Ve,Ze=Qe,et=function(e){return Xe(Ze(e))},tt="object"==typeof document&&document.all,rt=void 0===tt&&void 0!==tt?function(e){return"function"==typeof e||e===tt}:function(e){return"function"==typeof e},nt=rt,ot=function(e){return"object"==typeof e?null!==e:nt(e)},it=be,at=rt,ut=function(e,t){return arguments.length<2?(r=it[e],at(r)?r:void 0):it[e]&&it[e][t];var r},ct=De({}.isPrototypeOf),st=be.navigator,lt=st&&st.userAgent,ft=lt?String(lt):"",pt=be,ht=ft,dt=pt.process,vt=pt.Deno,gt=dt&&dt.versions||vt&&vt.version,yt=gt&&gt.v8;yt&&(Re=(je=yt.split("."))[0]>0&&je[0]<4?1:+(je[0]+je[1])),!Re&&ht&&(!(je=ht.match(/Edge\/(\d+)/))||je[1]>=74)&&(je=ht.match(/Chrome\/(\d+)/))&&(Re=+je[1]);var mt=Re,bt=mt,wt=Se,St=be.String,At=!!Object.getOwnPropertySymbols&&!wt(function(){var e=Symbol("symbol detection");return!St(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bt&&bt<41}),Et=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,kt=ct,It=Object,Pt=Et?function(e){return"symbol"==typeof e}:function(e){var t=Ot("Symbol");return xt(t)&&kt(t.prototype,It(e))},_t=String,Ct=function(e){try{return _t(e)}catch(e){return"Object"}},jt=rt,Rt=Ct,Tt=TypeError,Nt=function(e){if(jt(e))return e;throw new Tt(Rt(e)+" is not a function")},Lt=Nt,Mt=Ye,$t=function(e,t){var r=e[t];return Mt(r)?void 0:Lt(r)},Dt=ke,Ut=rt,Bt=ot,Ft=TypeError,zt={exports:{}},Gt=be,Wt=Object.defineProperty,Ht=function(e,t){try{Wt(Gt,e,{value:t,configurable:!0,writable:!0})}catch(r){Gt[e]=t}return t},qt=be,Vt=Ht,Yt="__core-js_shared__",Jt=zt.exports=qt[Yt]||Vt(Yt,{});(Jt.versions||(Jt.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=zt.exports,Qt=Kt,Xt=function(e,t){return Qt[e]||(Qt[e]=t||{})},Zt=Qe,er=Object,tr=function(e){return er(Zt(e))},rr=tr,nr=De({}.hasOwnProperty),or=Object.hasOwn||function(e,t){return nr(rr(e),t)},ir=De,ar=0,ur=Math.random(),cr=ir(1.1.toString),sr=function(e){return"Symbol("+(void 0===e?"":e)+")_"+cr(++ar+ur,36)},lr=Xt,fr=or,pr=sr,hr=At,dr=Et,vr=be.Symbol,gr=lr("wks"),yr=dr?vr.for||vr:vr&&vr.withoutSetter||pr,mr=function(e){return fr(gr,e)||(gr[e]=hr&&fr(vr,e)?vr[e]:yr("Symbol."+e)),gr[e]},br=ke,wr=ot,Sr=Pt,Ar=$t,Er=TypeError,Or=mr("toPrimitive"),xr=function(e,t){if(!wr(e)||Sr(e))return e;var r,n=Ar(e,Or);if(n){if(void 0===t&&(t="default"),r=br(n,e,t),!wr(r)||Sr(r))return r;throw new Er("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Ut(r=e.toString)&&!Bt(n=Dt(r,e)))return n;if(Ut(r=e.valueOf)&&!Bt(n=Dt(r,e)))return n;if("string"!==t&&Ut(r=e.toString)&&!Bt(n=Dt(r,e)))return n;throw new Ft("Can't convert object to primitive value")}(e,t)},kr=Pt,Ir=function(e){var t=xr(e,"string");return kr(t)?t:t+""},Pr=ot,_r=be.document,Cr=Pr(_r)&&Pr(_r.createElement),jr=function(e){return Cr?_r.createElement(e):{}},Rr=jr,Tr=!Ae&&!Se(function(){return 7!==Object.defineProperty(Rr("div"),"a",{get:function(){return 7}}).a}),Nr=Ae,Lr=ke,Mr=Ie,$r=Te,Dr=et,Ur=Ir,Br=or,Fr=Tr,zr=Object.getOwnPropertyDescriptor;we.f=Nr?zr:function(e,t){if(e=Dr(e),t=Ur(t),Fr)try{return zr(e,t)}catch(e){}if(Br(e,t))return $r(!Lr(Mr.f,e,t),e[t])};var Gr={},Wr=Ae&&Se(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Hr=ot,qr=String,Vr=TypeError,Yr=function(e){if(Hr(e))return e;throw new Vr(qr(e)+" is not an object")},Jr=Ae,Kr=Tr,Qr=Wr,Xr=Yr,Zr=Ir,en=TypeError,tn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,nn="enumerable",on="configurable",an="writable";Gr.f=Jr?Qr?function(e,t,r){if(Xr(e),t=Zr(t),Xr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&an in r&&!r[an]){var n=rn(e,t);n&&n[an]&&(e[t]=r.value,r={configurable:on in r?r[on]:n[on],enumerable:nn in r?r[nn]:n[nn],writable:!1})}return tn(e,t,r)}:tn:function(e,t,r){if(Xr(e),t=Zr(t),Xr(r),Kr)try{return tn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new en("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var un=Gr,cn=Te,sn=Ae?function(e,t,r){return un.f(e,t,cn(1,r))}:function(e,t,r){return e[t]=r,e},ln={exports:{}},fn=Ae,pn=or,hn=Function.prototype,dn=fn&&Object.getOwnPropertyDescriptor,vn=pn(hn,"name"),gn={PROPER:vn&&"something"===function(){}.name,CONFIGURABLE:vn&&(!fn||fn&&dn(hn,"name").configurable)},yn=rt,mn=Kt,bn=De(Function.toString);yn(mn.inspectSource)||(mn.inspectSource=function(e){return bn(e)});var wn,Sn,An,En=mn.inspectSource,On=rt,xn=be.WeakMap,kn=On(xn)&&/native code/.test(String(xn)),In=sr,Pn=Xt("keys"),_n=function(e){return Pn[e]||(Pn[e]=In(e))},Cn={},jn=kn,Rn=be,Tn=ot,Nn=sn,Ln=or,Mn=Kt,$n=_n,Dn=Cn,Un="Object already initialized",Bn=Rn.TypeError,Fn=Rn.WeakMap;if(jn||Mn.state){var zn=Mn.state||(Mn.state=new Fn);zn.get=zn.get,zn.has=zn.has,zn.set=zn.set,wn=function(e,t){if(zn.has(e))throw new Bn(Un);return t.facade=e,zn.set(e,t),t},Sn=function(e){return zn.get(e)||{}},An=function(e){return zn.has(e)}}else{var Gn=$n("state");Dn[Gn]=!0,wn=function(e,t){if(Ln(e,Gn))throw new Bn(Un);return t.facade=e,Nn(e,Gn,t),t},Sn=function(e){return Ln(e,Gn)?e[Gn]:{}},An=function(e){return Ln(e,Gn)}}var Wn={set:wn,get:Sn,has:An,enforce:function(e){return An(e)?Sn(e):wn(e,{})},getterFor:function(e){return function(t){var r;if(!Tn(t)||(r=Sn(t)).type!==e)throw new Bn("Incompatible receiver, "+e+" required");return r}}},Hn=De,qn=Se,Vn=rt,Yn=or,Jn=Ae,Kn=gn.CONFIGURABLE,Qn=En,Xn=Wn.enforce,Zn=Wn.get,eo=String,to=Object.defineProperty,ro=Hn("".slice),no=Hn("".replace),oo=Hn([].join),io=Jn&&!qn(function(){return 8!==to(function(){},"length",{value:8}).length}),ao=String(String).split("String"),uo=ln.exports=function(e,t,r){"Symbol("===ro(eo(t),0,7)&&(t="["+no(eo(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Yn(e,"name")||Kn&&e.name!==t)&&(Jn?to(e,"name",{value:t,configurable:!0}):e.name=t),io&&r&&Yn(r,"arity")&&e.length!==r.arity&&to(e,"length",{value:r.arity});try{r&&Yn(r,"constructor")&&r.constructor?Jn&&to(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Xn(e);return Yn(n,"source")||(n.source=oo(ao,"string"==typeof t?t:"")),e};Function.prototype.toString=uo(function(){return Vn(this)&&Zn(this).source||Qn(this)},"toString");var co=ln.exports,so=rt,lo=Gr,fo=co,po=Ht,ho=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(so(r)&&fo(r,i,n),n.global)o?e[t]=r:po(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:lo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},vo={},go=Math.ceil,yo=Math.floor,mo=Math.trunc||function(e){var t=+e;return(t>0?yo:go)(t)},bo=function(e){var t=+e;return t!=t||0===t?0:mo(t)},wo=bo,So=Math.max,Ao=Math.min,Eo=bo,Oo=Math.min,xo=function(e){var t=Eo(e);return t>0?Oo(t,9007199254740991):0},ko=xo,Io=function(e){return ko(e.length)},Po=et,_o=Io,Co=function(e){return function(t,r,n){var o=Po(t),i=_o(o);if(0===i)return!e&&-1;var a,u=function(e,t){var r=wo(e);return r<0?So(r+t,0):Ao(r,t)}(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},jo={includes:Co(!0),indexOf:Co(!1)},Ro=or,To=et,No=jo.indexOf,Lo=Cn,Mo=De([].push),$o=function(e,t){var r,n=To(e),o=0,i=[];for(r in n)!Ro(Lo,r)&&Ro(n,r)&&Mo(i,r);for(;t.length>o;)Ro(n,r=t[o++])&&(~No(i,r)||Mo(i,r));return i},Do=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Uo=$o,Bo=Do.concat("length","prototype");vo.f=Object.getOwnPropertyNames||function(e){return Uo(e,Bo)};var Fo={};Fo.f=Object.getOwnPropertySymbols;var zo=ut,Go=vo,Wo=Fo,Ho=Yr,qo=De([].concat),Vo=zo("Reflect","ownKeys")||function(e){var t=Go.f(Ho(e)),r=Wo.f;return r?qo(t,r(e)):t},Yo=or,Jo=Vo,Ko=we,Qo=Gr,Xo=function(e,t,r){for(var n=Jo(t),o=Qo.f,i=Ko.f,a=0;a<n.length;a++){var u=n[a];Yo(e,u)||r&&Yo(r,u)||o(e,u,i(t,u))}},Zo=Se,ei=rt,ti=/#|\.prototype\./,ri=function(e,t){var r=oi[ni(e)];return r===ai||r!==ii&&(ei(t)?Zo(t):!!t)},ni=ri.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},oi=ri.data={},ii=ri.NATIVE="N",ai=ri.POLYFILL="P",ui=ri,ci=be,si=we.f,li=sn,fi=ho,pi=Ht,hi=Xo,di=ui,vi=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?ci:s?ci[u]||pi(u,{}):ci[u]&&ci[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=si(r,n))&&a.value:r[n],!di(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hi(i,o)}(e.sham||o&&o.sham)&&li(i,"sham",!0),fi(r,n,i,e)}},gi=ze,yi=Array.isArray||function(e){return"Array"===gi(e)},mi=Ae,bi=yi,wi=TypeError,Si=Object.getOwnPropertyDescriptor,Ai=mi&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Ei=TypeError,Oi=tr,xi=Io,ki=Ai?function(e,t){if(bi(e)&&!Si(e,"length").writable)throw new wi("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};vi({target:"Array",proto:!0,arity:1,forced:Se(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=Oi(this),r=xi(t),n=arguments.length;!function(e){if(e>9007199254740991)throw Ei("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return ki(t,r),r}});var Ii={},Pi=$o,_i=Do,Ci=Object.keys||function(e){return Pi(e,_i)},ji=Ae,Ri=Wr,Ti=Gr,Ni=Yr,Li=et,Mi=Ci;Ii.f=ji&&!Ri?Object.defineProperties:function(e,t){Ni(e);for(var r,n=Li(t),o=Mi(t),i=o.length,a=0;i>a;)Ti.f(e,r=o[a++],n[r]);return e};var $i,Di=ut("document","documentElement"),Ui=Yr,Bi=Ii,Fi=Do,zi=Cn,Gi=Di,Wi=jr,Hi="prototype",qi="script",Vi=_n("IE_PROTO"),Yi=function(){},Ji=function(e){return"<"+qi+">"+e+"</"+qi+">"},Ki=function(e){e.write(Ji("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qi=function(){try{$i=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Qi="undefined"!=typeof document?document.domain&&$i?Ki($i):(t=Wi("iframe"),r="java"+qi+":",t.style.display="none",Gi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ji("document.F=Object")),e.close(),e.F):Ki($i);for(var n=Fi.length;n--;)delete Qi[Hi][Fi[n]];return Qi()};zi[Vi]=!0;var Xi=Object.create||function(e,t){var r;return null!==e?(Yi[Hi]=Ui(e),r=new Yi,Yi[Hi]=null,r[Vi]=e):r=Qi(),void 0===t?r:Bi.f(r,t)},Zi=mr,ea=Xi,ta=Gr.f,ra=Zi("unscopables"),na=Array.prototype;void 0===na[ra]&&ta(na,ra,{configurable:!0,value:ea(null)});var oa,ia,aa,ua=function(e){na[ra][e]=!0},ca={},sa=!Se(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),la=or,fa=rt,pa=tr,ha=sa,da=_n("IE_PROTO"),va=Object,ga=va.prototype,ya=ha?va.getPrototypeOf:function(e){var t=pa(e);if(la(t,da))return t[da];var r=t.constructor;return fa(r)&&t instanceof r?r.prototype:t instanceof va?ga:null},ma=Se,ba=rt,wa=ot,Sa=ya,Aa=ho,Ea=mr("iterator"),Oa=!1;[].keys&&("next"in(aa=[].keys())?(ia=Sa(Sa(aa)))!==Object.prototype&&(oa=ia):Oa=!0);var xa=!wa(oa)||ma(function(){var e={};return oa[Ea].call(e)!==e});xa&&(oa={}),ba(oa[Ea])||Aa(oa,Ea,function(){return this});var ka={IteratorPrototype:oa,BUGGY_SAFARI_ITERATORS:Oa},Ia=Gr.f,Pa=or,_a=mr("toStringTag"),Ca=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Pa(e,_a)&&Ia(e,_a,{configurable:!0,value:t})},ja=ka.IteratorPrototype,Ra=Xi,Ta=Te,Na=Ca,La=ca,Ma=function(){return this},$a=De,Da=Nt,Ua=function(e,t,r){try{return $a(Da(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Ba=ot,Fa=String,za=TypeError,Ga=Ua,Wa=ot,Ha=Qe,qa=function(e){if(function(e){return Ba(e)||null===e}(e))return e;throw new za("Can't set "+Fa(e)+" as a prototype")},Va=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ga(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Ha(r),qa(n),Wa(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Ya=vi,Ja=ke,Ka=rt,Qa=ya,Xa=Va,Za=Ca,eu=sn,tu=ho,ru=ca,nu=gn.PROPER,ou=gn.CONFIGURABLE,iu=ka.IteratorPrototype,au=ka.BUGGY_SAFARI_ITERATORS,uu=mr("iterator"),cu="keys",su="values",lu="entries",fu=function(){return this},pu=function(e,t){return{value:e,done:t}},hu=et,du=ua,vu=ca,gu=Wn,yu=Gr.f,mu=pu,bu=Ae,wu="Array Iterator",Su=gu.set,Au=gu.getterFor(wu),Eu=function(e,t,r,n,o,i,a){!function(e,t,r,n){var o=t+" Iterator";e.prototype=Ra(ja,{next:Ta(+!n,r)}),Na(e,o,!1),La[o]=Ma}(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!au&&e&&e in h)return h[e];switch(e){case cu:case su:case lu:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[uu]||h["@@iterator"]||o&&h[o],v=!au&&d||l(o),g="Array"===t&&h.entries||d;if(g&&(u=Qa(g.call(new e)))!==Object.prototype&&u.next&&(Qa(u)!==iu&&(Xa?Xa(u,iu):Ka(u[uu])||tu(u,uu,fu)),Za(u,f,!0)),nu&&o===su&&d&&d.name!==su&&(ou?eu(h,"name",su):(p=!0,v=function(){return Ja(d,this)})),o)if(c={values:l(su),keys:i?v:l(cu),entries:l(lu)},a)for(s in c)(au||p||!(s in h))&&tu(h,s,c[s]);else Ya({target:t,proto:!0,forced:au||p},c);return h[uu]!==v&&tu(h,uu,v,{name:o}),ru[t]=v,c}(Array,"Array",function(e,t){Su(this,{type:wu,target:hu(e),index:0,kind:t})},function(){var e=Au(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,mu(void 0,!0);switch(e.kind){case"keys":return mu(r,!1);case"values":return mu(t[r],!1)}return mu([r,t[r]],!1)},"values"),Ou=vu.Arguments=vu.Array;if(du("keys"),du("values"),du("entries"),bu&&"values"!==Ou.name)try{yu(Ou,"name",{value:"values"})}catch(e){}var xu=ct,ku=TypeError,Iu=co,Pu=Gr,_u=Ae,Cu=Gr,ju=Te,Ru=function(e,t,r){_u?Cu.f(e,t,ju(0,r)):e[t]=r},Tu=vi,Nu=be,Lu=Yr,Mu=rt,$u=ya,Du=Ru,Uu=Se,Bu=or,Fu=ka.IteratorPrototype,zu=Ae,Gu="constructor",Wu="Iterator",Hu=mr("toStringTag"),qu=TypeError,Vu=Nu[Wu],Yu=!Mu(Vu)||Vu.prototype!==Fu||!Uu(function(){Vu({})}),Ju=function(){if(function(e,t){if(xu(t,e))return e;throw new ku("Incorrect invocation")}(this,Fu),$u(this)===Fu)throw new qu("Abstract class Iterator not directly constructable")},Ku=function(e,t){zu?function(e,t,r){r.get&&Iu(r.get,t,{getter:!0}),r.set&&Iu(r.set,t,{setter:!0}),Pu.f(e,t,r)}(Fu,e,{configurable:!0,get:function(){return t},set:function(t){if(Lu(this),this===Fu)throw new qu("You can't redefine this property");Bu(this,e)?this[e]=t:Du(this,e,t)}}):Fu[e]=t};Bu(Fu,Hu)||Ku(Hu,Wu),!Yu&&Bu(Fu,Gu)&&Fu[Gu]!==Object||Ku(Gu,Ju),Ju.prototype=Fu,Tu({global:!0,constructor:!0,forced:Yu},{Iterator:Ju});var Qu=function(e){return{iterator:e,next:e.next,done:!1}},Xu=ho,Zu=ke,ec=Yr,tc=$t,rc=function(e,t,r){var n,o;ec(e);try{if(!(n=tc(e,"return"))){if("throw"===t)throw r;return r}n=Zu(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ec(n),r},nc=rc,oc=ke,ic=Xi,ac=sn,uc=Wn,cc=$t,sc=ka.IteratorPrototype,lc=pu,fc=rc,pc=mr("toStringTag"),hc="IteratorHelper",dc="WrapForValidIterator",vc="normal",gc="throw",yc=uc.set,mc=function(e){var t=uc.getterFor(e?dc:hc);return function(e,t,r){for(var n in t)Xu(e,n,t[n],r);return e}(ic(sc),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return lc(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:lc(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=cc(n,"return");return o?oc(o,n):lc(void 0,!0)}if(r.inner)try{fc(r.inner.iterator,vc)}catch(e){return fc(n,gc,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=nc(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,vc)}catch(e){return fc(n,gc,e)}return n&&fc(n,vc),lc(void 0,!0)}})},bc=mc(!0),wc=mc(!1);ac(wc,pc,"Iterator Helper");var Sc=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?dc:hc,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,yc(this,o)};return n.prototype=t?bc:wc,n},Ac=Yr,Ec=rc,Oc=function(e,t,r,n){try{return n?t(Ac(r)[0],r[1]):t(r)}catch(t){Ec(e,"throw",t)}},xc=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}},kc=be,Ic=function(e,t){var r=kc.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},Pc=vi,_c=ke,Cc=Nt,jc=Yr,Rc=Qu,Tc=Sc,Nc=Oc,Lc=rc,Mc=Ic,$c=!xc("filter",function(){}),Dc=!$c&&Mc("filter",TypeError),Uc=$c||Dc,Bc=Tc(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=jc(_c(o,r)),this.done=!!e.done)return;if(t=e.value,Nc(r,n,[t,this.counter++],!0))return t}});Pc({target:"Iterator",proto:!0,real:!0,forced:Uc},{filter:function(e){jc(this);try{Cc(e)}catch(e){Lc(this,"throw",e)}return Dc?_c(Dc,this,e):new Bc(Rc(this),{predicate:e})}});var Fc=ze,zc=De,Gc=function(e){if("Function"===Fc(e))return zc(e)},Wc=Nt,Hc=Ee,qc=Gc(Gc.bind),Vc=ca,Yc=mr("iterator"),Jc=Array.prototype,Kc={};Kc[mr("toStringTag")]="z";var Qc="[object z]"===String(Kc),Xc=rt,Zc=ze,es=mr("toStringTag"),ts=Object,rs="Arguments"===Zc(function(){return arguments}()),ns=Qc?Zc: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=ts(e),es))?r:rs?Zc(t):"Object"===(n=Zc(t))&&Xc(t.callee)?"Arguments":n},os=ns,is=$t,as=Ye,us=ca,cs=mr("iterator"),ss=function(e){if(!as(e))return is(e,cs)||is(e,"@@iterator")||us[os(e)]},ls=ke,fs=Nt,ps=Yr,hs=Ct,ds=ss,vs=TypeError,gs=ke,ys=Yr,ms=Ct,bs=Io,ws=ct,Ss=ss,As=rc,Es=TypeError,Os=function(e,t){this.stopped=e,this.result=t},xs=Os.prototype,ks=function(e,t,r){var n,o,i,a,u,c,s,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),g=function(e,t){return Wc(e),void 0===t?e:Hc?qc(e,t):function(){return e.apply(t,arguments)}}(t,f),y=function(e){return n&&As(n,"normal"),new Os(!0,e)},m=function(e){return p?(ys(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(o=Ss(e)))throw new Es(ms(e)+" is not iterable");if(void 0!==(l=o)&&(Vc.Array===l||Jc[Yc]===l)){for(i=0,a=bs(e);a>i;i++)if((u=m(e[i]))&&ws(xs,u))return u;return new Os(!1)}n=function(e,t){var r=arguments.length<2?ds(e):t;if(fs(r))return ps(ls(r,e));throw new vs(hs(e)+" is not iterable")}(e,o)}for(c=h?e.next:n.next;!(s=gs(c,n)).done;){try{u=m(s.value)}catch(e){As(n,"throw",e)}if("object"==typeof u&&u&&ws(xs,u))return u}return new Os(!1)},Is=vi,Ps=ke,_s=ks,Cs=Nt,js=Yr,Rs=Qu,Ts=rc,Ns=Ic("forEach",TypeError);Is({target:"Iterator",proto:!0,real:!0,forced:Ns},{forEach:function(e){js(this);try{Cs(e)}catch(e){Ts(this,"throw",e)}if(Ns)return Ps(Ns,this,e);var t=Rs(this),r=0;_s(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var Ls=Ae,Ms=De,$s=ke,Ds=Se,Us=Ci,Bs=Fo,Fs=Ie,zs=tr,Gs=Ve,Ws=Object.assign,Hs=Object.defineProperty,qs=Ms([].concat),Vs=!Ws||Ds(function(){if(Ls&&1!==Ws({b:1},Ws(Hs({},"a",{enumerable:!0,get:function(){Hs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Ws({},e)[r]||Us(Ws({},t)).join("")!==n})?function(e,t){for(var r=zs(e),n=arguments.length,o=1,i=Bs.f,a=Fs.f;n>o;)for(var u,c=Gs(arguments[o++]),s=i?qs(Us(c),i(c)):Us(c),l=s.length,f=0;l>f;)u=s[f++],Ls&&!$s(a,c,u)||(r[u]=c[u]);return r}:Ws,Ys=Vs;vi({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ys},{assign:Ys});var Js=ns,Ks=String,Qs=function(e){if("Symbol"===Js(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ks(e)},Xs=Se,Zs=be.RegExp,el=!Xs(function(){var e=!0;try{Zs(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Zs.prototype,"flags").get.call(t)!==n||r!==n}),tl=Yr,rl=function(){var e=tl(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},nl=ke,ol=or,il=ct,al=el,ul=rl,cl=RegExp.prototype,sl=al?function(e){return e.flags}:function(e){return al||!il(cl,e)||ol(e,"flags")?e.flags:nl(ul,e)},ll=gn.PROPER,fl=ho,pl=Yr,hl=Qs,dl=Se,vl=sl,gl="toString",yl=RegExp.prototype,ml=yl[gl],bl=dl(function(){return"/a/b"!==ml.call({source:"a",flags:"b"})}),wl=ll&&ml.name!==gl;(bl||wl)&&fl(yl,gl,function(){var e=pl(this);return"/"+hl(e.source)+"/"+hl(vl(e))},{unsafe:!0});var Sl=jr("span").classList,Al=Sl&&Sl.constructor&&Sl.constructor.prototype,El=Al===Object.prototype?void 0:Al,Ol=be,xl={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},kl=El,Il=Eu,Pl=sn,_l=Ca,Cl=mr("iterator"),jl=Il.values,Rl=function(e,t){if(e){if(e[Cl]!==jl)try{Pl(e,Cl,jl)}catch(t){e[Cl]=jl}if(_l(e,t,!0),xl[t])for(var r in Il)if(e[r]!==Il[r])try{Pl(e,r,Il[r])}catch(t){e[r]=Il[r]}}};for(var Tl in xl)Rl(Ol[Tl]&&Ol[Tl].prototype,Tl);Rl(kl,"DOMTokenList"),"function"==typeof SuppressedError&&SuppressedError;const Nl=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);let Ll=window.unisphere;function Ml(e,t,r){return e in Ll?{value:Ll[e],isNew:!1}:(null==t||t.debug(`${e} not found on 'window.unisphere', creating with default value`,{data:{defaultValue:r}}),Ll[e]=r,{value:r,isNew:!0})}"unisphere"in window||(Ll=window.unisphere={});class $l{static createWorkspaceLogger(e){return new $l(e)}kill(){this._killed=!0,this._loggersStore.clear()}constructor(e){this.workspaceName=e,this._killed=!1,this._loggersStore=new Map}getLogger(e){return this.getOrCreateLogger("legacy",e)}getOrCreateLogger(e,t,r){const n=[e,t,null==r?void 0:r.scope,null==r?void 0:r.widgetName,null==r?void 0:r.runtimeName].filter(Boolean).join("."),o=this._loggersStore.get(n);if(o)return o;const i=new Dl({type:e,name:t,workspaceName:this.workspaceName,widgetName:null==r?void 0:r.widgetName,scope:null==r?void 0:r.scope,runtimeName:null==r?void 0:r.runtimeName});return this._loggersStore.set(n,i),i}}class Dl{constructor(e){this._options=e}createContextualGroup(){const e=this._options.contextId?`${this._options.contextId}.${Nl()}`:Nl();return new Dl(Object.assign(Object.assign({},this._options),{contextId:e}))}cloneLogger(e){const{newType:t,newName:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["newType","newName"]),o=Object.assign(Object.assign(Object.assign({},this._options),n),{type:t||this._options.type,name:r||this._options.name});return new Dl(o)}logMessage(e,t,r,n,o){const i={id:Nl(),salt:Math.random().toString(36).substring(4),type:(null==o?void 0:o.type)||this._options.type,name:(null==o?void 0:o.name)||this._options.name,workspaceName:this._options.workspaceName,widgetName:(null==o?void 0:o.widgetName)||this._options.widgetName,runtimeName:(null==o?void 0:o.runtimeName)||this._options.runtimeName,machineName:(null==o?void 0:o.machineName)||this._options.machineName,scope:this._options.scope,time:(new Date).toISOString(),message:t,data:r,error:n,level:e,contextId:this._options.contextId},a=function(){const{value:e}=Ml("loggers",null,{interceptors:[],logMessages:[],logToConsole:!0,logLevel:"warn"});return e}();if(a.logMessages.push(i),a.interceptors.forEach(e=>{e(i)}),this.shouldLog(e,a.logLevel)){const t={type:i.type,name:i.name,workspaceName:i.workspaceName,widgetName:i.widgetName,runtimeName:i.runtimeName,scope:i.scope,contextId:this._options.contextId},r=`${i.time} [Unisphere] ${i.message}`;switch(e){case"debug":console.debug(r,i.data,t);break;case"log":console.log(r,i.data,t);break;case"warn":console.warn(r,{data:i.data,error:i.error},t);break;case"error":console.error(r,{data:i.data,error:i.error},t)}}}shouldLog(e,t){const r=["debug","log","warn","error"];return r.indexOf(e)>=r.indexOf(t)}log(e,t){this.logMessage("log",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}debug(e,t){this.logMessage("debug",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}warn(e,t){this.logMessage("warn",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}error(e,t){this.logMessage("error",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}}var Ul=jo.includes,Bl=ua;vi({target:"Array",proto:!0,forced:Se(function(){return!Array(1).includes()})},{includes:function(e){return Ul(this,e,arguments.length>1?arguments[1]:void 0)}}),Bl("includes");var Fl=vi,zl=ke,Gl=Nt,Wl=Yr,Hl=Qu,ql=Sc,Vl=Oc,Yl=rc,Jl=Ic,Kl=!xc("map",function(){}),Ql=!Kl&&Jl("map",TypeError),Xl=Kl||Ql,Zl=ql(function(){var e=this.iterator,t=Wl(zl(this.next,e));if(!(this.done=!!t.done))return Vl(e,this.mapper,[t.value,this.counter++],!0)});Fl({target:"Iterator",proto:!0,real:!0,forced:Xl},{map:function(e){Wl(this);try{Gl(e)}catch(e){Yl(this,"throw",e)}return Ql?zl(Ql,this,e):new Zl(Hl(this),{mapper:e})}});var ef=vi,tf=ke,rf=ks,nf=Nt,of=Yr,af=Qu,uf=rc,cf=Ic("some",TypeError);ef({target:"Iterator",proto:!0,real:!0,forced:cf},{some:function(e){of(this);try{nf(e)}catch(e){uf(this,"throw",e)}if(cf)return tf(cf,this,e);var t=af(this),r=0;return rf(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var sf=ot,lf=ze,ff=mr("match"),pf=TypeError,hf=function(e){if(function(e){var t;return sf(e)&&(void 0!==(t=e[ff])?!!t:"RegExp"===lf(e))}(e))throw new pf("The method doesn't accept regular expressions");return e},df=mr("match"),vf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[df]=!1,"/./"[e](t)}catch(e){}}return!1},gf=vi,yf=hf,mf=Qe,bf=Qs,wf=vf,Sf=De("".indexOf);gf({target:"String",proto:!0,forced:!wf("includes")},{includes:function(e){return!!~Sf(bf(mf(this)),bf(yf(e)),arguments.length>1?arguments[1]:void 0)}});const Af={type:"or",properties:[{type:"custom",condition:(e,t)=>e&&"DIV"===e.tagName?[]:[{path:t,message:"Expected HTMLElement"}]},{type:"primitive",value:"string"},{type:"or",properties:[{type:"object",properties:{target:{type:"literal",value:"element"},elementId:{type:"primitive",value:"string"}}},{type:"object",properties:{target:{type:"literal",value:"body"},classNames:{type:"primitive",value:"string",optional:!0},style:{optional:!0,type:"map",value:{type:"primitive",value:"string"}}}}]}]};Object.assign(Object.assign({},Af),{optional:!0}),Object.assign(Object.assign({},Af),{optional:!1});var Ef=De,Of=Set.prototype,xf={Set,add:Ef(Of.add),has:Ef(Of.has),remove:Ef(Of.delete),proto:Of},kf=xf.has,If=function(e){return kf(e),e},Pf=ke,_f=function(e,t,r){for(var n,o,i=r?e:e.iterator,a=e.next;!(n=Pf(a,i)).done;)if(void 0!==(o=t(n.value)))return o},Cf=De,jf=_f,Rf=xf.Set,Tf=xf.proto,Nf=Cf(Tf.forEach),Lf=Cf(Tf.keys),Mf=Lf(new Rf).next,$f=function(e,t,r){return r?jf({iterator:Lf(e),next:Mf},t):Nf(e,t)},Df=$f,Uf=xf.Set,Bf=xf.add,Ff=function(e){var t=new Uf;return Df(e,function(e){Bf(t,e)}),t},zf=Ua(xf.proto,"size","get")||function(e){return e.size},Gf=Nt,Wf=Yr,Hf=ke,qf=bo,Vf=Qu,Yf="Invalid size",Jf=RangeError,Kf=TypeError,Qf=Math.max,Xf=function(e,t){this.set=e,this.size=Qf(t,0),this.has=Gf(e.has),this.keys=Gf(e.keys)};Xf.prototype={getIterator:function(){return Vf(Wf(Hf(this.keys,this.set)))},includes:function(e){return Hf(this.has,this.set,e)}};var Zf=function(e){Wf(e);var t=+e.size;if(t!=t)throw new Kf(Yf);var r=qf(t);if(r<0)throw new Jf(Yf);return new Xf(e,r)},ep=If,tp=Ff,rp=zf,np=Zf,op=$f,ip=_f,ap=xf.has,up=xf.remove,cp=ut,sp=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},lp=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}},fp=function(e,t){var r=cp("Set");try{(new r)[e](sp(0));try{return(new r)[e](sp(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](lp(-1/0)),!1}catch(n){return t(new r([1,2])[e](lp(1/0)))}}}catch(e){return!1}},pp=Se;vi({target:"Set",proto:!0,real:!0,forced:!fp("difference",function(e){return 0===e.size})||pp(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:function(e){var t=ep(this),r=np(e),n=tp(t);return rp(t)<=r.size?op(t,function(e){r.includes(e)&&up(n,e)}):ip(r.getIterator(),function(e){ap(n,e)&&up(n,e)}),n}});var hp=If,dp=zf,vp=Zf,gp=$f,yp=_f,mp=xf.Set,bp=xf.add,wp=xf.has,Sp=Se;vi({target:"Set",proto:!0,real:!0,forced:!fp("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||Sp(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:function(e){var t=hp(this),r=vp(e),n=new mp;return dp(t)>r.size?yp(r.getIterator(),function(e){wp(t,e)&&bp(n,e)}):gp(t,function(e){r.includes(e)&&bp(n,e)}),n}});var Ap=If,Ep=xf.has,Op=zf,xp=Zf,kp=$f,Ip=_f,Pp=rc;vi({target:"Set",proto:!0,real:!0,forced:!fp("isDisjointFrom",function(e){return!e})},{isDisjointFrom:function(e){var t=Ap(this),r=xp(e);if(Op(t)<=r.size)return!1!==kp(t,function(e){if(r.includes(e))return!1},!0);var n=r.getIterator();return!1!==Ip(n,function(e){if(Ep(t,e))return Pp(n,"normal",!1)})}});var _p=If,Cp=zf,jp=$f,Rp=Zf;vi({target:"Set",proto:!0,real:!0,forced:!fp("isSubsetOf",function(e){return e})},{isSubsetOf:function(e){var t=_p(this),r=Rp(e);return!(Cp(t)>r.size)&&!1!==jp(t,function(e){if(!r.includes(e))return!1},!0)}});var Tp=If,Np=xf.has,Lp=zf,Mp=Zf,$p=_f,Dp=rc;vi({target:"Set",proto:!0,real:!0,forced:!fp("isSupersetOf",function(e){return!e})},{isSupersetOf:function(e){var t=Tp(this),r=Mp(e);if(Lp(t)<r.size)return!1;var n=r.getIterator();return!1!==$p(n,function(e){if(!Np(t,e))return Dp(n,"normal",!1)})}});var Up=If,Bp=Ff,Fp=Zf,zp=_f,Gp=xf.add,Wp=xf.has,Hp=xf.remove,qp=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}},Vp=qp;vi({target:"Set",proto:!0,real:!0,forced:!fp("symmetricDifference")||!Vp("symmetricDifference")},{symmetricDifference:function(e){var t=Up(this),r=Fp(e).getIterator(),n=Bp(t);return zp(r,function(e){Wp(t,e)?Hp(n,e):Gp(n,e)}),n}});var Yp=If,Jp=xf.add,Kp=Ff,Qp=Zf,Xp=_f,Zp=qp;vi({target:"Set",proto:!0,real:!0,forced:!fp("union")||!Zp("union")},{union:function(e){var t=Yp(this),r=Qp(e).getIterator(),n=Kp(t);return Xp(r,function(e){Jp(n,e)}),n}});var eh=Ee,th=Function.prototype,rh=th.apply,nh=th.call,oh="object"==typeof Reflect&&Reflect.apply||(eh?nh.bind(rh):function(){return nh.apply(rh,arguments)}),ih=Gr.f,ah=rt,uh=ot,ch=Va,sh=Qs,lh=ot,fh=sn,ph=Error,hh=De("".replace),dh=String(new ph("zxcasd").stack),vh=/\n\s*at [^:]*:[^\n]*/,gh=vh.test(dh),yh=Te,mh=!Se(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",yh(1,7)),7!==e.stack)}),bh=sn,wh=mh,Sh=Error.captureStackTrace,Ah=ut,Eh=or,Oh=sn,xh=ct,kh=Va,Ih=Xo,Ph=function(e,t,r){r in e||ih(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},_h=function(e,t,r,n){wh&&(Sh?Sh(e,t):bh(e,"stack",function(e,t){if(gh&&"string"==typeof e&&!ph.prepareStackTrace)for(;t--;)e=hh(e,vh,"");return e}(r,n)))},Ch=Ae,jh=vi,Rh=oh,Th=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=Ah.apply(null,a);if(c){var s=c.prototype;if(Eh(s,"cause")&&delete s.cause,!r)return c;var l=Ah("Error"),f=t(function(e,t){var r,o,a,u,l,p=function(e,t){return void 0===e?arguments.length<2?"":t:sh(e)}(n?t:e,void 0),h=n?new c(e):new c;return void 0!==p&&Oh(h,"message",p),_h(h,f,h.stack,2),this&&xh(s,this)&&(r=h,o=this,a=f,ch&&ah(u=o.constructor)&&u!==a&&uh(l=u.prototype)&&l!==a.prototype&&ch(r,l)),arguments.length>i&&function(e,t){lh(t)&&"cause"in t&&fh(e,"cause",t.cause)}(h,arguments[i]),h});f.prototype=s,"Error"!==u?kh?kh(f,l):Ih(f,l,{name:!0}):Ch&&o in c&&(Ph(f,c,o),Ph(f,c,"prepareStackTrace")),Ih(f,c);try{s.name!==u&&Oh(s,"name",u),s.constructor=f}catch(e){}return f}},Nh="WebAssembly",Lh=be[Nh],Mh=7!==new Error("e",{cause:7}).cause,$h=function(e,t){var r={};r[e]=Th(e,t,Mh),jh({global:!0,constructor:!0,arity:1,forced:Mh},r)},Dh=function(e,t){if(Lh&&Lh[e]){var r={};r[e]=Th(Nh+"."+e,t,Mh),jh({target:Nh,stat:!0,constructor:!0,arity:1,forced:Mh},r)}};$h("Error",function(e){return function(t){return Rh(e,this,arguments)}}),$h("EvalError",function(e){return function(t){return Rh(e,this,arguments)}}),$h("RangeError",function(e){return function(t){return Rh(e,this,arguments)}}),$h("ReferenceError",function(e){return function(t){return Rh(e,this,arguments)}}),$h("SyntaxError",function(e){return function(t){return Rh(e,this,arguments)}}),$h("TypeError",function(e){return function(t){return Rh(e,this,arguments)}}),$h("URIError",function(e){return function(t){return Rh(e,this,arguments)}}),Dh("CompileError",function(e){return function(t){return Rh(e,this,arguments)}}),Dh("LinkError",function(e){return function(t){return Rh(e,this,arguments)}}),Dh("RuntimeError",function(e){return function(t){return Rh(e,this,arguments)}});var Uh=Nt,Bh=tr,Fh=Ve,zh=Io,Gh=TypeError,Wh="Reduce of empty array with no initial value",Hh={left:function(e,t,r,n){var o=Bh(e),i=Fh(o),a=zh(o);if(Uh(t),0===a&&r<2)throw new Gh(Wh);var u=0;if(r<2)for(;;){if(u in i){n=i[u],u+=1;break}if(a<=(u+=1))throw new Gh(Wh)}for(;a>u;u+=1)u in i&&(n=t(n,i[u],u,o));return n}},qh=Se,Vh=be,Yh=ft,Jh=ze,Kh=function(e){return Yh.slice(0,e.length)===e},Qh=Kh("Bun/")?"BUN":Kh("Cloudflare-Workers")?"CLOUDFLARE":Kh("Deno/")?"DENO":Kh("Node.js/")?"NODE":Vh.Bun&&"string"==typeof Bun.version?"BUN":Vh.Deno&&"object"==typeof Deno.version?"DENO":"process"===Jh(Vh.process)?"NODE":Vh.window&&Vh.document?"BROWSER":"REST",Xh=Hh.left;vi({target:"Array",proto:!0,forced:!("NODE"===Qh)&&mt>79&&mt<83||!function(e,t){var r=[][e];return!!r&&qh(function(){r.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return Xh(this,e,t,t>1?arguments[1]:void 0)}});var Zh=vi,ed=ks,td=Nt,rd=Yr,nd=Qu,od=rc,id=Ic,ad=oh,ud=TypeError,cd=Se(function(){[].keys().reduce(function(){},void 0)}),sd=!cd&&id("reduce",ud);Zh({target:"Iterator",proto:!0,real:!0,forced:cd||sd},{reduce:function(e){rd(this);try{td(e)}catch(e){od(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(sd)return ad(sd,this,t?[e]:[e,r]);var n=nd(this),o=0;if(ed(n,function(n){t?(t=!1,r=n):r=e(r,n,o),o++},{IS_RECORD:!0}),t)throw new ud("Reduce of empty iterator with no initial value");return r}});var ld=ot,fd=Wn.get,pd=De([].slice),hd=De,dd=or,vd=SyntaxError,gd=parseInt,yd=String.fromCharCode,md=hd("".charAt),bd=hd("".slice),wd=hd(/./.exec),Sd={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Ad=/^[\da-f]{4}$/i,Ed=/^[\u0000-\u001F]$/,Od=function(e,t){for(var r=!0,n="";t<e.length;){var o=md(e,t);if("\\"===o){var i=bd(e,t,t+2);if(dd(Sd,i))n+=Sd[i],t+=2;else{if("\\u"!==i)throw new vd('Unknown escape sequence: "'+i+'"');var a=bd(e,t+=2,t+4);if(!wd(Ad,a))throw new vd("Bad Unicode escape at: "+t);n+=yd(gd(a,16)),t+=4}}else{if('"'===o){r=!1,t++;break}if(wd(Ed,o))throw new vd("Bad control character in string literal at: "+t);n+=o,t++}}if(r)throw new vd("Unterminated string at: "+t);return{value:n,end:t}},xd=!Se(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}),kd=vi,Id=ut,Pd=oh,_d=ke,Cd=De,jd=Se,Rd=yi,Td=rt,Nd=Pt,Ld=ze,Md=Qs,$d=pd,Dd=Od,Ud=sr,Bd=At,Fd=xd,zd=String,Gd=Id("JSON","stringify"),Wd=Cd(/./.exec),Hd=Cd("".charAt),qd=Cd("".charCodeAt),Vd=Cd("".replace),Yd=Cd("".slice),Jd=Cd([].push),Kd=Cd(1.1.toString),Qd=/[\uD800-\uDFFF]/g,Xd=/^[\uD800-\uDBFF]$/,Zd=/^[\uDC00-\uDFFF]$/,ev=Ud(),tv=ev.length,rv=!Bd||jd(function(){var e=Id("Symbol")("stringify detection");return"[null]"!==Gd([e])||"{}"!==Gd({a:e})||"{}"!==Gd(Object(e))}),nv=jd(function(){return'"\\udf06\\ud834"'!==Gd("\udf06\ud834")||'"\\udead"'!==Gd("\udead")}),ov=rv?function(e,t){var r=$d(arguments),n=av(t);if(Td(n)||void 0!==e&&!Nd(e))return r[1]=function(e,t){if(Td(n)&&(t=_d(n,this,zd(e),t)),!Nd(t))return t},Pd(Gd,null,r)}:Gd,iv=function(e,t,r){var n=Hd(r,t-1),o=Hd(r,t+1);return Wd(Xd,e)&&!Wd(Zd,o)||Wd(Zd,e)&&!Wd(Xd,n)?"\\u"+Kd(qd(e,0),16):e},av=function(e){if(Td(e))return e;if(Rd(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Jd(r,o):"number"!=typeof o&&"Number"!==Ld(o)&&"String"!==Ld(o)||Jd(r,Md(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Rd(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};Gd&&kd({target:"JSON",stat:!0,arity:3,forced:rv||nv||!Fd},{stringify:function(e,t,r){var n=av(t),o=[],i=ov(e,function(e,t){var r=Td(n)?_d(n,this,zd(e),t):t;return!Fd&&function(e){if(!ld(e))return!1;var t=fd(e);return!!t&&"RawJSON"===t.type}(r)?ev+(Jd(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(nv&&(i=Vd(i,Qd,iv)),Fd)return i;for(var a="",u=i.length,c=0;c<u;c++){var s=Hd(i,c);if('"'===s){var l=Dd(i,++c).end-1,f=Yd(i,c,l);a+=Yd(f,0,tv)===ev?o[Yd(f,tv)]:'"'+f+'"',c=l}else a+=s}return a}});var uv=ks,cv=Ru;vi({target:"Object",stat:!0},{fromEntries:function(e){var t={};return uv(e,function(e,r){cv(t,e,r)},{AS_ENTRIES:!0}),t}});var sv=vi,lv=Ae,fv=be,pv=ut,hv=De,dv=ke,vv=rt,gv=ot,yv=yi,mv=or,bv=Qs,wv=Io,Sv=Ru,Av=Se,Ev=Od,Ov=At,xv=fv.JSON,kv=fv.Number,Iv=fv.SyntaxError,Pv=xv&&xv.parse,_v=pv("Object","keys"),Cv=Object.getOwnPropertyDescriptor,jv=hv("".charAt),Rv=hv("".slice),Tv=hv(/./.exec),Nv=hv([].push),Lv=/^\d$/,Mv=/^[1-9]$/,$v=/^[\d-]$/,Dv=/^[\t\n\r ]$/,Uv=function(e,t,r,n){var o,i,a,u,c,s=e[t],l=n&&s===n.value,f=l&&"string"==typeof n.source?{source:n.source}:{};if(gv(s)){var p=yv(s),h=l?n.nodes:p?[]:{};if(p)for(o=h.length,a=wv(s),u=0;u<a;u++)Bv(s,u,Uv(s,""+u,r,u<o?h[u]:void 0));else for(i=_v(s),a=wv(i),u=0;u<a;u++)c=i[u],Bv(s,c,Uv(s,c,r,mv(h,c)?h[c]:void 0))}return dv(r,e,t,s,f)},Bv=function(e,t,r){if(lv){var n=Cv(e,t);if(n&&!n.configurable)return}void 0===r?delete e[t]:Sv(e,t,r)},Fv=function(e,t,r,n){this.value=e,this.end=t,this.source=r,this.nodes=n},zv=function(e,t){this.source=e,this.index=t};zv.prototype={fork:function(e){return new zv(this.source,e)},parse:function(){var e=this.source,t=this.skip(Dv,this.index),r=this.fork(t),n=jv(e,t);if(Tv($v,n))return r.number();switch(n){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new Iv('Unexpected character: "'+n+'" at: '+t)},node:function(e,t,r,n,o){return new Fv(t,n,e?null:Rv(this.source,r,n),o)},object:function(){for(var e=this.source,t=this.index+1,r=!1,n={},o={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===jv(e,t)&&!r){t++;break}var i=this.fork(t).string(),a=i.value;t=i.end,t=this.until([":"],t)+1,t=this.skip(Dv,t),i=this.fork(t).parse(),Sv(o,a,i),Sv(n,a,i.value),t=this.until([",","}"],i.end);var u=jv(e,t);if(","===u)r=!0,t++;else if("}"===u){t++;break}}return this.node(1,n,this.index,t,o)},array:function(){for(var e=this.source,t=this.index+1,r=!1,n=[],o=[];t<e.length;){if(t=this.skip(Dv,t),"]"===jv(e,t)&&!r){t++;break}var i=this.fork(t).parse();if(Nv(o,i),Nv(n,i.value),t=this.until([",","]"],i.end),","===jv(e,t))r=!0,t++;else if("]"===jv(e,t)){t++;break}}return this.node(1,n,this.index,t,o)},string:function(){var e=this.index,t=Ev(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===jv(e,r)&&r++,"0"===jv(e,r))r++;else{if(!Tv(Mv,jv(e,r)))throw new Iv("Failed to parse number at: "+r);r=this.skip(Lv,r+1)}if(!("."===jv(e,r)&&(r=this.skip(Lv,r+1)),"e"!==jv(e,r)&&"E"!==jv(e,r)||(r++,"+"!==jv(e,r)&&"-"!==jv(e,r)||r++,r!==(r=this.skip(Lv,r)))))throw new Iv("Failed to parse number's exponent value at: "+r);return this.node(0,kv(Rv(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,n=r+t.length;if(Rv(this.source,r,n)!==t)throw new Iv("Failed to parse value at: "+r);return this.node(0,e,r,n)},skip:function(e,t){for(var r=this.source;t<r.length&&Tv(e,jv(r,t));t++);return t},until:function(e,t){t=this.skip(Dv,t);for(var r=jv(this.source,t),n=0;n<e.length;n++)if(e[n]===r)return t;throw new Iv('Unexpected character: "'+r+'" at: '+t)}};var Gv=Av(function(){var e,t="9007199254740993";return Pv(t,function(t,r,n){e=n.source}),e!==t}),Wv=Ov&&!Av(function(){return 1/Pv("-0 \t")!=-1/0});sv({target:"JSON",stat:!0,forced:Gv},{parse:function(e,t){return Wv&&!vv(t)?Pv(e):function(e,t){e=bv(e);var r=new zv(e,0),n=r.parse(),o=n.value,i=r.skip(Dv,n.end);if(i<e.length)throw new Iv('Unexpected extra character: "'+jv(e,i)+'" after the parsed data at: '+i);return vv(t)?Uv({"":o},"",t,n):o}(e,t)}});var Hv=Se,qv=be.RegExp,Vv=Hv(function(){var e=qv("a","y");return e.lastIndex=2,null!==e.exec("abcd")});Vv||Hv(function(){return!qv("a","y").sticky});var Yv,Jv,Kv=Vv||Hv(function(){var e=qv("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),Qv={BROKEN_CARET:Kv},Xv=Se,Zv=be.RegExp,eg=Xv(function(){var e=Zv(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),tg=Se,rg=be.RegExp,ng=tg(function(){var e=rg("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),og=ke,ig=De,ag=Qs,ug=rl,cg=Qv,sg=Xi,lg=Wn.get,fg=eg,pg=ng,hg=Xt("native-string-replace",String.prototype.replace),dg=RegExp.prototype.exec,vg=dg,gg=ig("".charAt),yg=ig("".indexOf),mg=ig("".replace),bg=ig("".slice),wg=(Jv=/b*/g,og(dg,Yv=/a/,"a"),og(dg,Jv,"a"),0!==Yv.lastIndex||0!==Jv.lastIndex),Sg=cg.BROKEN_CARET,Ag=void 0!==/()??/.exec("")[1];(wg||Ag||Sg||fg||pg)&&(vg=function(e){var t,r,n,o,i,a,u,c=this,s=lg(c),l=ag(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=og(vg,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=Sg&&c.sticky,d=og(ug,c),v=c.source,g=0,y=l;if(h&&(d=mg(d,"y",""),-1===yg(d,"g")&&(d+="g"),y=bg(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==gg(l,c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",d)),Ag&&(r=new RegExp("^"+v+"$(?!\\s)",d)),wg&&(n=c.lastIndex),o=og(dg,h?r:c,y),h?o?(o.input=bg(o.input,g),o[0]=bg(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:wg&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Ag&&o&&o.length>1&&og(hg,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=sg(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Eg=vg;vi({target:"RegExp",proto:!0,forced:/./.exec!==Eg},{exec:Eg});var Og=vi,xg=Gc,kg=we.f,Ig=xo,Pg=Qs,_g=hf,Cg=Qe,jg=vf,Rg=xg("".slice),Tg=Math.min,Ng=jg("endsWith"),Lg=!Ng&&!!function(){var e=kg(String.prototype,"endsWith");return e&&!e.writable}();Og({target:"String",proto:!0,forced:!Lg&&!Ng},{endsWith:function(e){var t=Pg(Cg(this));_g(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=void 0===r?n:Tg(Ig(r),n),i=Pg(e);return Rg(t,o-i.length,o)===i}});var Mg=ke,$g=ho,Dg=Eg,Ug=Se,Bg=mr,Fg=sn,zg=Bg("species"),Gg=RegExp.prototype,Wg=function(e,t,r,n){var o=Bg(e),i=!Ug(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!Ug(function(){var t=!1,r=/a/;if("split"===e){var n={};n[zg]=function(){return r},(r={constructor:n,flags:""})[o]=/./[o]}return r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===Dg||a===Gg.exec?i&&!o?{done:!0,value:Mg(u,t,r,n)}:{done:!0,value:Mg(e,r,t,n)}:{done:!1}});$g(String.prototype,e,c[0]),$g(Gg,o,c[1])}n&&Fg(Gg[o],"sham",!0)},Hg=De,qg=bo,Vg=Qs,Yg=Qe,Jg=Hg("".charAt),Kg=Hg("".charCodeAt),Qg=Hg("".slice),Xg={charAt:function(e,t){var r,n,o=Vg(Yg(e)),i=qg(t),a=o.length;return i<0||i>=a?"":(r=Kg(o,i))<55296||r>56319||i+1===a||(n=Kg(o,i+1))<56320||n>57343?Jg(o,i):Qg(o,i,i+2)}},Zg=Xg.charAt,ey=function(e,t,r){return t+(r?Zg(e,t).length:1)},ty=ke,ry=Yr,ny=rt,oy=ze,iy=Eg,ay=TypeError,uy=function(e,t){var r=e.exec;if(ny(r)){var n=ty(r,e,t);return null!==n&&ry(n),n}if("RegExp"===oy(e))return ty(iy,e,t);throw new ay("RegExp#exec called on incompatible receiver")},cy=ke,sy=Wg,ly=Yr,fy=ot,py=xo,hy=Qs,dy=Qe,vy=$t,gy=ey,yy=sl,my=uy,by=De("".indexOf);sy("match",function(e,t,r){return[function(t){var r=dy(this),n=fy(t)?vy(t,e):void 0;return n?cy(n,t,r):new RegExp(t)[e](hy(r))},function(e){var n=ly(this),o=hy(e),i=r(t,n,o);if(i.done)return i.value;var a=hy(yy(n));if(-1===by(a,"g"))return my(n,o);var u=-1!==by(a,"u");n.lastIndex=0;for(var c,s=[],l=0;null!==(c=my(n,o));){var f=hy(c[0]);s[l]=f,""===f&&(n.lastIndex=gy(o,py(n.lastIndex),u)),l++}return 0===l?null:s}]});var wy=De,Sy=tr,Ay=Math.floor,Ey=wy("".charAt),Oy=wy("".replace),xy=wy("".slice),ky=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Iy=/\$([$&'`]|\d{1,2})/g,Py=oh,_y=ke,Cy=De,jy=Wg,Ry=Se,Ty=Yr,Ny=rt,Ly=ot,My=bo,$y=xo,Dy=Qs,Uy=Qe,By=ey,Fy=$t,zy=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=Iy;return void 0!==o&&(o=Sy(o),c=ky),Oy(i,c,function(i,c){var s;switch(Ey(c,0)){case"$":return"$";case"&":return e;case"`":return xy(t,0,r);case"'":return xy(t,a);case"<":s=o[xy(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>u){var f=Ay(l/10);return 0===f?i:f<=u?void 0===n[f-1]?Ey(c,1):n[f-1]+Ey(c,1):i}s=n[l-1]}return void 0===s?"":s})},Gy=sl,Wy=uy,Hy=mr("replace"),qy=Math.max,Vy=Math.min,Yy=Cy([].concat),Jy=Cy([].push),Ky=Cy("".indexOf),Qy=Cy("".slice),Xy=function(e){return void 0===e?e:String(e)},Zy="$0"==="a".replace(/./,"$0"),em=!!/./[Hy]&&""===/./[Hy]("a","$0"),tm=!Ry(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});jy("replace",function(e,t,r){var n=em?"$":"$0";return[function(e,r){var n=Uy(this),o=Ly(e)?Fy(e,Hy):void 0;return o?_y(o,e,n,r):_y(t,Dy(n),e,r)},function(e,o){var i=Ty(this),a=Dy(e);if("string"==typeof o&&-1===Ky(o,n)&&-1===Ky(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=Ny(o);c||(o=Dy(o));var s,l=Dy(Gy(i)),f=-1!==Ky(l,"g");f&&(s=-1!==Ky(l,"u"),i.lastIndex=0);for(var p,h=[];null!==(p=Wy(i,a))&&(Jy(h,p),f);)""===Dy(p[0])&&(i.lastIndex=By(a,$y(i.lastIndex),s));for(var d="",v=0,g=0;g<h.length;g++){for(var y,m=Dy((p=h[g])[0]),b=qy(Vy(My(p.index),a.length),0),w=[],S=1;S<p.length;S++)Jy(w,Xy(p[S]));var A=p.groups;if(c){var E=Yy([m],w,b,a);void 0!==A&&Jy(E,A),y=Dy(Py(o,void 0,E))}else y=zy(m,a,b,w,A,o);b>=v&&(d+=Qy(a,v,b)+y,v=b+m.length)}return d+Qy(a,v)}]},!tm||!Zy||em);var rm,nm="\t\n\v\f\r                 \u2028\u2029\ufeff",om=Qe,im=Qs,am=nm,um=De("".replace),cm=RegExp("^["+am+"]+"),sm=RegExp("(^|[^"+am+"])["+am+"]+$"),lm={trim:function(e){var t=im(om(e));return t=um(t,cm,""),t=um(t,sm,"$1")}},fm=gn.PROPER,pm=nm,hm=lm.trim;vi({target:"String",proto:!0,forced:(rm="trim",Se(function(){return!!pm[rm]()||"​…᠎"!=="​…᠎"[rm]()||fm&&pm[rm].name!==rm}))},{trim:function(){return hm(this)}});class dm{constructor(){this._isOnpremMode="#OnPrem on#"===["#","OnPrem off","#"].join("")}get isOnpremMode(){return this._isOnpremMode}}const vm=["onprem","nvq2","nvp1","frp2","irp2","sgp2","syp2","cap2"],gm=e=>{const t=e.trim();return t.endsWith("/")?t.replace(/\/$/,""):t},ym=$l.createWorkspaceLogger("window").getOrCreateLogger("util","environment-resolver"),{value:mm}=Ml("environmentResolver",ym,{});new class{constructor(e=new dm){this.onprem=e}getKalturaServerUrl({serviceName:e,type:t}){const r=this.getRegion();return"nvp1"===r&&"analytics"===t?"https://analytics.kaltura.com":`https://${e}.${r}.ovp.kaltura.com`}getUnisphereServerUrl(e,t){if(t&&"onprem"!==t)return gm(`https://unisphere.${t}.ovp.kaltura.com/v1/${e}`);if(!mm.baseServerUrl)throw new Error("base server url not initialized, did you remember to set environment config?");const r=gm(mm.baseServerUrl);return gm(`${r}/${e}`)}setConfig(e){var t;if(mm.baseServerUrl)ym.log("environment config already initialized, will not override");else if(this.onprem.isOnpremMode){if(!e)throw new Error("cannot load workspace: onprem mode is enabled, but serverUrl is not provided or region from workspace is not onprem");mm.baseServerUrl=e,mm.region="onprem",ym.log("environment config initialized",{data:mm})}else{const r=/^https?:\/\/unisphere\.([a-z0-9]+)\.ovp\.kaltura\.com\/v1$/,n=null==e?void 0:e.match(r),o=(null===(t=null==n?void 0:n[1])||void 0===t?void 0:t.toLowerCase())||null;if(!o)throw new Error(`cannot load workspace: unknown region mapped in serverUrl, expected format like "http(s)://unisphere.{region}.ovp.kaltura.com/v1", got "${e}"`);if(!this.isSupportedRegion(o))throw new Error(`cannot load workspace: region mapped in serverUrl is not supported, expected one of ${vm.join(", ")}, got "${o}"`);const i="https:"===window.location.protocol;mm.baseServerUrl=`${i?"https":"http"}://unisphere.${o}.ovp.kaltura.com/v1`,mm.region=o,ym.log("environment config initialized",{data:mm})}}isOnpremMode(){return this.onprem.isOnpremMode}isSupportedRegion(e){return vm.includes(e)}getRegions(){return vm}getDefaultRegion(){return"nvp1"}getRegion(){if(!mm.region)throw new Error("region not initialized, did you remember to set environment config?");return mm.region}},Error;var bm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},wm=function(e){return e&&e.Math===Math&&e},Sm=wm("object"==typeof globalThis&&globalThis)||wm("object"==typeof window&&window)||wm("object"==typeof self&&self)||wm("object"==typeof bm&&bm)||wm("object"==typeof bm&&bm)||function(){return this}()||Function("return this")(),Am={},Em=function(e){try{return!!e()}catch(e){return!0}},Om=!Em(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),xm=!Em(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),km=xm,Im=Function.prototype.call,Pm=km?Im.bind(Im):function(){return Im.apply(Im,arguments)},_m={},Cm={}.propertyIsEnumerable,jm=Object.getOwnPropertyDescriptor,Rm=jm&&!Cm.call({1:2},1);_m.f=Rm?function(e){var t=jm(this,e);return!!t&&t.enumerable}:Cm;var Tm,Nm,Lm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mm=xm,$m=Function.prototype,Dm=$m.call,Um=Mm&&$m.bind.bind(Dm,Dm),Bm=Mm?Um:function(e){return function(){return Dm.apply(e,arguments)}},Fm=Bm,zm=Fm({}.toString),Gm=Fm("".slice),Wm=Em,Hm=Object,qm=Bm("".split),Vm=Wm(function(){return!Hm("z").propertyIsEnumerable(0)})?function(e){return"String"===function(e){return Gm(zm(e),8,-1)}(e)?qm(e,""):Hm(e)}:Hm,Ym=function(e){return null==e},Jm=Ym,Km=TypeError,Qm=function(e){if(Jm(e))throw new Km("Can't call method on "+e);return e},Xm=Vm,Zm=Qm,eb=function(e){return Xm(Zm(e))},tb="object"==typeof document&&document.all,rb=void 0===tb&&void 0!==tb?function(e){return"function"==typeof e||e===tb}:function(e){return"function"==typeof e},nb=rb,ob=function(e){return"object"==typeof e?null!==e:nb(e)},ib=Sm,ab=rb,ub=function(e,t){return arguments.length<2?(r=ib[e],ab(r)?r:void 0):ib[e]&&ib[e][t];var r},cb=Bm({}.isPrototypeOf),sb=Sm.navigator,lb=sb&&sb.userAgent,fb=Sm,pb=lb?String(lb):"",hb=fb.process,db=fb.Deno,vb=hb&&hb.versions||db&&db.version,gb=vb&&vb.v8;gb&&(Nm=(Tm=gb.split("."))[0]>0&&Tm[0]<4?1:+(Tm[0]+Tm[1])),!Nm&&pb&&(!(Tm=pb.match(/Edge\/(\d+)/))||Tm[1]>=74)&&(Tm=pb.match(/Chrome\/(\d+)/))&&(Nm=+Tm[1]);var yb=Nm,mb=Em,bb=Sm.String,wb=!!Object.getOwnPropertySymbols&&!mb(function(){var e=Symbol("symbol detection");return!bb(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yb&&yb<41}),Sb=wb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ab=ub,Eb=rb,Ob=cb,xb=Object,kb=Sb?function(e){return"symbol"==typeof e}:function(e){var t=Ab("Symbol");return Eb(t)&&Ob(t.prototype,xb(e))},Ib=String,Pb=rb,_b=TypeError,Cb=function(e){if(Pb(e))return e;throw new _b(function(e){try{return Ib(e)}catch(e){return"Object"}}(e)+" is not a function")},jb=Ym,Rb=Pm,Tb=rb,Nb=ob,Lb=TypeError,Mb={exports:{}},$b=Sm,Db=Object.defineProperty,Ub=function(e,t){try{Db($b,e,{value:t,configurable:!0,writable:!0})}catch(r){$b[e]=t}return t},Bb=Sm,Fb=Ub,zb="__core-js_shared__",Gb=Mb.exports=Bb[zb]||Fb(zb,{});(Gb.versions||(Gb.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Wb,Hb=Mb.exports,qb=Hb,Vb=function(e,t){return qb[e]||(qb[e]=t||{})},Yb=Qm,Jb=Object,Kb=function(e){return Jb(Yb(e))},Qb=Kb,Xb=Bm({}.hasOwnProperty),Zb=Object.hasOwn||function(e,t){return Xb(Qb(e),t)},ew=Bm,tw=0,rw=Math.random(),nw=ew(1.1.toString),ow=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nw(++tw+rw,36)},iw=Vb,aw=Zb,uw=ow,cw=wb,sw=Sb,lw=Sm.Symbol,fw=iw("wks"),pw=sw?lw.for||lw:lw&&lw.withoutSetter||uw,hw=Pm,dw=ob,vw=kb,gw=TypeError,yw=(aw(fw,Wb="toPrimitive")||(fw[Wb]=cw&&aw(lw,Wb)?lw[Wb]:pw("Symbol."+Wb)),fw[Wb]),mw=function(e,t){if(!dw(e)||vw(e))return e;var r,n,o=(n=e[yw],jb(n)?void 0:Cb(n));if(o){if(void 0===t&&(t="default"),r=hw(o,e,t),!dw(r)||vw(r))return r;throw new gw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Tb(r=e.toString)&&!Nb(n=Rb(r,e)))return n;if(Tb(r=e.valueOf)&&!Nb(n=Rb(r,e)))return n;if("string"!==t&&Tb(r=e.toString)&&!Nb(n=Rb(r,e)))return n;throw new Lb("Can't convert object to primitive value")}(e,t)},bw=kb,ww=function(e){var t=mw(e,"string");return bw(t)?t:t+""},Sw=ob,Aw=Sm.document,Ew=Sw(Aw)&&Sw(Aw.createElement),Ow=!Om&&!Em(function(){return 7!==Object.defineProperty((e="div",Ew?Aw.createElement(e):{}),"a",{get:function(){return 7}}).a;var e}),xw=Om,kw=Pm,Iw=_m,Pw=Lm,_w=eb,Cw=ww,jw=Zb,Rw=Ow,Tw=Object.getOwnPropertyDescriptor;Am.f=xw?Tw:function(e,t){if(e=_w(e),t=Cw(t),Rw)try{return Tw(e,t)}catch(e){}if(jw(e,t))return Pw(!kw(Iw.f,e,t),e[t])};var Nw={},Lw=Om&&Em(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Mw=ob,$w=String,Dw=TypeError,Uw=function(e){if(Mw(e))return e;throw new Dw($w(e)+" is not an object")},Bw=Om,Fw=Ow,zw=Lw,Gw=Uw,Ww=ww,Hw=TypeError,qw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Yw="enumerable",Jw="configurable",Kw="writable";Nw.f=Bw?zw?function(e,t,r){if(Gw(e),t=Ww(t),Gw(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Kw in r&&!r[Kw]){var n=Vw(e,t);n&&n[Kw]&&(e[t]=r.value,r={configurable:Jw in r?r[Jw]:n[Jw],enumerable:Yw in r?r[Yw]:n[Yw],writable:!1})}return qw(e,t,r)}:qw:function(e,t,r){if(Gw(e),t=Ww(t),Gw(r),Fw)try{return qw(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Hw("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Qw=Nw,Xw=Lm,Zw=Om?function(e,t,r){return Qw.f(e,t,Xw(1,r))}:function(e,t,r){return e[t]=r,e},eS={exports:{}},tS=Om,rS=Zb,nS=Function.prototype,oS=tS&&Object.getOwnPropertyDescriptor,iS={CONFIGURABLE:rS(nS,"name")&&(!tS||tS&&oS(nS,"name").configurable)},aS=rb,uS=Hb,cS=Bm(Function.toString);aS(uS.inspectSource)||(uS.inspectSource=function(e){return cS(e)});var sS,lS,fS,pS=uS.inspectSource,hS=rb,dS=Sm.WeakMap,vS=hS(dS)&&/native code/.test(String(dS)),gS=ow,yS=Vb("keys"),mS={},bS=vS,wS=Sm,SS=Zw,AS=Zb,ES=Hb,OS=mS,xS="Object already initialized",kS=wS.TypeError,IS=wS.WeakMap;if(bS||ES.state){var PS=ES.state||(ES.state=new IS);PS.get=PS.get,PS.has=PS.has,PS.set=PS.set,sS=function(e,t){if(PS.has(e))throw new kS(xS);return t.facade=e,PS.set(e,t),t},lS=function(e){return PS.get(e)||{}},fS=function(e){return PS.has(e)}}else{var _S=function(e){return yS[e]||(yS[e]=gS(e))}("state");OS[_S]=!0,sS=function(e,t){if(AS(e,_S))throw new kS(xS);return t.facade=e,SS(e,_S,t),t},lS=function(e){return AS(e,_S)?e[_S]:{}},fS=function(e){return AS(e,_S)}}var CS={get:lS,enforce:function(e){return fS(e)?lS(e):sS(e,{})}},jS=Bm,RS=Em,TS=rb,NS=Zb,LS=Om,MS=iS.CONFIGURABLE,$S=pS,DS=CS.enforce,US=CS.get,BS=String,FS=Object.defineProperty,zS=jS("".slice),GS=jS("".replace),WS=jS([].join),HS=LS&&!RS(function(){return 8!==FS(function(){},"length",{value:8}).length}),qS=String(String).split("String"),VS=eS.exports=function(e,t,r){"Symbol("===zS(BS(t),0,7)&&(t="["+GS(BS(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!NS(e,"name")||MS&&e.name!==t)&&(LS?FS(e,"name",{value:t,configurable:!0}):e.name=t),HS&&r&&NS(r,"arity")&&e.length!==r.arity&&FS(e,"length",{value:r.arity});try{r&&NS(r,"constructor")&&r.constructor?LS&&FS(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=DS(e);return NS(n,"source")||(n.source=WS(qS,"string"==typeof t?t:"")),e};Function.prototype.toString=VS(function(){return TS(this)&&US(this).source||$S(this)},"toString");var YS,JS=eS.exports,KS=rb,QS=Nw,XS=JS,ZS=Ub,eA={},tA=Math.ceil,rA=Math.floor,nA=Math.trunc||function(e){var t=+e;return(t>0?rA:tA)(t)},oA=function(e){var t=+e;return t!=t||0===t?0:nA(t)},iA=oA,aA=Math.max,uA=Math.min,cA=oA,sA=Math.min,lA=eb,fA=function(e){return t=e.length,(r=cA(t))>0?sA(r,9007199254740991):0;var t,r},pA={indexOf:(YS=!1,function(e,t,r){var n=lA(e),o=fA(n);if(0===o)return-1;var i=function(e,t){var r=iA(e);return r<0?aA(r+t,0):uA(r,t)}(r,o);for(YS;o>i;i++)if(i in n&&n[i]===t)return i||0;return-1})},hA=Zb,dA=eb,vA=pA.indexOf,gA=mS,yA=Bm([].push),mA=function(e,t){var r,n=dA(e),o=0,i=[];for(r in n)!hA(gA,r)&&hA(n,r)&&yA(i,r);for(;t.length>o;)hA(n,r=t[o++])&&(~vA(i,r)||yA(i,r));return i},bA=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wA=mA,SA=bA.concat("length","prototype");eA.f=Object.getOwnPropertyNames||function(e){return wA(e,SA)};var AA={};AA.f=Object.getOwnPropertySymbols;var EA=ub,OA=eA,xA=AA,kA=Uw,IA=Bm([].concat),PA=EA("Reflect","ownKeys")||function(e){var t=OA.f(kA(e)),r=xA.f;return r?IA(t,r(e)):t},_A=Zb,CA=PA,jA=Am,RA=Nw,TA=Em,NA=rb,LA=/#|\.prototype\./,MA=function(e,t){var r=DA[$A(e)];return r===BA||r!==UA&&(NA(t)?TA(t):!!t)},$A=MA.normalize=function(e){return String(e).replace(LA,".").toLowerCase()},DA=MA.data={},UA=MA.NATIVE="N",BA=MA.POLYFILL="P",FA=MA,zA=Sm,GA=Am.f,WA=Zw,HA=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(KS(r)&&XS(r,i,n),n.global)o?e[t]=r:ZS(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:QS.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},qA=Ub,VA=function(e,t,r){for(var n=CA(t),o=RA.f,i=jA.f,a=0;a<n.length;a++){var u=n[a];_A(e,u)||r&&_A(r,u)||o(e,u,i(t,u))}},YA=FA,JA=mA,KA=bA,QA=Object.keys||function(e){return JA(e,KA)},XA=Om,ZA=Bm,eE=Pm,tE=Em,rE=QA,nE=AA,oE=_m,iE=Kb,aE=Vm,uE=Object.assign,cE=Object.defineProperty,sE=ZA([].concat),lE=!uE||tE(function(){if(XA&&1!==uE({b:1},uE(cE({},"a",{enumerable:!0,get:function(){cE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==uE({},e)[r]||rE(uE({},t)).join("")!==n})?function(e,t){for(var r=iE(e),n=arguments.length,o=1,i=nE.f,a=oE.f;n>o;)for(var u,c=aE(arguments[o++]),s=i?sE(rE(c),i(c)):rE(c),l=s.length,f=0;l>f;)u=s[f++],XA&&!eE(a,c,u)||(r[u]=c[u]);return r}:uE,fE=lE;!function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?zA:s?zA[u]||qA(u,{}):zA[u]&&zA[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=GA(r,n))&&a.value:r[n],!YA(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;VA(i,o)}(e.sham||o&&o.sham)&&WA(i,"sham",!0),HA(r,n,i,e)}}({target:"Object",stat:!0,arity:2,forced:Object.assign!==fE},{assign:fE});Object.assign(Object.assign({},Af),{optional:!1});var pE,hE,dE;Object.assign(Object.assign({},Af),{optional:!0}),function(e){e[e.ButtonClicked=10002]="ButtonClicked",e[e.PageLoad=10003]="PageLoad"}(pE||(pE={})),function(e){e[e.Create=1]="Create",e[e.Filter=2]="Filter",e[e.Search=3]="Search",e[e.Export=4]="Export",e[e.Navigate=5]="Navigate",e[e.Schedule=6]="Schedule",e[e.Insert=7]="Insert",e[e.Choose=8]="Choose",e[e.Launch=9]="Launch",e[e.Open=10]="Open",e[e.Send=11]="Send",e[e.Invite=12]="Invite",e[e.Close=13]="Close",e[e.Save=14]="Save",e[e.Expand=15]="Expand",e[e.Collapse=16]="Collapse",e[e.Edit=17]="Edit",e[e.Delete=18]="Delete",e[e.Browse=19]="Browse",e[e.Load=20]="Load",e[e.Add=21]="Add",e[e.Menu=22]="Menu",e[e.Register=23]="Register",e[e.Login=24]="Login",e[e.Link=25]="Link",e[e.Toggle=26]="Toggle",e[e.Thumbnail=27]="Thumbnail",e[e.Download=28]="Download",e[e.Share=29]="Share"}(hE||(hE={})),function(e){e[e.View=1]="View",e[e.Create=2]="Create",e[e.Edit=3]="Edit",e[e.Participate=4]="Participate",e[e.List=5]="List",e[e.Analytics=6]="Analytics",e[e.Admin=7]="Admin",e[e.Error=8]="Error",e[e.Login=9]="Login",e[e.Registration=10]="Registration",e[e.Custom=11]="Custom"}(dE||(dE={}));var vE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},gE=function(e){return e&&e.Math===Math&&e},yE=gE("object"==typeof globalThis&&globalThis)||gE("object"==typeof window&&window)||gE("object"==typeof self&&self)||gE("object"==typeof vE&&vE)||gE("object"==typeof vE&&vE)||function(){return this}()||Function("return this")(),mE={},bE=function(e){try{return!!e()}catch(e){return!0}},wE=!bE(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),SE=!bE(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),AE=SE,EE=Function.prototype.call,OE=AE?EE.bind(EE):function(){return EE.apply(EE,arguments)},xE={},kE={}.propertyIsEnumerable,IE=Object.getOwnPropertyDescriptor,PE=IE&&!kE.call({1:2},1);xE.f=PE?function(e){var t=IE(this,e);return!!t&&t.enumerable}:kE;var _E,CE,jE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},RE=SE,TE=Function.prototype,NE=TE.call,LE=RE&&TE.bind.bind(NE,NE),ME=RE?LE:function(e){return function(){return NE.apply(e,arguments)}},$E=ME,DE=$E({}.toString),UE=$E("".slice),BE=function(e){return UE(DE(e),8,-1)},FE=bE,zE=BE,GE=Object,WE=ME("".split),HE=FE(function(){return!GE("z").propertyIsEnumerable(0)})?function(e){return"String"===zE(e)?WE(e,""):GE(e)}:GE,qE=function(e){return null==e},VE=qE,YE=TypeError,JE=function(e){if(VE(e))throw new YE("Can't call method on "+e);return e},KE=HE,QE=JE,XE=function(e){return KE(QE(e))},ZE="object"==typeof document&&document.all,eO=void 0===ZE&&void 0!==ZE?function(e){return"function"==typeof e||e===ZE}:function(e){return"function"==typeof e},tO=eO,rO=function(e){return"object"==typeof e?null!==e:tO(e)},nO=yE,oO=eO,iO=function(e,t){return arguments.length<2?(r=nO[e],oO(r)?r:void 0):nO[e]&&nO[e][t];var r},aO=ME({}.isPrototypeOf),uO=yE.navigator,cO=uO&&uO.userAgent,sO=cO?String(cO):"",lO=yE,fO=sO,pO=lO.process,hO=lO.Deno,dO=pO&&pO.versions||hO&&hO.version,vO=dO&&dO.v8;vO&&(CE=(_E=vO.split("."))[0]>0&&_E[0]<4?1:+(_E[0]+_E[1])),!CE&&fO&&(!(_E=fO.match(/Edge\/(\d+)/))||_E[1]>=74)&&(_E=fO.match(/Chrome\/(\d+)/))&&(CE=+_E[1]);var gO=CE,yO=gO,mO=bE,bO=yE.String,wO=!!Object.getOwnPropertySymbols&&!mO(function(){var e=Symbol("symbol detection");return!bO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yO&&yO<41}),SO=wO&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,AO=iO,EO=eO,OO=aO,xO=Object,kO=SO?function(e){return"symbol"==typeof e}:function(e){var t=AO("Symbol");return EO(t)&&OO(t.prototype,xO(e))},IO=String,PO=function(e){try{return IO(e)}catch(e){return"Object"}},_O=eO,CO=PO,jO=TypeError,RO=function(e){if(_O(e))return e;throw new jO(CO(e)+" is not a function")},TO=RO,NO=qE,LO=function(e,t){var r=e[t];return NO(r)?void 0:TO(r)},MO=OE,$O=eO,DO=rO,UO=TypeError,BO={exports:{}},FO=yE,zO=Object.defineProperty,GO=function(e,t){try{zO(FO,e,{value:t,configurable:!0,writable:!0})}catch(r){FO[e]=t}return t},WO=yE,HO=GO,qO="__core-js_shared__",VO=BO.exports=WO[qO]||HO(qO,{});(VO.versions||(VO.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var YO=BO.exports,JO=YO,KO=function(e,t){return JO[e]||(JO[e]=t||{})},QO=JE,XO=Object,ZO=function(e){return XO(QO(e))},ex=ZO,tx=ME({}.hasOwnProperty),rx=Object.hasOwn||function(e,t){return tx(ex(e),t)},nx=ME,ox=0,ix=Math.random(),ax=nx(1.1.toString),ux=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ax(++ox+ix,36)},cx=KO,sx=rx,lx=ux,fx=wO,px=SO,hx=yE.Symbol,dx=cx("wks"),vx=px?hx.for||hx:hx&&hx.withoutSetter||lx,gx=function(e){return sx(dx,e)||(dx[e]=fx&&sx(hx,e)?hx[e]:vx("Symbol."+e)),dx[e]},yx=OE,mx=rO,bx=kO,wx=LO,Sx=TypeError,Ax=gx("toPrimitive"),Ex=function(e,t){if(!mx(e)||bx(e))return e;var r,n=wx(e,Ax);if(n){if(void 0===t&&(t="default"),r=yx(n,e,t),!mx(r)||bx(r))return r;throw new Sx("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&$O(r=e.toString)&&!DO(n=MO(r,e)))return n;if($O(r=e.valueOf)&&!DO(n=MO(r,e)))return n;if("string"!==t&&$O(r=e.toString)&&!DO(n=MO(r,e)))return n;throw new UO("Can't convert object to primitive value")}(e,t)},Ox=kO,xx=function(e){var t=Ex(e,"string");return Ox(t)?t:t+""},kx=rO,Ix=yE.document,Px=kx(Ix)&&kx(Ix.createElement),_x=function(e){return Px?Ix.createElement(e):{}},Cx=_x,jx=!wE&&!bE(function(){return 7!==Object.defineProperty(Cx("div"),"a",{get:function(){return 7}}).a}),Rx=wE,Tx=OE,Nx=xE,Lx=jE,Mx=XE,$x=xx,Dx=rx,Ux=jx,Bx=Object.getOwnPropertyDescriptor;mE.f=Rx?Bx:function(e,t){if(e=Mx(e),t=$x(t),Ux)try{return Bx(e,t)}catch(e){}if(Dx(e,t))return Lx(!Tx(Nx.f,e,t),e[t])};var Fx={},zx=wE&&bE(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Gx=rO,Wx=String,Hx=TypeError,qx=function(e){if(Gx(e))return e;throw new Hx(Wx(e)+" is not an object")},Vx=wE,Yx=jx,Jx=zx,Kx=qx,Qx=xx,Xx=TypeError,Zx=Object.defineProperty,ek=Object.getOwnPropertyDescriptor,tk="enumerable",rk="configurable",nk="writable";Fx.f=Vx?Jx?function(e,t,r){if(Kx(e),t=Qx(t),Kx(r),"function"==typeof e&&"prototype"===t&&"value"in r&&nk in r&&!r[nk]){var n=ek(e,t);n&&n[nk]&&(e[t]=r.value,r={configurable:rk in r?r[rk]:n[rk],enumerable:tk in r?r[tk]:n[tk],writable:!1})}return Zx(e,t,r)}:Zx:function(e,t,r){if(Kx(e),t=Qx(t),Kx(r),Yx)try{return Zx(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Xx("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var ok=Fx,ik=jE,ak=wE?function(e,t,r){return ok.f(e,t,ik(1,r))}:function(e,t,r){return e[t]=r,e},uk={exports:{}},ck=wE,sk=rx,lk=Function.prototype,fk=ck&&Object.getOwnPropertyDescriptor,pk=sk(lk,"name"),hk={PROPER:pk&&"something"===function(){}.name,CONFIGURABLE:pk&&(!ck||ck&&fk(lk,"name").configurable)},dk=eO,vk=YO,gk=ME(Function.toString);dk(vk.inspectSource)||(vk.inspectSource=function(e){return gk(e)});var yk,mk,bk,wk=vk.inspectSource,Sk=eO,Ak=yE.WeakMap,Ek=Sk(Ak)&&/native code/.test(String(Ak)),Ok=ux,xk=KO("keys"),kk=function(e){return xk[e]||(xk[e]=Ok(e))},Ik={},Pk=Ek,_k=yE,Ck=rO,jk=ak,Rk=rx,Tk=YO,Nk=kk,Lk=Ik,Mk="Object already initialized",$k=_k.TypeError,Dk=_k.WeakMap;if(Pk||Tk.state){var Uk=Tk.state||(Tk.state=new Dk);Uk.get=Uk.get,Uk.has=Uk.has,Uk.set=Uk.set,yk=function(e,t){if(Uk.has(e))throw new $k(Mk);return t.facade=e,Uk.set(e,t),t},mk=function(e){return Uk.get(e)||{}},bk=function(e){return Uk.has(e)}}else{var Bk=Nk("state");Lk[Bk]=!0,yk=function(e,t){if(Rk(e,Bk))throw new $k(Mk);return t.facade=e,jk(e,Bk,t),t},mk=function(e){return Rk(e,Bk)?e[Bk]:{}},bk=function(e){return Rk(e,Bk)}}var Fk={set:yk,get:mk,has:bk,enforce:function(e){return bk(e)?mk(e):yk(e,{})},getterFor:function(e){return function(t){var r;if(!Ck(t)||(r=mk(t)).type!==e)throw new $k("Incompatible receiver, "+e+" required");return r}}},zk=ME,Gk=bE,Wk=eO,Hk=rx,qk=wE,Vk=hk.CONFIGURABLE,Yk=wk,Jk=Fk.enforce,Kk=Fk.get,Qk=String,Xk=Object.defineProperty,Zk=zk("".slice),eI=zk("".replace),tI=zk([].join),rI=qk&&!Gk(function(){return 8!==Xk(function(){},"length",{value:8}).length}),nI=String(String).split("String"),oI=uk.exports=function(e,t,r){"Symbol("===Zk(Qk(t),0,7)&&(t="["+eI(Qk(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hk(e,"name")||Vk&&e.name!==t)&&(qk?Xk(e,"name",{value:t,configurable:!0}):e.name=t),rI&&r&&Hk(r,"arity")&&e.length!==r.arity&&Xk(e,"length",{value:r.arity});try{r&&Hk(r,"constructor")&&r.constructor?qk&&Xk(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Jk(e);return Hk(n,"source")||(n.source=tI(nI,"string"==typeof t?t:"")),e};Function.prototype.toString=oI(function(){return Wk(this)&&Kk(this).source||Yk(this)},"toString");var iI=uk.exports,aI=eO,uI=Fx,cI=iI,sI=GO,lI=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(aI(r)&&cI(r,i,n),n.global)o?e[t]=r:sI(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:uI.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},fI={},pI=Math.ceil,hI=Math.floor,dI=Math.trunc||function(e){var t=+e;return(t>0?hI:pI)(t)},vI=function(e){var t=+e;return t!=t||0===t?0:dI(t)},gI=vI,yI=Math.max,mI=Math.min,bI=function(e,t){var r=gI(e);return r<0?yI(r+t,0):mI(r,t)},wI=vI,SI=Math.min,AI=function(e){var t=wI(e);return t>0?SI(t,9007199254740991):0},EI=AI,OI=function(e){return EI(e.length)},xI=XE,kI=bI,II=OI,PI=function(e){return function(t,r,n){var o=xI(t),i=II(o);if(0===i)return!e&&-1;var a,u=kI(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},_I={includes:PI(!0),indexOf:PI(!1)},CI=rx,jI=XE,RI=_I.indexOf,TI=Ik,NI=ME([].push),LI=function(e,t){var r,n=jI(e),o=0,i=[];for(r in n)!CI(TI,r)&&CI(n,r)&&NI(i,r);for(;t.length>o;)CI(n,r=t[o++])&&(~RI(i,r)||NI(i,r));return i},MI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$I=LI,DI=MI.concat("length","prototype");fI.f=Object.getOwnPropertyNames||function(e){return $I(e,DI)};var UI={};UI.f=Object.getOwnPropertySymbols;var BI=iO,FI=fI,zI=UI,GI=qx,WI=ME([].concat),HI=BI("Reflect","ownKeys")||function(e){var t=FI.f(GI(e)),r=zI.f;return r?WI(t,r(e)):t},qI=rx,VI=HI,YI=mE,JI=Fx,KI=function(e,t,r){for(var n=VI(t),o=JI.f,i=YI.f,a=0;a<n.length;a++){var u=n[a];qI(e,u)||r&&qI(r,u)||o(e,u,i(t,u))}},QI=bE,XI=eO,ZI=/#|\.prototype\./,eP=function(e,t){var r=rP[tP(e)];return r===oP||r!==nP&&(XI(t)?QI(t):!!t)},tP=eP.normalize=function(e){return String(e).replace(ZI,".").toLowerCase()},rP=eP.data={},nP=eP.NATIVE="N",oP=eP.POLYFILL="P",iP=eP,aP=yE,uP=mE.f,cP=ak,sP=lI,lP=GO,fP=KI,pP=iP,hP=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?aP:s?aP[u]||lP(u,{}):aP[u]&&aP[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=uP(r,n))&&a.value:r[n],!pP(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;fP(i,o)}(e.sham||o&&o.sham)&&cP(i,"sham",!0),sP(r,n,i,e)}},dP=SE,vP=Function.prototype,gP=vP.apply,yP=vP.call,mP="object"==typeof Reflect&&Reflect.apply||(dP?yP.bind(gP):function(){return yP.apply(gP,arguments)}),bP=ME,wP=RO,SP=function(e,t,r){try{return bP(wP(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},AP=rO,EP=String,OP=TypeError,xP=SP,kP=rO,IP=JE,PP=function(e){if(function(e){return AP(e)||null===e}(e))return e;throw new OP("Can't set "+EP(e)+" as a prototype")},_P=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=xP(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return IP(r),PP(n),kP(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),CP=Fx.f,jP=eO,RP=rO,TP=_P,NP=function(e,t,r){var n,o;return TP&&jP(n=t.constructor)&&n!==r&&RP(o=n.prototype)&&o!==r.prototype&&TP(e,o),e},LP={};LP[gx("toStringTag")]="z";var MP="[object z]"===String(LP),$P=eO,DP=BE,UP=gx("toStringTag"),BP=Object,FP="Arguments"===DP(function(){return arguments}()),zP=MP?DP: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=BP(e),UP))?r:FP?DP(t):"Object"===(n=DP(t))&&$P(t.callee)?"Arguments":n},GP=zP,WP=String,HP=function(e){if("Symbol"===GP(e))throw new TypeError("Cannot convert a Symbol value to a string");return WP(e)},qP=HP,VP=function(e,t){return void 0===e?arguments.length<2?"":t:qP(e)},YP=rO,JP=ak,KP=Error,QP=ME("".replace),XP=String(new KP("zxcasd").stack),ZP=/\n\s*at [^:]*:[^\n]*/,e_=ZP.test(XP),t_=function(e,t){if(e_&&"string"==typeof e&&!KP.prepareStackTrace)for(;t--;)e=QP(e,ZP,"");return e},r_=jE,n_=!bE(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r_(1,7)),7!==e.stack)}),o_=ak,i_=t_,a_=n_,u_=Error.captureStackTrace,c_=iO,s_=rx,l_=ak,f_=aO,p_=_P,h_=KI,d_=function(e,t,r){r in e||CP(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},v_=NP,g_=VP,y_=wE,m_=hP,b_=mP,w_=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=c_.apply(null,a);if(c){var s=c.prototype;if(s_(s,"cause")&&delete s.cause,!r)return c;var l=c_("Error"),f=t(function(e,t){var r,o,a,u,l=g_(n?t:e,void 0),p=n?new c(e):new c;return void 0!==l&&l_(p,"message",l),r=p,o=f,a=p.stack,u=2,a_&&(u_?u_(r,o):o_(r,"stack",i_(a,u))),this&&f_(s,this)&&v_(p,this,f),arguments.length>i&&function(e,t){YP(t)&&"cause"in t&&JP(e,"cause",t.cause)}(p,arguments[i]),p});f.prototype=s,"Error"!==u?p_?p_(f,l):h_(f,l,{name:!0}):y_&&o in c&&(d_(f,c,o),d_(f,c,"prepareStackTrace")),h_(f,c);try{s.name!==u&&l_(s,"name",u),s.constructor=f}catch(e){}return f}},S_="WebAssembly",A_=yE[S_],E_=7!==new Error("e",{cause:7}).cause,O_=function(e,t){var r={};r[e]=w_(e,t,E_),m_({global:!0,constructor:!0,arity:1,forced:E_},r)},x_=function(e,t){if(A_&&A_[e]){var r={};r[e]=w_(S_+"."+e,t,E_),m_({target:S_,stat:!0,constructor:!0,arity:1,forced:E_},r)}};O_("Error",function(e){return function(t){return b_(e,this,arguments)}}),O_("EvalError",function(e){return function(t){return b_(e,this,arguments)}}),O_("RangeError",function(e){return function(t){return b_(e,this,arguments)}}),O_("ReferenceError",function(e){return function(t){return b_(e,this,arguments)}}),O_("SyntaxError",function(e){return function(t){return b_(e,this,arguments)}}),O_("TypeError",function(e){return function(t){return b_(e,this,arguments)}}),O_("URIError",function(e){return function(t){return b_(e,this,arguments)}}),x_("CompileError",function(e){return function(t){return b_(e,this,arguments)}}),x_("LinkError",function(e){return function(t){return b_(e,this,arguments)}}),x_("RuntimeError",function(e){return function(t){return b_(e,this,arguments)}});var k_={},I_=LI,P_=MI,__=Object.keys||function(e){return I_(e,P_)},C_=wE,j_=zx,R_=Fx,T_=qx,N_=XE,L_=__;k_.f=C_&&!j_?Object.defineProperties:function(e,t){T_(e);for(var r,n=N_(t),o=L_(t),i=o.length,a=0;i>a;)R_.f(e,r=o[a++],n[r]);return e};var M_,$_=iO("document","documentElement"),D_=qx,U_=k_,B_=MI,F_=Ik,z_=$_,G_=_x,W_="prototype",H_="script",q_=kk("IE_PROTO"),V_=function(){},Y_=function(e){return"<"+H_+">"+e+"</"+H_+">"},J_=function(e){e.write(Y_("")),e.close();var t=e.parentWindow.Object;return e=null,t},K_=function(){try{M_=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;K_="undefined"!=typeof document?document.domain&&M_?J_(M_):(t=G_("iframe"),r="java"+H_+":",t.style.display="none",z_.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Y_("document.F=Object")),e.close(),e.F):J_(M_);for(var n=B_.length;n--;)delete K_[W_][B_[n]];return K_()};F_[q_]=!0;var Q_=Object.create||function(e,t){var r;return null!==e?(V_[W_]=D_(e),r=new V_,V_[W_]=null,r[q_]=e):r=K_(),void 0===t?r:U_.f(r,t)},X_=gx,Z_=Q_,eC=Fx.f,tC=X_("unscopables"),rC=Array.prototype;void 0===rC[tC]&&eC(rC,tC,{configurable:!0,value:Z_(null)});var nC,oC,iC,aC=function(e){rC[tC][e]=!0},uC={},cC=!bE(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),sC=rx,lC=eO,fC=ZO,pC=cC,hC=kk("IE_PROTO"),dC=Object,vC=dC.prototype,gC=pC?dC.getPrototypeOf:function(e){var t=fC(e);if(sC(t,hC))return t[hC];var r=t.constructor;return lC(r)&&t instanceof r?r.prototype:t instanceof dC?vC:null},yC=bE,mC=eO,bC=rO,wC=gC,SC=lI,AC=gx("iterator"),EC=!1;[].keys&&("next"in(iC=[].keys())?(oC=wC(wC(iC)))!==Object.prototype&&(nC=oC):EC=!0);var OC=!bC(nC)||yC(function(){var e={};return nC[AC].call(e)!==e});OC&&(nC={}),mC(nC[AC])||SC(nC,AC,function(){return this});var xC={IteratorPrototype:nC,BUGGY_SAFARI_ITERATORS:EC},kC=Fx.f,IC=rx,PC=gx("toStringTag"),_C=function(e,t,r){e&&!r&&(e=e.prototype),e&&!IC(e,PC)&&kC(e,PC,{configurable:!0,value:t})},CC=xC.IteratorPrototype,jC=Q_,RC=jE,TC=_C,NC=uC,LC=function(){return this},MC=function(e,t,r,n){var o=t+" Iterator";return e.prototype=jC(CC,{next:RC(+!n,r)}),TC(e,o,!1),NC[o]=LC,e},$C=hP,DC=OE,UC=eO,BC=MC,FC=gC,zC=_P,GC=_C,WC=ak,HC=lI,qC=uC,VC=hk.PROPER,YC=hk.CONFIGURABLE,JC=xC.IteratorPrototype,KC=xC.BUGGY_SAFARI_ITERATORS,QC=gx("iterator"),XC="keys",ZC="values",ej="entries",tj=function(){return this},rj=function(e,t,r,n,o,i,a){BC(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!KC&&e&&e in h)return h[e];switch(e){case XC:case ZC:case ej:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[QC]||h["@@iterator"]||o&&h[o],v=!KC&&d||l(o),g="Array"===t&&h.entries||d;if(g&&(u=FC(g.call(new e)))!==Object.prototype&&u.next&&(FC(u)!==JC&&(zC?zC(u,JC):UC(u[QC])||HC(u,QC,tj)),GC(u,f,!0)),VC&&o===ZC&&d&&d.name!==ZC&&(YC?WC(h,"name",ZC):(p=!0,v=function(){return DC(d,this)})),o)if(c={values:l(ZC),keys:i?v:l(XC),entries:l(ej)},a)for(s in c)(KC||p||!(s in h))&&HC(h,s,c[s]);else $C({target:t,proto:!0,forced:KC||p},c);return h[QC]!==v&&HC(h,QC,v,{name:o}),qC[t]=v,c},nj=function(e,t){return{value:e,done:t}},oj=XE,ij=aC,aj=uC,uj=Fk,cj=Fx.f,sj=rj,lj=nj,fj=wE,pj="Array Iterator",hj=uj.set,dj=uj.getterFor(pj),vj=sj(Array,"Array",function(e,t){hj(this,{type:pj,target:oj(e),index:0,kind:t})},function(){var e=dj(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,lj(void 0,!0);switch(e.kind){case"keys":return lj(r,!1);case"values":return lj(t[r],!1)}return lj([r,t[r]],!1)},"values"),gj=aj.Arguments=aj.Array;if(ij("keys"),ij("values"),ij("entries"),fj&&"values"!==gj.name)try{cj(gj,"name",{value:"values"})}catch(e){}var yj=BE,mj=Array.isArray||function(e){return"Array"===yj(e)},bj=wE,wj=mj,Sj=TypeError,Aj=Object.getOwnPropertyDescriptor,Ej=bj&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Oj=TypeError,xj=ZO,kj=OI,Ij=Ej?function(e,t){if(wj(e)&&!Aj(e,"length").writable)throw new Sj("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};hP({target:"Array",proto:!0,arity:1,forced:bE(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=xj(this),r=kj(t),n=arguments.length;!function(e){if(e>9007199254740991)throw Oj("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return Ij(t,r),r}});var Pj=aO,_j=TypeError,Cj=function(e,t){if(Pj(t,e))return e;throw new _j("Incorrect invocation")},jj=iI,Rj=Fx,Tj=function(e,t,r){return r.get&&jj(r.get,t,{getter:!0}),r.set&&jj(r.set,t,{setter:!0}),Rj.f(e,t,r)},Nj=wE,Lj=Fx,Mj=jE,$j=function(e,t,r){Nj?Lj.f(e,t,Mj(0,r)):e[t]=r},Dj=hP,Uj=yE,Bj=Cj,Fj=qx,zj=eO,Gj=gC,Wj=Tj,Hj=$j,qj=bE,Vj=rx,Yj=xC.IteratorPrototype,Jj=wE,Kj="constructor",Qj="Iterator",Xj=gx("toStringTag"),Zj=TypeError,eR=Uj[Qj],tR=!zj(eR)||eR.prototype!==Yj||!qj(function(){eR({})}),rR=function(){if(Bj(this,Yj),Gj(this)===Yj)throw new Zj("Abstract class Iterator not directly constructable")},nR=function(e,t){Jj?Wj(Yj,e,{configurable:!0,get:function(){return t},set:function(t){if(Fj(this),this===Yj)throw new Zj("You can't redefine this property");Vj(this,e)?this[e]=t:Hj(this,e,t)}}):Yj[e]=t};Vj(Yj,Xj)||nR(Xj,Qj),!tR&&Vj(Yj,Kj)&&Yj[Kj]!==Object||nR(Kj,rR),rR.prototype=Yj,Dj({global:!0,constructor:!0,forced:tR},{Iterator:rR});var oR=function(e){return{iterator:e,next:e.next,done:!1}},iR=lI,aR=function(e,t,r){for(var n in t)iR(e,n,t[n],r);return e},uR=OE,cR=qx,sR=LO,lR=function(e,t,r){var n,o;cR(e);try{if(!(n=sR(e,"return"))){if("throw"===t)throw r;return r}n=uR(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return cR(n),r},fR=lR,pR=OE,hR=Q_,dR=ak,vR=aR,gR=Fk,yR=LO,mR=xC.IteratorPrototype,bR=nj,wR=lR,SR=gx("toStringTag"),AR="IteratorHelper",ER="WrapForValidIterator",OR="normal",xR="throw",kR=gR.set,IR=function(e){var t=gR.getterFor(e?ER:AR);return vR(hR(mR),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return bR(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:bR(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=yR(n,"return");return o?pR(o,n):bR(void 0,!0)}if(r.inner)try{wR(r.inner.iterator,OR)}catch(e){return wR(n,xR,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=fR(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,OR)}catch(e){return wR(n,xR,e)}return n&&wR(n,OR),bR(void 0,!0)}})},PR=IR(!0),_R=IR(!1);dR(_R,SR,"Iterator Helper");var CR=qx,jR=lR,RR=function(e,t,r,n){try{return n?t(CR(r)[0],r[1]):t(r)}catch(t){jR(e,"throw",t)}},TR=yE,NR=function(e,t){var r=TR.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},LR=hP,MR=OE,$R=RO,DR=qx,UR=oR,BR=RR,FR=lR,zR=NR,GR=!function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}("filter",function(){}),WR=!GR&&zR("filter",TypeError),HR=GR||WR,qR=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?ER:AR,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,kR(this,o)};return n.prototype=t?PR:_R,n}(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=DR(MR(o,r)),this.done=!!e.done)return;if(t=e.value,BR(r,n,[t,this.counter++],!0))return t}});LR({target:"Iterator",proto:!0,real:!0,forced:HR},{filter:function(e){DR(this);try{$R(e)}catch(e){FR(this,"throw",e)}return WR?MR(WR,this,e):new qR(UR(this),{predicate:e})}});var VR=BE,YR=ME,JR=function(e){if("Function"===VR(e))return YR(e)},KR=RO,QR=SE,XR=JR(JR.bind),ZR=function(e,t){return KR(e),void 0===t?e:QR?XR(e,t):function(){return e.apply(t,arguments)}},eT=uC,tT=gx("iterator"),rT=Array.prototype,nT=function(e){return void 0!==e&&(eT.Array===e||rT[tT]===e)},oT=zP,iT=LO,aT=qE,uT=uC,cT=gx("iterator"),sT=function(e){if(!aT(e))return iT(e,cT)||iT(e,"@@iterator")||uT[oT(e)]},lT=OE,fT=RO,pT=qx,hT=PO,dT=sT,vT=TypeError,gT=function(e,t){var r=arguments.length<2?dT(e):t;if(fT(r))return pT(lT(r,e));throw new vT(hT(e)+" is not iterable")},yT=ZR,mT=OE,bT=qx,wT=PO,ST=nT,AT=OI,ET=aO,OT=gT,xT=sT,kT=lR,IT=TypeError,PT=function(e,t){this.stopped=e,this.result=t},_T=PT.prototype,CT=function(e,t,r){var n,o,i,a,u,c,s,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=yT(t,l),g=function(e){return n&&kT(n,"normal"),new PT(!0,e)},y=function(e){return f?(bT(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=xT(e)))throw new IT(wT(e)+" is not iterable");if(ST(o)){for(i=0,a=AT(e);a>i;i++)if((u=y(e[i]))&&ET(_T,u))return u;return new PT(!1)}n=OT(e,o)}for(c=p?e.next:n.next;!(s=mT(c,n)).done;){try{u=y(s.value)}catch(e){kT(n,"throw",e)}if("object"==typeof u&&u&&ET(_T,u))return u}return new PT(!1)},jT=hP,RT=OE,TT=CT,NT=RO,LT=qx,MT=oR,$T=lR,DT=NR("find",TypeError);jT({target:"Iterator",proto:!0,real:!0,forced:DT},{find:function(e){LT(this);try{NT(e)}catch(e){$T(this,"throw",e)}if(DT)return RT(DT,this,e);var t=MT(this),r=0;return TT(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var UT=hP,BT=OE,FT=CT,zT=RO,GT=qx,WT=oR,HT=lR,qT=NR("forEach",TypeError);UT({target:"Iterator",proto:!0,real:!0,forced:qT},{forEach:function(e){GT(this);try{zT(e)}catch(e){HT(this,"throw",e)}if(qT)return BT(qT,this,e);var t=WT(this),r=0;FT(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var VT=wE,YT=ME,JT=OE,KT=bE,QT=__,XT=UI,ZT=xE,eN=ZO,tN=HE,rN=Object.assign,nN=Object.defineProperty,oN=YT([].concat),iN=!rN||KT(function(){if(VT&&1!==rN({b:1},rN(nN({},"a",{enumerable:!0,get:function(){nN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==rN({},e)[r]||QT(rN({},t)).join("")!==n})?function(e,t){for(var r=eN(e),n=arguments.length,o=1,i=XT.f,a=ZT.f;n>o;)for(var u,c=tN(arguments[o++]),s=i?oN(QT(c),i(c)):QT(c),l=s.length,f=0;l>f;)u=s[f++],VT&&!JT(a,c,u)||(r[u]=c[u]);return r}:rN,aN=iN;hP({target:"Object",stat:!0,arity:2,forced:Object.assign!==aN},{assign:aN});var uN=ME,cN=Set.prototype,sN={Set,add:uN(cN.add),has:uN(cN.has),remove:uN(cN.delete),proto:cN},lN=sN.has,fN=function(e){return lN(e),e},pN=OE,hN=function(e,t,r){for(var n,o,i=r?e:e.iterator,a=e.next;!(n=pN(a,i)).done;)if(void 0!==(o=t(n.value)))return o},dN=ME,vN=hN,gN=sN.Set,yN=sN.proto,mN=dN(yN.forEach),bN=dN(yN.keys),wN=bN(new gN).next,SN=function(e,t,r){return r?vN({iterator:bN(e),next:wN},t):mN(e,t)},AN=SN,EN=sN.Set,ON=sN.add,xN=function(e){var t=new EN;return AN(e,function(e){ON(t,e)}),t},kN=SP(sN.proto,"size","get")||function(e){return e.size},IN=RO,PN=qx,_N=OE,CN=vI,jN=oR,RN="Invalid size",TN=RangeError,NN=TypeError,LN=Math.max,MN=function(e,t){this.set=e,this.size=LN(t,0),this.has=IN(e.has),this.keys=IN(e.keys)};MN.prototype={getIterator:function(){return jN(PN(_N(this.keys,this.set)))},includes:function(e){return _N(this.has,this.set,e)}};var $N=function(e){PN(e);var t=+e.size;if(t!=t)throw new NN(RN);var r=CN(t);if(r<0)throw new TN(RN);return new MN(e,r)},DN=fN,UN=xN,BN=kN,FN=$N,zN=SN,GN=hN,WN=sN.has,HN=sN.remove,qN=iO,VN=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},YN=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}},JN=function(e,t){var r=qN("Set");try{(new r)[e](VN(0));try{return(new r)[e](VN(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](YN(-1/0)),!1}catch(n){return t(new r([1,2])[e](YN(1/0)))}}}catch(e){return!1}},KN=bE;hP({target:"Set",proto:!0,real:!0,forced:!JN("difference",function(e){return 0===e.size})||KN(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:function(e){var t=DN(this),r=FN(e),n=UN(t);return BN(t)<=r.size?zN(t,function(e){r.includes(e)&&HN(n,e)}):GN(r.getIterator(),function(e){WN(n,e)&&HN(n,e)}),n}});var QN=fN,XN=kN,ZN=$N,eL=SN,tL=hN,rL=sN.Set,nL=sN.add,oL=sN.has,iL=bE;hP({target:"Set",proto:!0,real:!0,forced:!JN("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||iL(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:function(e){var t=QN(this),r=ZN(e),n=new rL;return XN(t)>r.size?tL(r.getIterator(),function(e){oL(t,e)&&nL(n,e)}):eL(t,function(e){r.includes(e)&&nL(n,e)}),n}});var aL=fN,uL=sN.has,cL=kN,sL=$N,lL=SN,fL=hN,pL=lR;hP({target:"Set",proto:!0,real:!0,forced:!JN("isDisjointFrom",function(e){return!e})},{isDisjointFrom:function(e){var t=aL(this),r=sL(e);if(cL(t)<=r.size)return!1!==lL(t,function(e){if(r.includes(e))return!1},!0);var n=r.getIterator();return!1!==fL(n,function(e){if(uL(t,e))return pL(n,"normal",!1)})}});var hL=fN,dL=kN,vL=SN,gL=$N;hP({target:"Set",proto:!0,real:!0,forced:!JN("isSubsetOf",function(e){return e})},{isSubsetOf:function(e){var t=hL(this),r=gL(e);return!(dL(t)>r.size)&&!1!==vL(t,function(e){if(!r.includes(e))return!1},!0)}});var yL=fN,mL=sN.has,bL=kN,wL=$N,SL=hN,AL=lR;hP({target:"Set",proto:!0,real:!0,forced:!JN("isSupersetOf",function(e){return!e})},{isSupersetOf:function(e){var t=yL(this),r=wL(e);if(bL(t)<r.size)return!1;var n=r.getIterator();return!1!==SL(n,function(e){if(!mL(t,e))return AL(n,"normal",!1)})}});var EL=fN,OL=xN,xL=$N,kL=hN,IL=sN.add,PL=sN.has,_L=sN.remove,CL=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}},jL=CL;hP({target:"Set",proto:!0,real:!0,forced:!JN("symmetricDifference")||!jL("symmetricDifference")},{symmetricDifference:function(e){var t=EL(this),r=xL(e).getIterator(),n=OL(t);return kL(r,function(e){PL(t,e)?_L(n,e):IL(n,e)}),n}});var RL=fN,TL=sN.add,NL=xN,LL=$N,ML=hN,$L=CL;hP({target:"Set",proto:!0,real:!0,forced:!JN("union")||!$L("union")},{union:function(e){var t=RL(this),r=LL(e).getIterator(),n=NL(t);return ML(r,function(e){TL(n,e)}),n}});var DL=_x("span").classList,UL=DL&&DL.constructor&&DL.constructor.prototype,BL=UL===Object.prototype?void 0:UL,FL=yE,zL={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},GL=BL,WL=vj,HL=ak,qL=_C,VL=gx("iterator"),YL=WL.values,JL=function(e,t){if(e){if(e[VL]!==YL)try{HL(e,VL,YL)}catch(t){e[VL]=YL}if(qL(e,t,!0),zL[t])for(var r in WL)if(e[r]!==WL[r])try{HL(e,r,WL[r])}catch(t){e[r]=WL[r]}}};for(var KL in zL)JL(FL[KL]&&FL[KL].prototype,KL);JL(GL,"DOMTokenList");var QL=qx,XL=function(){var e=QL(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ZL=bE,eM=yE.RegExp,tM=ZL(function(){var e=eM("a","y");return e.lastIndex=2,null!==e.exec("abcd")});tM||ZL(function(){return!eM("a","y").sticky});var rM=tM||ZL(function(){var e=eM("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),nM={BROKEN_CARET:rM},oM=bE,iM=yE.RegExp,aM=oM(function(){var e=iM(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),uM=bE,cM=yE.RegExp,sM=uM(function(){var e=cM("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),lM=OE,fM=ME,pM=HP,hM=XL,dM=nM,vM=Q_,gM=Fk.get,yM=aM,mM=sM,bM=KO("native-string-replace",String.prototype.replace),wM=RegExp.prototype.exec,SM=wM,AM=fM("".charAt),EM=fM("".indexOf),OM=fM("".replace),xM=fM("".slice),kM=function(){var e=/a/,t=/b*/g;return lM(wM,e,"a"),lM(wM,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),IM=dM.BROKEN_CARET,PM=void 0!==/()??/.exec("")[1];(kM||PM||IM||yM||mM)&&(SM=function(e){var t,r,n,o,i,a,u,c=this,s=gM(c),l=pM(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=lM(SM,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=IM&&c.sticky,d=lM(hM,c),v=c.source,g=0,y=l;if(h&&(d=OM(d,"y",""),-1===EM(d,"g")&&(d+="g"),y=xM(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==AM(l,c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",d)),PM&&(r=new RegExp("^"+v+"$(?!\\s)",d)),kM&&(n=c.lastIndex),o=lM(wM,h?r:c,y),h?o?(o.input=xM(o.input,g),o[0]=xM(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:kM&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),PM&&o&&o.length>1&&lM(bM,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=vM(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var _M=SM;hP({target:"RegExp",proto:!0,forced:/./.exec!==_M},{exec:_M});var CM=OE,jM=lI,RM=_M,TM=bE,NM=gx,LM=ak,MM=NM("species"),$M=RegExp.prototype,DM=function(e,t,r,n){var o=NM(e),i=!TM(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!TM(function(){var t=!1,r=/a/;if("split"===e){var n={};n[MM]=function(){return r},(r={constructor:n,flags:""})[o]=/./[o]}return r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===RM||a===$M.exec?i&&!o?{done:!0,value:CM(u,t,r,n)}:{done:!0,value:CM(e,r,t,n)}:{done:!1}});jM(String.prototype,e,c[0]),jM($M,o,c[1])}n&&LM($M[o],"sham",!0)},UM=ME,BM=vI,FM=HP,zM=JE,GM=UM("".charAt),WM=UM("".charCodeAt),HM=UM("".slice),qM=function(e){return function(t,r){var n,o,i=FM(zM(t)),a=BM(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=WM(i,a))<55296||n>56319||a+1===u||(o=WM(i,a+1))<56320||o>57343?e?GM(i,a):n:e?HM(i,a,a+2):o-56320+(n-55296<<10)+65536}},VM={codeAt:qM(!1),charAt:qM(!0)},YM=VM.charAt,JM=ME,KM=ZO,QM=Math.floor,XM=JM("".charAt),ZM=JM("".replace),e$=JM("".slice),t$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r$=/\$([$&'`]|\d{1,2})/g,n$=bE,o$=yE.RegExp,i$=!n$(function(){var e=!0;try{o$(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(o$.prototype,"flags").get.call(t)!==n||r!==n}),a$=OE,u$=rx,c$=aO,s$=i$,l$=XL,f$=RegExp.prototype,p$=s$?function(e){return e.flags}:function(e){return s$||!c$(f$,e)||u$(e,"flags")?e.flags:a$(l$,e)},h$=OE,d$=qx,v$=eO,g$=BE,y$=_M,m$=TypeError,b$=function(e,t){var r=e.exec;if(v$(r)){var n=h$(r,e,t);return null!==n&&d$(n),n}if("RegExp"===g$(e))return h$(y$,e,t);throw new m$("RegExp#exec called on incompatible receiver")},w$=mP,S$=OE,A$=ME,E$=DM,O$=bE,x$=qx,k$=eO,I$=rO,P$=vI,_$=AI,C$=HP,j$=JE,R$=function(e,t,r){return t+(r?YM(e,t).length:1)},T$=LO,N$=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=r$;return void 0!==o&&(o=KM(o),c=t$),ZM(i,c,function(i,c){var s;switch(XM(c,0)){case"$":return"$";case"&":return e;case"`":return e$(t,0,r);case"'":return e$(t,a);case"<":s=o[e$(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>u){var f=QM(l/10);return 0===f?i:f<=u?void 0===n[f-1]?XM(c,1):n[f-1]+XM(c,1):i}s=n[l-1]}return void 0===s?"":s})},L$=p$,M$=b$,$$=gx("replace"),D$=Math.max,U$=Math.min,B$=A$([].concat),F$=A$([].push),z$=A$("".indexOf),G$=A$("".slice),W$=function(e){return void 0===e?e:String(e)},H$="$0"==="a".replace(/./,"$0"),q$=!!/./[$$]&&""===/./[$$]("a","$0"),V$=!O$(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});E$("replace",function(e,t,r){var n=q$?"$":"$0";return[function(e,r){var n=j$(this),o=I$(e)?T$(e,$$):void 0;return o?S$(o,e,n,r):S$(t,C$(n),e,r)},function(e,o){var i=x$(this),a=C$(e);if("string"==typeof o&&-1===z$(o,n)&&-1===z$(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=k$(o);c||(o=C$(o));var s,l=C$(L$(i)),f=-1!==z$(l,"g");f&&(s=-1!==z$(l,"u"),i.lastIndex=0);for(var p,h=[];null!==(p=M$(i,a))&&(F$(h,p),f);)""===C$(p[0])&&(i.lastIndex=R$(a,_$(i.lastIndex),s));for(var d="",v=0,g=0;g<h.length;g++){for(var y,m=C$((p=h[g])[0]),b=D$(U$(P$(p.index),a.length),0),w=[],S=1;S<p.length;S++)F$(w,W$(p[S]));var A=p.groups;if(c){var E=B$([m],w,b,a);void 0!==A&&F$(E,A),y=C$(w$(o,void 0,E))}else y=N$(m,a,b,w,A,o);b>=v&&(d+=G$(a,v,b)+y,v=b+m.length)}return d+G$(a,v)}]},!V$||!H$||q$);class Y$ extends Error{constructor(e,t){super(e),this.name="UnisphereLoadError",this.code=t,Object.setPrototypeOf(this,Y$.prototype)}}var J$=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},K$=OE,Q$=qx,X$=rO,Z$=JE,eD=J$,tD=HP,rD=LO,nD=b$;DM("search",function(e,t,r){return[function(t){var r=Z$(this),n=X$(t)?rD(t,e):void 0;return n?K$(n,t,r):new RegExp(t)[e](tD(r))},function(e){var n=Q$(this),o=tD(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;eD(a,0)||(n.lastIndex=0);var u=nD(n,o);return eD(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});const oD=e=>{const t=window.location.search.substr(1).split("&"),r=`${e}=`,n=t.filter(e=>e.search(r)>=0);return n.length>0?n[0].substring(n[0].search(r)+r.length):""};var iD=_I.includes,aD=aC;hP({target:"Array",proto:!0,forced:bE(function(){return!Array(1).includes()})},{includes:function(e){return iD(this,e,arguments.length>1?arguments[1]:void 0)}}),aD("includes");var uD=RO,cD=ZO,sD=HE,lD=OI,fD=TypeError,pD="Reduce of empty array with no initial value",hD={left:function(e,t,r,n){var o=cD(e),i=sD(o),a=lD(o);if(uD(t),0===a&&r<2)throw new fD(pD);var u=0;if(r<2)for(;;){if(u in i){n=i[u],u+=1;break}if(a<=(u+=1))throw new fD(pD)}for(;a>u;u+=1)u in i&&(n=t(n,i[u],u,o));return n}},dD=bE,vD=yE,gD=sO,yD=BE,mD=function(e){return gD.slice(0,e.length)===e},bD=mD("Bun/")?"BUN":mD("Cloudflare-Workers")?"CLOUDFLARE":mD("Deno/")?"DENO":mD("Node.js/")?"NODE":vD.Bun&&"string"==typeof Bun.version?"BUN":vD.Deno&&"object"==typeof Deno.version?"DENO":"process"===yD(vD.process)?"NODE":vD.window&&vD.document?"BROWSER":"REST",wD="NODE"===bD,SD=hD.left;hP({target:"Array",proto:!0,forced:!wD&&gO>79&&gO<83||!function(e,t){var r=[][e];return!!r&&dD(function(){r.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return SD(this,e,t,t>1?arguments[1]:void 0)}});var AD=hP,ED=CT,OD=RO,xD=qx,kD=oR,ID=lR,PD=NR,_D=mP,CD=TypeError,jD=bE(function(){[].keys().reduce(function(){},void 0)}),RD=!jD&&PD("reduce",CD);AD({target:"Iterator",proto:!0,real:!0,forced:jD||RD},{reduce:function(e){xD(this);try{OD(e)}catch(e){ID(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(RD)return _D(RD,this,t?[e]:[e,r]);var n=kD(this),o=0;if(ED(n,function(n){t?(t=!1,r=n):r=e(r,n,o),o++},{IS_RECORD:!0}),t)throw new CD("Reduce of empty iterator with no initial value");return r}});var TD=rO,ND=BE,LD=gx("match"),MD=TypeError,$D=function(e){if(function(e){var t;return TD(e)&&(void 0!==(t=e[LD])?!!t:"RegExp"===ND(e))}(e))throw new MD("The method doesn't accept regular expressions");return e},DD=gx("match"),UD=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[DD]=!1,"/./"[e](t)}catch(e){}}return!1},BD=hP,FD=JR,zD=mE.f,GD=AI,WD=HP,HD=$D,qD=JE,VD=UD,YD=FD("".slice),JD=Math.min,KD=VD("startsWith"),QD=!KD&&!!function(){var e=zD(String.prototype,"startsWith");return e&&!e.writable}();BD({target:"String",proto:!0,forced:!QD&&!KD},{startsWith:function(e){var t=WD(qD(this));HD(e);var r=GD(JD(arguments.length>1?arguments[1]:void 0,t.length)),n=WD(e);return YD(t,r,r+n.length)===n}});var XD="\t\n\v\f\r                 \u2028\u2029\ufeff",ZD=JE,eU=HP,tU=XD,rU=ME("".replace),nU=RegExp("^["+tU+"]+"),oU=RegExp("(^|[^"+tU+"])["+tU+"]+$"),iU=hk.PROPER,aU=bE,uU=XD,cU={trim:function(e){var t=eU(ZD(e));return t=rU(t,nU,""),t=rU(t,oU,"$1")}}.trim;hP({target:"String",proto:!0,forced:function(e){return aU(function(){return!!uU[e]()||"​…᠎"!=="​…᠎"[e]()||iU&&uU[e].name!==e})}("trim")},{trim:function(){return cU(this)}});let sU="true"===oD("unisphereVerbose")?"log":oD("unisphereVerbose")||"";const lU=["log","debug"].includes(sU)?sU:"warn",fU=oD("unisphereEnvironment")||"prod",pU=oD("unispherePresets")||null,hU={logLevel:lU,verbose:sU,environment:"dev"===fU?"dev":"prod",presets:pU?pU.split(",").reduce((e,t)=>(t.startsWith("-")?e.deactivate.push(t.substring(1).trim()):e.activate.push(t.trim()),e),{activate:[],deactivate:[]}):null},dU=()=>hU;function vU(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(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(a,u)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var gU=yE,yU=iO,mU=Tj,bU=wE,wU=gx("species"),SU=ME,AU=bE,EU=eO,OU=zP,xU=wk,kU=function(){},IU=iO("Reflect","construct"),PU=/^\s*(?:class|function)\b/,_U=SU(PU.exec),CU=!PU.test(kU),jU=function(e){if(!EU(e))return!1;try{return IU(kU,[],e),!0}catch(e){return!1}},RU=function(e){if(!EU(e))return!1;switch(OU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return CU||!!_U(PU,xU(e))}catch(e){return!0}};RU.sham=!0;var TU,NU,LU,MU,$U=!IU||AU(function(){var e;return jU(jU.call)||!jU(Object)||!jU(function(){e=!0})||e})?RU:jU,DU=$U,UU=PO,BU=TypeError,FU=qx,zU=qE,GU=gx("species"),WU=ME([].slice),HU=TypeError,qU=function(e,t){if(e<t)throw new HU("Not enough arguments");return e},VU=/(?:ipad|iphone|ipod).*applewebkit/i.test(sO),YU=yE,JU=mP,KU=ZR,QU=eO,XU=rx,ZU=bE,eB=$_,tB=WU,rB=_x,nB=qU,oB=VU,iB=wD,aB=YU.setImmediate,uB=YU.clearImmediate,cB=YU.process,sB=YU.Dispatch,lB=YU.Function,fB=YU.MessageChannel,pB=YU.String,hB=0,dB={},vB="onreadystatechange";ZU(function(){TU=YU.location});var gB=function(e){if(XU(dB,e)){var t=dB[e];delete dB[e],t()}},yB=function(e){return function(){gB(e)}},mB=function(e){gB(e.data)},bB=function(e){YU.postMessage(pB(e),TU.protocol+"//"+TU.host)};aB&&uB||(aB=function(e){nB(arguments.length,1);var t=QU(e)?e:lB(e),r=tB(arguments,1);return dB[++hB]=function(){JU(t,void 0,r)},NU(hB),hB},uB=function(e){delete dB[e]},iB?NU=function(e){cB.nextTick(yB(e))}:sB&&sB.now?NU=function(e){sB.now(yB(e))}:fB&&!oB?(MU=(LU=new fB).port2,LU.port1.onmessage=mB,NU=KU(MU.postMessage,MU)):YU.addEventListener&&QU(YU.postMessage)&&!YU.importScripts&&TU&&"file:"!==TU.protocol&&!ZU(bB)?(NU=bB,YU.addEventListener("message",mB,!1)):NU=vB in rB("script")?function(e){eB.appendChild(rB("script"))[vB]=function(){eB.removeChild(this),gB(e)}}:function(e){setTimeout(yB(e),0)});var wB={set:aB},SB=yE,AB=wE,EB=Object.getOwnPropertyDescriptor,OB=function(e){if(!AB)return SB[e];var t=EB(SB,e);return t&&t.value},xB=function(){this.head=null,this.tail=null};xB.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}};var kB,IB,PB,_B,CB,jB=xB,RB=/ipad|iphone|ipod/i.test(sO)&&"undefined"!=typeof Pebble,TB=/web0s(?!.*chrome)/i.test(sO),NB=yE,LB=OB,MB=ZR,$B=wB.set,DB=jB,UB=VU,BB=RB,FB=TB,zB=wD,GB=NB.MutationObserver||NB.WebKitMutationObserver,WB=NB.document,HB=NB.process,qB=NB.Promise,VB=LB("queueMicrotask");if(!VB){var YB=new DB,JB=function(){var e,t;for(zB&&(e=HB.domain)&&e.exit();t=YB.get();)try{t()}catch(e){throw YB.head&&kB(),e}e&&e.enter()};UB||zB||FB||!GB||!WB?!BB&&qB&&qB.resolve?((_B=qB.resolve(void 0)).constructor=qB,CB=MB(_B.then,_B),kB=function(){CB(JB)}):zB?kB=function(){HB.nextTick(JB)}:($B=MB($B,NB),kB=function(){$B(JB)}):(IB=!0,PB=WB.createTextNode(""),new GB(JB).observe(PB,{characterData:!0}),kB=function(){PB.data=IB=!IB}),VB=function(e){YB.head||kB(),YB.add(e)}}var KB=VB,QB=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},XB=yE.Promise,ZB=yE,eF=XB,tF=eO,rF=iP,nF=wk,oF=gx,iF=bD,aF=gO;eF&&eF.prototype;var uF=oF("species"),cF=!1,sF=tF(ZB.PromiseRejectionEvent),lF=rF("Promise",function(){var e=nF(eF),t=e!==String(eF);if(!t&&66===aF)return!0;if(!aF||aF<51||!/native code/.test(e)){var r=new eF(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[uF]=n,!(cF=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==iF&&"DENO"!==iF||sF)}),fF={CONSTRUCTOR:lF,REJECTION_EVENT:sF,SUBCLASSING:cF},pF={},hF=RO,dF=TypeError,vF=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new dF("Bad Promise constructor");t=e,r=n}),this.resolve=hF(t),this.reject=hF(r)};pF.f=function(e){return new vF(e)};var gF,yF,mF,bF,wF,SF=hP,AF=wD,EF=yE,OF=gU,xF=OE,kF=lI,IF=_P,PF=_C,_F=RO,CF=eO,jF=rO,RF=Cj,TF=function(e,t){var r,n=FU(e).constructor;return void 0===n||zU(r=FU(n)[GU])?t:function(e){if(DU(e))return e;throw new BU(UU(e)+" is not a constructor")}(r)},NF=wB.set,LF=KB,MF=QB,$F=jB,DF=Fk,UF=XB,BF=pF,FF="Promise",zF=fF.CONSTRUCTOR,GF=fF.REJECTION_EVENT,WF=fF.SUBCLASSING,HF=DF.getterFor(FF),qF=DF.set,VF=UF&&UF.prototype,YF=UF,JF=VF,KF=EF.TypeError,QF=EF.document,XF=EF.process,ZF=BF.f,ez=ZF,tz=!!(QF&&QF.createEvent&&EF.dispatchEvent),rz="unhandledrejection",nz=function(e){var t;return!(!jF(e)||!CF(t=e.then))&&t},oz=function(e,t){var r,n,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,c=e.resolve,s=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&sz(t),t.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===e.promise?s(new KF("Promise-chain cycle")):(n=nz(r))?xF(n,r,c,s):c(r)):s(i)}catch(e){l&&!o&&l.exit(),s(e)}},iz=function(e,t){e.notified||(e.notified=!0,LF(function(){for(var r,n=e.reactions;r=n.get();)oz(r,e);e.notified=!1,t&&!e.rejection&&uz(e)}))},az=function(e,t,r){var n,o;tz?((n=QF.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),EF.dispatchEvent(n)):n={promise:t,reason:r},!GF&&(o=EF["on"+e])?o(n):e===rz&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",r)},uz=function(e){xF(NF,EF,function(){var t,r=e.facade,n=e.value;if(cz(e)&&(t=MF(function(){AF?XF.emit("unhandledRejection",n,r):az(rz,r,n)}),e.rejection=AF||cz(e)?2:1,t.error))throw t.value})},cz=function(e){return 1!==e.rejection&&!e.parent},sz=function(e){xF(NF,EF,function(){var t=e.facade;AF?XF.emit("rejectionHandled",t):az("rejectionhandled",t,e.value)})},lz=function(e,t,r){return function(n){e(t,n,r)}},fz=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,iz(e,!0))},pz=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new KF("Promise can't be resolved itself");var n=nz(t);n?LF(function(){var r={done:!1};try{xF(n,t,lz(pz,r,e),lz(fz,r,e))}catch(t){fz(r,t,e)}}):(e.value=t,e.state=1,iz(e,!1))}catch(t){fz({done:!1},t,e)}}};if(zF&&(JF=(YF=function(e){RF(this,JF),_F(e),xF(gF,this);var t=HF(this);try{e(lz(pz,t),lz(fz,t))}catch(e){fz(t,e)}}).prototype,(gF=function(e){qF(this,{type:FF,done:!1,notified:!1,parent:!1,reactions:new $F,rejection:!1,state:0,value:null})}).prototype=kF(JF,"then",function(e,t){var r=HF(this),n=ZF(TF(this,YF));return r.parent=!0,n.ok=!CF(e)||e,n.fail=CF(t)&&t,n.domain=AF?XF.domain:void 0,0===r.state?r.reactions.add(n):LF(function(){oz(n,r)}),n.promise}),yF=function(){var e=new gF,t=HF(e);this.promise=e,this.resolve=lz(pz,t),this.reject=lz(fz,t)},BF.f=ZF=function(e){return e===YF||e===mF?new yF(e):ez(e)},CF(UF)&&VF!==Object.prototype)){bF=VF.then,WF||kF(VF,"then",function(e,t){var r=this;return new YF(function(e,t){xF(bF,r,e,t)}).then(e,t)},{unsafe:!0});try{delete VF.constructor}catch(e){}IF&&IF(VF,JF)}SF({global:!0,constructor:!0,wrap:!0,forced:zF},{Promise:YF}),mF=OF.Promise,PF(YF,FF,!1),wF=yU(FF),bU&&wF&&!wF[wU]&&mU(wF,wU,{configurable:!0,get:function(){return this}});var hz=gx("iterator"),dz=!1;try{var vz=0,gz={next:function(){return{done:!!vz++}},return:function(){dz=!0}};gz[hz]=function(){return this},Array.from(gz,function(){throw 2})}catch(e){}var yz=XB,mz=fF.CONSTRUCTOR||!function(e,t){try{if(!t&&!dz)return!1}catch(e){return!1}var r=!1;try{var n={};n[hz]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}(function(e){yz.all(e).then(void 0,function(){})}),bz=OE,wz=RO,Sz=pF,Az=QB,Ez=CT;hP({target:"Promise",stat:!0,forced:mz},{all:function(e){var t=this,r=Sz.f(t),n=r.resolve,o=r.reject,i=Az(function(){var r=wz(t.resolve),i=[],a=0,u=1;Ez(e,function(e){var c=a++,s=!1;u++,bz(r,t,e).then(function(e){s||(s=!0,i[c]=e,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Oz=hP,xz=fF.CONSTRUCTOR,kz=XB,Iz=iO,Pz=eO,_z=lI,Cz=kz&&kz.prototype;if(Oz({target:"Promise",proto:!0,forced:xz,real:!0},{catch:function(e){return this.then(void 0,e)}}),Pz(kz)){var jz=Iz("Promise").prototype.catch;Cz.catch!==jz&&_z(Cz,"catch",jz,{unsafe:!0})}var Rz=OE,Tz=RO,Nz=pF,Lz=QB,Mz=CT;hP({target:"Promise",stat:!0,forced:mz},{race:function(e){var t=this,r=Nz.f(t),n=r.reject,o=Lz(function(){var o=Tz(t.resolve);Mz(e,function(e){Rz(o,t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var $z=pF;hP({target:"Promise",stat:!0,forced:fF.CONSTRUCTOR},{reject:function(e){var t=$z.f(this);return(0,t.reject)(e),t.promise}});var Dz=qx,Uz=rO,Bz=pF,Fz=hP,zz=fF.CONSTRUCTOR;iO("Promise"),Fz({target:"Promise",stat:!0,forced:zz},{resolve:function(e){return function(e,t){if(Dz(e),Uz(t)&&t.constructor===e)return t;var r=Bz.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var Gz=hk.PROPER,Wz=lI,Hz=qx,qz=HP,Vz=bE,Yz=p$,Jz="toString",Kz=RegExp.prototype,Qz=Kz[Jz],Xz=Vz(function(){return"/a/b"!==Qz.call({source:"a",flags:"b"})}),Zz=Gz&&Qz.name!==Jz;(Xz||Zz)&&Wz(Kz,Jz,function(){var e=Hz(this);return"/"+qz(e.source)+"/"+qz(Yz(e))},{unsafe:!0});const eG=$l.createWorkspaceLogger("window").getOrCreateLogger("loader","fetch-artifact"),tG=(e,t,r,n)=>{e.length>0&&(eG.log(`calling ${n} callbacks for ${r} (${e.length} queued)`),e.forEach(e=>{try{e(t)}catch(e){eG.error(`error calling ${n} callback for ${r}`,{error:e})}}))};const rG=$l.createWorkspaceLogger("_global_").getOrCreateLogger("loader","reserve-workspace-by-application"),{value:nG}=Ml("loadWorkspaceIntent",rG,{}),oG=e=>vU(void 0,void 0,void 0,function*(){var t;const r=$l.createWorkspaceLogger(e.workspaceName||"").getOrCreateLogger("loader","fetch-and-load-unisphere-workspace");(({workspaceName:e,appId:t})=>{const r=e||"",n=t||"_unknown_";if(nG[r]&&nG[r]!==n){const e=`unisphere workspace '${r}' is not allowed to load by app '${n}'. Application '${nG[r]}' already reserved this workspace (consider using the same instance loaded by '${nG[r]}')`;throw rG.warn(e,{data:{workspaceName:r,appId:n,reservedByApp:nG[r]}}),new Y$(e,"UNISPHERE_WORKSPACE_ALREADY_EXISTS")}rG.debug(`reserving workspace for app '${n}'`,{data:{workspaceName:r,appId:n}}),nG[r]=n})({workspaceName:e.workspaceName,appId:e.appId});const n=e.serverUrl||`https://unisphere.${e.region||"nvp1"}.ovp.kaltura.com/v1`;r.debug(`resolved server url to ${n}`,{data:{optionsServerUrl:e.serverUrl,optionsRegion:e.region}});const o=`${n}/loader/index.esm.js`;r.log("fetching environment unisphere loader",{data:{environmentLoaderUrl:o,unisphereWorkspaceConfig:e}});const{factoryModule:{loader:i}}=yield function(e){return vU(this,arguments,void 0,function*({owner:e,url:t,fetchStrategy:r}){var n;const{value:o}=Ml("factoriesByURLS",eG,{}),i=t.toLowerCase(),a=o[i];if(a)return a.factoryModule?(eG.log(`using cached factory module for ${t}`),{factoryModule:a.factoryModule}):(eG.log(`a request to fetch factory already in progress for ${t}, waiting for it to finish`),new Promise((e,t)=>{a.onFetched.push(e),a.onError.push(t)}));eG.log(`fetching factory module for ${t}`);const u={requester:e,factoryModule:null,onFetched:[],onError:[]};o[i]=u;try{const e=null===(n=window.kalturaGlobalConfig)||void 0===n?void 0:n.scriptsNonce,o=r||(e?"scripts":"esm");eG.log(`using fetch strategy ${o} for ${t}`,{data:{fetchStrategy:r,hasNonce:!!e,resolvedFetchStrategy:o}});const i="scripts"===o?yield function(e,t){return vU(this,void 0,void 0,function*(){return new Promise((r,n)=>{eG.log(`Importing module with nonce from ${e}`);const o=`unisphere_import_${Date.now()}_${Math.random().toString(36).slice(2)}`;window[`${o}_resolve`]=t=>{eG.log(`Module from ${e} loaded successfully`),delete window[`${o}_resolve`],delete window[`${o}_reject`];const n=document.getElementById(o);n&&n.remove(),r(t)},window[`${o}_reject`]=t=>{eG.error(`Failed to load module from ${e}`,{error:t}),delete window[`${o}_resolve`],delete window[`${o}_reject`];const r=document.getElementById(o);r&&r.remove(),n(t)};const i=document.createElement("script");i.id=o,t&&i.setAttribute("nonce",t),i.textContent=`\n (async () => {\n try {\n const module = await import("${e}");\n try {\n window["${o}_resolve"](module);\n } catch (error) {\n console.error('Failed to resolve module from "${e}"', { error });\n }\n } catch (error) {\n window["${o}_reject"](error);\n }\n })();\n `,document.head.appendChild(i),setTimeout(()=>{if(window[`${o}_resolve`]){eG.error(`Import timeout for ${e}`);const t=new Error(`Timeout importing module from ${e}`);window[`${o}_reject`](t)}},3e4)})})}(t,e):yield import(t);eG.log(`fetched factory module for ${t}, caching it`),u.factoryModule=i;const a={factoryModule:u.factoryModule};return tG(u.onFetched,a,t,"onFetched"),u.onFetched=[],u.onError=[],a}catch(e){throw eG.log(`failed to fetch factory module for ${t}, removing from list`),tG(u.onError,e,t,"onError"),u.onError=[],u.onFetched=[],eG.log(`removing cached factory info for ${t} (next time it will be fetched again)`),delete o[i],e}})}({owner:"(unknown)",url:o,fetchStrategy:null===(t=e.devops)||void 0===t?void 0:t.fetchStrategy});if(!i)throw new Error(`failed to load dev loader from '${o}'`);return r.log(`executing environment unisphere loader from '${o}'`),i(e)});var iG=hP,aG=OE,uG=CT,cG=RO,sG=qx,lG=oR,fG=lR,pG=NR("some",TypeError);iG({target:"Iterator",proto:!0,real:!0,forced:pG},{some:function(e){sG(this);try{cG(e)}catch(e){fG(this,"throw",e)}if(pG)return aG(pG,this,e);var t=lG(this),r=0;return uG(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var hG,dG,vG=hP,gG=OE,yG=eO,mG=qx,bG=HP,wG=(hG=!1,(dG=/[ac]/).exec=function(){return hG=!0,/./.exec.apply(this,arguments)},!0===dG.test("abc")&&hG),SG=/./.test;vG({target:"RegExp",proto:!0,forced:!wG},{test:function(e){var t=mG(this),r=bG(e),n=t.exec;if(!yG(n))return gG(SG,t,r);var o=gG(n,t,r);return null!==o&&(mG(o),!0)}});var AG=hP,EG=$D,OG=JE,xG=HP,kG=UD,IG=ME("".indexOf);AG({target:"String",proto:!0,forced:!kG("includes")},{includes:function(e){return!!~IG(xG(OG(this)),xG(EG(e)),arguments.length>1?arguments[1]:void 0)}});var PG=VM.charAt,_G=HP,CG=Fk,jG=rj,RG=nj,TG="String Iterator",NG=CG.set,LG=CG.getterFor(TG);jG(String,"String",function(e){NG(this,{type:TG,string:_G(e),index:0})},function(){var e,t=LG(this),r=t.string,n=t.index;return n>=r.length?RG(void 0,!0):(e=PG(r,n),t.index+=e.length,RG(e,!1))});var MG=bE,$G=wE,DG=gx("iterator"),UG=!MG(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),!t.size&&!$G||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[DG]||"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}),BG=ZR,FG=OE,zG=ZO,GG=RR,WG=nT,HG=$U,qG=OI,VG=$j,YG=gT,JG=sT,KG=Array,QG=ME,XG=2147483647,ZG=/[^\0-\u007E]/,eW=/[.\u3002\uFF0E\uFF61]/g,tW="Overflow: input needs wider integers to process",rW=RangeError,nW=QG(eW.exec),oW=Math.floor,iW=String.fromCharCode,aW=QG("".charCodeAt),uW=QG([].join),cW=QG([].push),sW=QG("".replace),lW=QG("".split),fW=QG("".toLowerCase),pW=function(e){return e+22+75*(e<26)},hW=function(e,t,r){var n=0;for(e=r?oW(e/700):e>>1,e+=oW(e/t);e>455;)e=oW(e/35),n+=36;return oW(n+36*e/(e+38))},dW=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=aW(e,r++);if(o>=55296&&o<=56319&&r<n){var i=aW(e,r++);56320==(64512&i)?cW(t,((1023&o)<<10)+(1023&i)+65536):(cW(t,o),r--)}else cW(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&cW(t,iW(n));var c=t.length,s=c;for(c&&cW(t,"-");s<o;){var l=XG;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=s+1;if(l-i>oW((XG-a)/f))throw new rW(tW);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>XG)throw new rW(tW);if(n===i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,g=36-d;cW(t,iW(pW(d+v%g))),p=oW(v/g),h+=36}cW(t,iW(pW(p))),u=hW(a,f,s===c),a=0,s++}}a++,i++}return uW(t,"")},vW=hP,gW=ME,yW=bI,mW=RangeError,bW=String.fromCharCode,wW=String.fromCodePoint,SW=gW([].join);vW({target:"String",stat:!0,arity:1,forced:!!wW&&1!==wW.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],yW(t,1114111)!==t)throw new mW(t+" is not a valid code point");r[o]=t<65536?bW(t):bW(55296+((t-=65536)>>10),t%1024+56320)}return SW(r,"")}});var AW=WU,EW=Math.floor,OW=function(e,t){var r=e.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=EW(r/2),u=OW(AW(e,0,a),t),c=OW(AW(e,a),t),s=u.length,l=c.length,f=0,p=0;f<s||p<l;)e[f+p]=f<s&&p<l?t(u[f],c[p])<=0?u[f++]:c[p++]:f<s?u[f++]:c[p++];return e},xW=hP,kW=yE,IW=OB,PW=iO,_W=OE,CW=ME,jW=wE,RW=UG,TW=lI,NW=Tj,LW=aR,MW=_C,$W=MC,DW=Fk,UW=Cj,BW=eO,FW=rx,zW=ZR,GW=zP,WW=qx,HW=rO,qW=HP,VW=Q_,YW=jE,JW=gT,KW=sT,QW=nj,XW=qU,ZW=OW,eH=gx("iterator"),tH="URLSearchParams",rH=tH+"Iterator",nH=DW.set,oH=DW.getterFor(tH),iH=DW.getterFor(rH),aH=IW("fetch"),uH=IW("Request"),cH=IW("Headers"),sH=uH&&uH.prototype,lH=cH&&cH.prototype,fH=kW.TypeError,pH=kW.encodeURIComponent,hH=String.fromCharCode,dH=PW("String","fromCodePoint"),vH=parseInt,gH=CW("".charAt),yH=CW([].join),mH=CW([].push),bH=CW("".replace),wH=CW([].shift),SH=CW([].splice),AH=CW("".split),EH=CW("".slice),OH=CW(/./.exec),xH=/\+/g,kH=/^[0-9a-f]+$/i,IH=function(e,t){var r=EH(e,t,t+2);return OH(kH,r)?vH(r,16):NaN},PH=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},_H=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},CH=function(e){for(var t=(e=bH(e,xH," ")).length,r="",n=0;n<t;){var o=gH(e,n);if("%"===o){if("%"===gH(e,n+1)||n+3>t){r+="%",n++;continue}var i=IH(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=PH(i);if(0===a)o=hH(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],c=1;c<a&&!(3+ ++n>t||"%"!==gH(e,n));){var s=IH(e,n+1);if(s!=s){n+=3;break}if(s>191||s<128)break;mH(u,s),n+=2,c++}if(u.length!==a){r+="�";continue}var l=_H(u);null===l?r+="�":o=dH(l)}}r+=o,n++}return r},jH=/[!'()~]|%20/g,RH={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},TH=function(e){return RH[e]},NH=function(e){return bH(pH(e),jH,TH)},LH=$W(function(e,t){nH(this,{type:rH,target:oH(e).entries,index:0,kind:t})},tH,function(){var e=iH(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,QW(void 0,!0);var n=t[r];switch(e.kind){case"keys":return QW(n.key,!1);case"values":return QW(n.value,!1)}return QW([n.key,n.value],!1)},!0),MH=function(e){this.entries=[],this.url=null,void 0!==e&&(HW(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===gH(e,0)?EH(e,1):e:qW(e)))};MH.prototype={type:tH,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,u,c=this.entries,s=KW(e);if(s)for(r=(t=JW(e,s)).next;!(n=_W(r,t)).done;){if(i=(o=JW(WW(n.value))).next,(a=_W(i,o)).done||(u=_W(i,o)).done||!_W(i,o).done)throw new fH("Expected sequence with length 2");mH(c,{key:qW(a.value),value:qW(u.value)})}else for(var l in e)FW(e,l)&&mH(c,{key:l,value:qW(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=AH(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=AH(t,"="),mH(n,{key:CH(wH(r)),value:CH(yH(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],mH(r,NH(e.key)+"="+NH(e.value));return yH(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var $H=function(){UW(this,DH);var e=nH(this,new MH(arguments.length>0?arguments[0]:void 0));jW||(this.size=e.entries.length)},DH=$H.prototype;if(LW(DH,{append:function(e,t){var r=oH(this);XW(arguments.length,2),mH(r.entries,{key:qW(e),value:qW(t)}),jW||this.size++,r.updateURL()},delete:function(e){for(var t=oH(this),r=XW(arguments.length,1),n=t.entries,o=qW(e),i=r<2?void 0:arguments[1],a=void 0===i?i:qW(i),u=0;u<n.length;){var c=n[u];if(c.key!==o||void 0!==a&&c.value!==a)u++;else if(SH(n,u,1),void 0!==a)break}jW||(this.size=n.length),t.updateURL()},get:function(e){var t=oH(this).entries;XW(arguments.length,1);for(var r=qW(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=oH(this).entries;XW(arguments.length,1);for(var r=qW(e),n=[],o=0;o<t.length;o++)t[o].key===r&&mH(n,t[o].value);return n},has:function(e){for(var t=oH(this).entries,r=XW(arguments.length,1),n=qW(e),o=r<2?void 0:arguments[1],i=void 0===o?o:qW(o),a=0;a<t.length;){var u=t[a++];if(u.key===n&&(void 0===i||u.value===i))return!0}return!1},set:function(e,t){var r=oH(this);XW(arguments.length,1);for(var n,o=r.entries,i=!1,a=qW(e),u=qW(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?SH(o,c--,1):(i=!0,n.value=u));i||mH(o,{key:a,value:u}),jW||(this.size=o.length),r.updateURL()},sort:function(){var e=oH(this);ZW(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=oH(this).entries,n=zW(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 LH(this,"keys")},values:function(){return new LH(this,"values")},entries:function(){return new LH(this,"entries")}},{enumerable:!0}),TW(DH,eH,DH.entries,{name:"entries"}),TW(DH,"toString",function(){return oH(this).serialize()},{enumerable:!0}),jW&&NW(DH,"size",{get:function(){return oH(this).entries.length},configurable:!0,enumerable:!0}),MW($H,tH),xW({global:!0,constructor:!0,forced:!RW},{URLSearchParams:$H}),!RW&&BW(cH)){var UH=CW(lH.has),BH=CW(lH.set),FH=function(e){if(HW(e)){var t,r=e.body;if(GW(r)===tH)return t=e.headers?new cH(e.headers):new cH,UH(t,"content-type")||BH(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),VW(e,{body:YW(0,qW(r)),headers:YW(0,t)})}return e};if(BW(aH)&&xW({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return aH(e,arguments.length>1?FH(arguments[1]):{})}}),BW(uH)){var zH=function(e){return UW(this,sH),new uH(e,arguments.length>1?FH(arguments[1]):{})};sH.constructor=zH,zH.prototype=sH,xW({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:zH})}}var GH,WH=hP,HH=wE,qH=UG,VH=yE,YH=ZR,JH=ME,KH=lI,QH=Tj,XH=Cj,ZH=rx,eq=iN,tq=function(e){var t=zG(e),r=HG(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=BG(o,n>2?arguments[2]:void 0));var a,u,c,s,l,f,p=JG(t),h=0;if(!p||this===KG&&WG(p))for(a=qG(t),u=r?new this(a):KG(a);a>h;h++)f=i?o(t[h],h):t[h],VG(u,h,f);else for(u=r?new this:[],l=(s=YG(t,p)).next;!(c=FG(l,s)).done;h++)f=i?GG(s,o,[c.value,h],!0):c.value,VG(u,h,f);return u.length=h,u},rq=WU,nq=VM.codeAt,oq=HP,iq=_C,aq=qU,uq={URLSearchParams:$H,getState:oH},cq=Fk,sq=cq.set,lq=cq.getterFor("URL"),fq=uq.URLSearchParams,pq=uq.getState,hq=VH.URL,dq=VH.TypeError,vq=VH.parseInt,gq=Math.floor,yq=Math.pow,mq=JH("".charAt),bq=JH(/./.exec),wq=JH([].join),Sq=JH(1.1.toString),Aq=JH([].pop),Eq=JH([].push),Oq=JH("".replace),xq=JH([].shift),kq=JH("".split),Iq=JH("".slice),Pq=JH("".toLowerCase),_q=JH([].unshift),Cq="Invalid scheme",jq="Invalid host",Rq="Invalid port",Tq=/[a-z]/i,Nq=/[\d+-.a-z]/i,Lq=/\d/,Mq=/^0x/i,$q=/^[0-7]+$/,Dq=/^\d+$/,Uq=/^[\da-f]+$/i,Bq=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Fq=/[\0\t\n\r #/:<>?@[\\\]^|]/,zq=/^[\u0000-\u0020]+/,Gq=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Wq=/[\t\n\r]/g,Hq=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)_q(t,e%256),e=gq(e/256);return wq(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+=Sq(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},qq={},Vq=eq({},qq,{" ":1,'"':1,"<":1,">":1,"`":1}),Yq=eq({},Vq,{"#":1,"?":1,"{":1,"}":1}),Jq=eq({},Yq,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Kq=function(e,t){var r=nq(e,0);return r>32&&r<127&&!ZH(t,e)?e:encodeURIComponent(e)},Qq={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Xq=function(e,t){var r;return 2===e.length&&bq(Tq,mq(e,0))&&(":"===(r=mq(e,1))||!t&&"|"===r)},Zq=function(e){var t;return e.length>1&&Xq(Iq(e,0,2))&&(2===e.length||"/"===(t=mq(e,2))||"\\"===t||"?"===t||"#"===t)},eV=function(e){return"."===e||"%2e"===Pq(e)},tV=function(e){return".."===(e=Pq(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},rV={},nV={},oV={},iV={},aV={},uV={},cV={},sV={},lV={},fV={},pV={},hV={},dV={},vV={},gV={},yV={},mV={},bV={},wV={},SV={},AV={},EV=function(e,t,r){var n,o,i,a=oq(e);if(t){if(o=this.parse(a))throw new dq(o);this.searchParams=null}else{if(void 0!==r&&(n=new EV(r,!0)),o=this.parse(a,null,n))throw new dq(o);(i=pq(new fq)).bindURL(this),this.searchParams=i}};EV.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,u=this,c=t||rV,s=0,l="",f=!1,p=!1,h=!1;for(e=oq(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=Oq(e,zq,""),e=Oq(e,Gq,"$1")),e=Oq(e,Wq,""),n=tq(e);s<=n.length;){switch(o=n[s],c){case rV:if(!o||!bq(Tq,o)){if(t)return Cq;c=oV;continue}l+=Pq(o),c=nV;break;case nV:if(o&&(bq(Nq,o)||"+"===o||"-"===o||"."===o))l+=Pq(o);else{if(":"!==o){if(t)return Cq;l="",c=oV,s=0;continue}if(t&&(u.isSpecial()!==ZH(Qq,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&Qq[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?c=vV:u.isSpecial()&&r&&r.scheme===u.scheme?c=iV:u.isSpecial()?c=sV:"/"===n[s+1]?(c=aV,s++):(u.cannotBeABaseURL=!0,Eq(u.path,""),c=wV)}break;case oV:if(!r||r.cannotBeABaseURL&&"#"!==o)return Cq;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=rq(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=AV;break}c="file"===r.scheme?vV:uV;continue;case iV:if("/"!==o||"/"!==n[s+1]){c=uV;continue}c=lV,s++;break;case aV:if("/"===o){c=fV;break}c=bV;continue;case uV:if(u.scheme=r.scheme,o===GH)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=rq(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=cV;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=rq(r.path),u.query="",c=SV;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=rq(r.path),u.path.length--,c=bV;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=rq(r.path),u.query=r.query,u.fragment="",c=AV}break;case cV:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=bV;continue}c=fV}else c=lV;break;case sV:if(c=lV,"/"!==o||"/"!==mq(l,s+1))continue;s++;break;case lV:if("/"!==o&&"\\"!==o){c=fV;continue}break;case fV:if("@"===o){f&&(l="%40"+l),f=!0,i=tq(l);for(var d=0;d<i.length;d++){var v=i[d];if(":"!==v||h){var g=Kq(v,Jq);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(o===GH||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===l)return"Invalid authority";s-=tq(l).length+1,l="",c=pV}else l+=o;break;case pV:case hV:if(t&&"file"===u.scheme){c=yV;continue}if(":"!==o||p){if(o===GH||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===l)return jq;if(t&&""===l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=mV,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),l+=o}else{if(""===l)return jq;if(a=u.parseHost(l))return a;if(l="",c=dV,t===hV)return}break;case dV:if(!bq(Lq,o)){if(o===GH||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==l){var y=vq(l,10);if(y>65535)return Rq;u.port=u.isSpecial()&&y===Qq[u.scheme]?null:y,l=""}if(t)return;c=mV;continue}return Rq}l+=o;break;case vV:if(u.scheme="file","/"===o||"\\"===o)c=gV;else{if(!r||"file"!==r.scheme){c=bV;continue}switch(o){case GH:u.host=r.host,u.path=rq(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=rq(r.path),u.query="",c=SV;break;case"#":u.host=r.host,u.path=rq(r.path),u.query=r.query,u.fragment="",c=AV;break;default:Zq(wq(rq(n,s),""))||(u.host=r.host,u.path=rq(r.path),u.shortenPath()),c=bV;continue}}break;case gV:if("/"===o||"\\"===o){c=yV;break}r&&"file"===r.scheme&&!Zq(wq(rq(n,s),""))&&(Xq(r.path[0],!0)?Eq(u.path,r.path[0]):u.host=r.host),c=bV;continue;case yV:if(o===GH||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&Xq(l))c=bV;else if(""===l){if(u.host="",t)return;c=mV}else{if(a=u.parseHost(l))return a;if("localhost"===u.host&&(u.host=""),t)return;l="",c=mV}continue}l+=o;break;case mV:if(u.isSpecial()){if(c=bV,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==GH&&(c=bV,"/"!==o))continue}else u.fragment="",c=AV;else u.query="",c=SV;break;case bV:if(o===GH||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(tV(l)?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||Eq(u.path,"")):eV(l)?"/"===o||"\\"===o&&u.isSpecial()||Eq(u.path,""):("file"===u.scheme&&!u.path.length&&Xq(l)&&(u.host&&(u.host=""),l=mq(l,0)+":"),Eq(u.path,l)),l="","file"===u.scheme&&(o===GH||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)xq(u.path);"?"===o?(u.query="",c=SV):"#"===o&&(u.fragment="",c=AV)}else l+=Kq(o,Yq);break;case wV:"?"===o?(u.query="",c=SV):"#"===o?(u.fragment="",c=AV):o!==GH&&(u.path[0]+=Kq(o,qq));break;case SV:t||"#"!==o?o!==GH&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":Kq(o,qq)):(u.fragment="",c=AV);break;case AV:o!==GH&&(u.fragment+=Kq(o,Vq))}s++}},parseHost:function(e){var t,r,n;if("["===mq(e,0)){if("]"!==mq(e,e.length-1))return jq;if(t=function(e){var t,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return mq(e,f)};if(":"===p()){if(":"!==mq(e,1))return;f+=2,l=++s}for(;p();){if(8===s)return;if(":"!==p()){for(t=r=0;r<4&&bq(Uq,p());)t=16*t+vq(p(),16),f++,r++;if("."===p()){if(0===r)return;if(f-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."===p()&&n<4))return;f++}if(!bq(Lq,p()))return;for(;bq(Lq,p());){if(i=vq(p(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!==++n&&4!==n||s++}if(4!==n)return;break}if(":"===p()){if(f++,!p())return}else if(p())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!==s)return;return c}(Iq(e,1,-1)),!t)return jq;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=lW(sW(fW(e),eW,"."),".");for(t=0;t<o.length;t++)r=o[t],cW(n,nW(ZG,r)?"xn--"+dW(r):r);return uW(n,".")}(e),bq(Bq,e))return jq;if(t=function(e){var t,r,n,o,i,a,u,c=kq(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"===mq(o,0)&&(i=bq(Mq,o)?16:8,o=Iq(o,8===i?1:2)),""===o)a=0;else{if(!bq(10===i?Dq:8===i?$q:Uq,o))return e;a=vq(o,i)}Eq(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=yq(256,5-t))return null}else if(a>255)return null;for(u=Aq(r),n=0;n<r.length;n++)u+=r[n]*yq(256,3-n);return u}(e),null===t)return jq;this.host=t}else{if(bq(Fq,e))return jq;for(t="",r=tq(e),n=0;n<r.length;n++)t+=Kq(r[n],qq);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return ZH(Qq,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Xq(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,a=e.path,u=e.query,c=e.fragment,s=t+":";return null!==o?(s+="//",e.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=Hq(o),null!==i&&(s+=":"+i)):"file"===t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+wq(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(e){var t=this.parse(e);if(t)throw new dq(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new OV(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Hq(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(oq(e)+":",rV)},getUsername:function(){return this.username},setUsername:function(e){var t=tq(oq(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Kq(t[r],Jq)}},getPassword:function(){return this.password},setPassword:function(e){var t=tq(oq(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Kq(t[r],Jq)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Hq(e):Hq(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,pV)},getHostname:function(){var e=this.host;return null===e?"":Hq(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,hV)},getPort:function(){var e=this.port;return null===e?"":oq(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=oq(e))?this.port=null:this.parse(e,dV))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+wq(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,mV))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=oq(e))?this.query=null:("?"===mq(e,0)&&(e=Iq(e,1)),this.query="",this.parse(e,SV)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=oq(e))?("#"===mq(e,0)&&(e=Iq(e,1)),this.fragment="",this.parse(e,AV)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var OV=function(e){var t=XH(this,xV),r=aq(arguments.length,1)>1?arguments[1]:void 0,n=sq(t,new EV(e,!1,r));HH||(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())},xV=OV.prototype,kV=function(e,t){return{get:function(){return lq(this)[e]()},set:t&&function(e){return lq(this)[t](e)},configurable:!0,enumerable:!0}};if(HH&&(QH(xV,"href",kV("serialize","setHref")),QH(xV,"origin",kV("getOrigin")),QH(xV,"protocol",kV("getProtocol","setProtocol")),QH(xV,"username",kV("getUsername","setUsername")),QH(xV,"password",kV("getPassword","setPassword")),QH(xV,"host",kV("getHost","setHost")),QH(xV,"hostname",kV("getHostname","setHostname")),QH(xV,"port",kV("getPort","setPort")),QH(xV,"pathname",kV("getPathname","setPathname")),QH(xV,"search",kV("getSearch","setSearch")),QH(xV,"searchParams",kV("getSearchParams")),QH(xV,"hash",kV("getHash","setHash"))),KH(xV,"toJSON",function(){return lq(this).serialize()},{enumerable:!0}),KH(xV,"toString",function(){return lq(this).serialize()},{enumerable:!0}),hq){var IV=hq.createObjectURL,PV=hq.revokeObjectURL;IV&&KH(OV,"createObjectURL",YH(IV,hq)),PV&&KH(OV,"revokeObjectURL",YH(PV,hq))}iq(OV,"URL"),WH({global:!0,constructor:!0,forced:!qH,sham:!HH},{URL:OV});var _V=OE;hP({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return _V(URL.prototype.toString,this)}});var CV=lI,jV=ME,RV=HP,TV=qU,NV=URLSearchParams,LV=NV.prototype,MV=jV(LV.append),$V=jV(LV.delete),DV=jV(LV.forEach),UV=jV([].push),BV=new NV("a=1&a=2&b=3");BV.delete("a",1),BV.delete("b",void 0),BV+""!="a=2"&&CV(LV,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return $V(this,e);var n=[];DV(this,function(e,t){UV(n,{key:t,value:e})}),TV(t,1);for(var o,i=RV(e),a=RV(r),u=0,c=0,s=!1,l=n.length;u<l;)o=n[u++],s||o.key===i?(s=!0,$V(this,o.key)):c++;for(;c<l;)(o=n[c++]).key===i&&o.value===a||MV(this,o.key,o.value)},{enumerable:!0,unsafe:!0});var FV=lI,zV=ME,GV=HP,WV=qU,HV=URLSearchParams,qV=HV.prototype,VV=zV(qV.getAll),YV=zV(qV.has),JV=new HV("a=1");!JV.has("a",2)&&JV.has("a",void 0)||FV(qV,"has",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return YV(this,e);var n=VV(this,e);WV(t,1);for(var o=GV(r),i=0;i<n.length;)if(n[i++]===o)return!0;return!1},{enumerable:!0,unsafe:!0});var KV=wE,QV=ME,XV=Tj,ZV=URLSearchParams.prototype,eY=QV(ZV.forEach);KV&&!("size"in ZV)&&XV(ZV,"size",{get:function(){var e=0;return eY(this,function(){e++}),e},configurable:!0,enumerable:!0});var tY=ME,rY=rx,nY=SyntaxError,oY=parseInt,iY=String.fromCharCode,aY=tY("".charAt),uY=tY("".slice),cY=tY(/./.exec),sY={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},lY=/^[\da-f]{4}$/i,fY=/^[\u0000-\u001F]$/,pY=hP,hY=wE,dY=yE,vY=iO,gY=ME,yY=OE,mY=eO,bY=rO,wY=mj,SY=rx,AY=HP,EY=OI,OY=$j,xY=bE,kY=wO,IY=dY.JSON,PY=dY.Number,_Y=dY.SyntaxError,CY=IY&&IY.parse,jY=vY("Object","keys"),RY=Object.getOwnPropertyDescriptor,TY=gY("".charAt),NY=gY("".slice),LY=gY(/./.exec),MY=gY([].push),$Y=/^\d$/,DY=/^[1-9]$/,UY=/^[\d-]$/,BY=/^[\t\n\r ]$/,FY=function(e,t,r,n){var o,i,a,u,c,s=e[t],l=n&&s===n.value,f=l&&"string"==typeof n.source?{source:n.source}:{};if(bY(s)){var p=wY(s),h=l?n.nodes:p?[]:{};if(p)for(o=h.length,a=EY(s),u=0;u<a;u++)zY(s,u,FY(s,""+u,r,u<o?h[u]:void 0));else for(i=jY(s),a=EY(i),u=0;u<a;u++)c=i[u],zY(s,c,FY(s,c,r,SY(h,c)?h[c]:void 0))}return yY(r,e,t,s,f)},zY=function(e,t,r){if(hY){var n=RY(e,t);if(n&&!n.configurable)return}void 0===r?delete e[t]:OY(e,t,r)},GY=function(e,t,r,n){this.value=e,this.end=t,this.source=r,this.nodes=n},WY=function(e,t){this.source=e,this.index=t};WY.prototype={fork:function(e){return new WY(this.source,e)},parse:function(){var e=this.source,t=this.skip(BY,this.index),r=this.fork(t),n=TY(e,t);if(LY(UY,n))return r.number();switch(n){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new _Y('Unexpected character: "'+n+'" at: '+t)},node:function(e,t,r,n,o){return new GY(t,n,e?null:NY(this.source,r,n),o)},object:function(){for(var e=this.source,t=this.index+1,r=!1,n={},o={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===TY(e,t)&&!r){t++;break}var i=this.fork(t).string(),a=i.value;t=i.end,t=this.until([":"],t)+1,t=this.skip(BY,t),i=this.fork(t).parse(),OY(o,a,i),OY(n,a,i.value),t=this.until([",","}"],i.end);var u=TY(e,t);if(","===u)r=!0,t++;else if("}"===u){t++;break}}return this.node(1,n,this.index,t,o)},array:function(){for(var e=this.source,t=this.index+1,r=!1,n=[],o=[];t<e.length;){if(t=this.skip(BY,t),"]"===TY(e,t)&&!r){t++;break}var i=this.fork(t).parse();if(MY(o,i),MY(n,i.value),t=this.until([",","]"],i.end),","===TY(e,t))r=!0,t++;else if("]"===TY(e,t)){t++;break}}return this.node(1,n,this.index,t,o)},string:function(){var e=this.index,t=function(e,t){for(var r=!0,n="";t<e.length;){var o=aY(e,t);if("\\"===o){var i=uY(e,t,t+2);if(rY(sY,i))n+=sY[i],t+=2;else{if("\\u"!==i)throw new nY('Unknown escape sequence: "'+i+'"');var a=uY(e,t+=2,t+4);if(!cY(lY,a))throw new nY("Bad Unicode escape at: "+t);n+=iY(oY(a,16)),t+=4}}else{if('"'===o){r=!1,t++;break}if(cY(fY,o))throw new nY("Bad control character in string literal at: "+t);n+=o,t++}}if(r)throw new nY("Unterminated string at: "+t);return{value:n,end:t}}(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===TY(e,r)&&r++,"0"===TY(e,r))r++;else{if(!LY(DY,TY(e,r)))throw new _Y("Failed to parse number at: "+r);r=this.skip($Y,r+1)}if(!("."===TY(e,r)&&(r=this.skip($Y,r+1)),"e"!==TY(e,r)&&"E"!==TY(e,r)||(r++,"+"!==TY(e,r)&&"-"!==TY(e,r)||r++,r!==(r=this.skip($Y,r)))))throw new _Y("Failed to parse number's exponent value at: "+r);return this.node(0,PY(NY(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,n=r+t.length;if(NY(this.source,r,n)!==t)throw new _Y("Failed to parse value at: "+r);return this.node(0,e,r,n)},skip:function(e,t){for(var r=this.source;t<r.length&&LY(e,TY(r,t));t++);return t},until:function(e,t){t=this.skip(BY,t);for(var r=TY(this.source,t),n=0;n<e.length;n++)if(e[n]===r)return t;throw new _Y('Unexpected character: "'+r+'" at: '+t)}};var HY=xY(function(){var e,t="9007199254740993";return CY(t,function(t,r,n){e=n.source}),e!==t}),qY=kY&&!xY(function(){return 1/CY("-0 \t")!=-1/0});pY({target:"JSON",stat:!0,forced:HY},{parse:function(e,t){return qY&&!mY(t)?CY(e):function(e,t){e=AY(e);var r=new WY(e,0),n=r.parse(),o=n.value,i=r.skip(BY,n.end);if(i<e.length)throw new _Y('Unexpected extra character: "'+TY(e,i)+'" after the parsed data at: '+i);return mY(t)?FY({"":o},"",t,n):o}(e,t)}});var VY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",YY=VY+"-_",JY=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t},KY={c2i:JY(VY+"+/"),c2iUrl:JY(YY)},QY=hP,XY=yE,ZY=iO,eJ=ME,tJ=OE,rJ=bE,nJ=HP,oJ=qU,iJ=KY.c2i,aJ=/[^\d+/a-z]/i,uJ=/[\t\n\f\r ]+/g,cJ=/[=]{1,2}$/,sJ=ZY("atob"),lJ=String.fromCharCode,fJ=eJ("".charAt),pJ=eJ("".replace),hJ=eJ(aJ.exec),dJ=!!sJ&&!rJ(function(){return"hi"!==sJ("aGk=")}),vJ=dJ&&rJ(function(){return""!==sJ(" ")}),gJ=dJ&&!rJ(function(){sJ("a")}),yJ=dJ&&!rJ(function(){sJ()}),mJ=dJ&&1!==sJ.length;QY({global:!0,bind:!0,enumerable:!0,forced:!dJ||vJ||gJ||yJ||mJ},{atob:function(e){if(oJ(arguments.length,1),dJ&&!vJ&&!gJ)return tJ(sJ,XY,e);var t,r,n,o=pJ(nJ(e),uJ,""),i="",a=0,u=0;if(o.length%4==0&&(o=pJ(o,cJ,"")),(t=o.length)%4==1||hJ(aJ,o))throw new(ZY("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;a<t;)r=fJ(o,a++),n=u%4?64*n+iJ[r]:iJ[r],u++%4&&(i+=lJ(255&n>>(-2*u&6)));return i}});var bJ=yE,wJ=wD,SJ=wE,AJ=bE,EJ=qx,OJ=VP,xJ=Error.prototype.toString,kJ=AJ(function(){if(SJ){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==xJ.call(e))return!0}return"2: 1"!==xJ.call({message:1,name:2})||"Error"!==xJ.call({})})?function(){var e=EJ(this),t=OJ(e.name,"Error"),r=OJ(e.message);return t?r?t+": "+r:t:r}:xJ,IJ={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},PJ=hP,_J=iO,CJ=bE,jJ=Q_,RJ=jE,TJ=Fx.f,NJ=lI,LJ=Tj,MJ=rx,$J=Cj,DJ=qx,UJ=kJ,BJ=VP,FJ=IJ,zJ=t_,GJ=Fk,WJ=wE,HJ="DOMException",qJ="DATA_CLONE_ERR",VJ=_J("Error"),YJ=_J(HJ)||function(){try{(new(_J("MessageChannel")||function(e){if(wJ){try{return bJ.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===qJ&&25===e.code)return e.constructor}}(),JJ=YJ&&YJ.prototype,KJ=VJ.prototype,QJ=GJ.set,XJ=GJ.getterFor(HJ),ZJ="stack"in new VJ(HJ),eK=function(e){return MJ(FJ,e)&&FJ[e].m?FJ[e].c:0},tK=function(){$J(this,rK);var e=arguments.length,t=BJ(e<1?void 0:arguments[0]),r=BJ(e<2?void 0:arguments[1],"Error"),n=eK(r);if(QJ(this,{type:HJ,name:r,message:t,code:n}),WJ||(this.name=r,this.message=t,this.code=n),ZJ){var o=new VJ(t);o.name=HJ,TJ(this,"stack",RJ(1,zJ(o.stack,1)))}},rK=tK.prototype=jJ(KJ),nK=function(e){return{enumerable:!0,configurable:!0,get:e}},oK=function(e){return nK(function(){return XJ(this)[e]})};WJ&&(LJ(rK,"code",oK("code")),LJ(rK,"message",oK("message")),LJ(rK,"name",oK("name"))),TJ(rK,"constructor",RJ(1,tK));var iK=CJ(function(){return!(new YJ instanceof VJ)}),aK=iK||CJ(function(){return KJ.toString!==UJ||"2: 1"!==String(new YJ(1,2))}),uK=iK||CJ(function(){return 25!==new YJ(1,"DataCloneError").code});iK||25!==YJ[qJ]||JJ[qJ],PJ({global:!0,constructor:!0,forced:iK},{DOMException:iK?tK:YJ});var cK=_J(HJ),sK=cK.prototype;for(var lK in aK&&YJ===cK&&NJ(sK,"toString",UJ),uK&&WJ&&YJ===cK&&LJ(sK,"code",nK(function(){return eK(DJ(this).name)})),FJ)if(MJ(FJ,lK)){var fK=FJ[lK],pK=fK.s,hK=RJ(6,fK.c);MJ(cK,pK)||TJ(cK,pK,hK),MJ(sK,pK)||TJ(sK,pK,hK)}var dK=hP,vK=yE,gK=iO,yK=jE,mK=Fx.f,bK=rx,wK=Cj,SK=NP,AK=VP,EK=IJ,OK=t_,xK=wE,kK="DOMException",IK=gK("Error"),PK=gK(kK),_K=function(){wK(this,CK);var e=arguments.length,t=AK(e<1?void 0:arguments[0]),r=AK(e<2?void 0:arguments[1],"Error"),n=new PK(t,r),o=new IK(t);return o.name=kK,mK(n,"stack",yK(1,OK(o.stack,1))),SK(n,this,_K),n},CK=_K.prototype=PK.prototype,jK="stack"in new IK(kK),RK="stack"in new PK(1,2),TK=PK&&xK&&Object.getOwnPropertyDescriptor(vK,kK),NK=!(!TK||TK.writable&&TK.configurable),LK=jK&&!NK&&!RK;dK({global:!0,constructor:!0,forced:LK},{DOMException:LK?_K:PK});var MK=gK(kK),$K=MK.prototype;if($K.constructor!==MK)for(var DK in mK($K,"constructor",yK(1,MK)),EK)if(bK(EK,DK)){var UK=EK[DK],BK=UK.s;bK(MK,BK)||mK(MK,BK,yK(6,UK.c))}var FK="DOMException";function zK(e){return vU(this,void 0,void 0,function*(){const{getByWorkspaceName:t}=yield function(){const e=window;return new Promise(t=>{var r,n;if(null===(n=null===(r=e.unisphere)||void 0===r?void 0:r.instancesManager)||void 0===n?void 0:n.get)t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName||(()=>(console.warn("getByPresetName not implemented"),Promise.reject(new Error)))});else{const r=()=>{document.removeEventListener("unisphere-ready",r),t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName})};document.addEventListener("unisphere-ready",r)}})}();return t(e)})}function GK(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return WK(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?WK(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function WK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}_C(iO(FK),FK),dU(),dU(),new Map;var HK=function(){return u(function e(r,n,o,i){t(this,e),p(this,"iconIds",new Map),p(this,"panelIds",new Set),p(this,"persistentIconIds",new Map),p(this,"buttonVisibilityStates",new Map),p(this,"panelsByWidgetName",new Map),p(this,"widgetNameByPanel",new Map),p(this,"widgetNameByIcon",new Map),p(this,"workspaceName",""),p(this,"shouldCreateWorkspace",!1),p(this,"expandOnFirstPlayPanels",new Set),this.player=r,this.eventManager=n,this.logger=o,this.config=i,this.containerManager=new ge(r),this.player.config.provider.unisphereLoaderUrl&&"string"==typeof this.config.workspaceName?this.workspaceName=this.config.workspaceName:(this.workspaceName=X("kaltura_player_workspace_"),this.shouldCreateWorkspace=!0)},[{key:"upperBarManager",get:function(){return this.player.getService(S.UPPER_BAR_MANAGER)}},{key:"sidePanelsManager",get:function(){return this.player.getService(S.SIDE_PANELS_MANAGER)}},{key:"addEventHandlers",value:function(){var t=this;q.subscribe(m.MEDIA_SEEK_TO_TIME,function(e){var r=e.payload,n=r.seekToInSeconds,o=r.entryId,i=r.play;t.handleSeekToTime({seekToInSeconds:n,entryId:o,play:i})}),this.eventManager.listenOnce(this.player,e.core.EventType.FIRST_PLAYING,function(){t.handleFirstPlay()})}},{key:"handleFirstPlay",value:function(){var t,r=GK(this.expandOnFirstPlayPanels);try{for(r.s();!(t=r.n()).done;){var n,o=t.value;null===(n=this.sidePanelsManager)||void 0===n||n.activateItem(o);var i=this.widgetNameByPanel.get(o);this.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_OPENED_AUTO,{runtimeWidgetName:i}))}}catch(e){r.e(e)}finally{r.f()}}},{key:"handleSeekToTime",value:function(e){var t,r=e.seekToInSeconds,n=e.entryId,o=e.play,i=parseFloat(r);isNaN(i)||i<0?this.logger.warn("Invalid seekToInSeconds value:",r):n&&(null===(t=this.player)||void 0===t||null===(t=t.sources)||void 0===t?void 0:t.id)!==n?this.logger.warn("Entry ID mismatch:",{current:this.player.sources.id,requested:n}):(this.player.currentTime=i,o?this.player.play():this.player.pause())}},{key:"getWorkspace",value:(n=d(g().mark(function e(){var t;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.shouldCreateWorkspace){e.next=2;break}return e.next=1,oG({serverUrl:this.player.config.provider.unisphereLoaderUrl,workspaceName:this.workspaceName,appId:"kaltura-player",appVersion:"",ui:{theme:"light",language:"en"}});case 1:t=e.sent,e.next=4;break;case 2:return e.next=3,zK(this.config.workspaceName);case 3:t=e.sent;case 4:return D.set(t),e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"addUpperBarIcon",value:function(t,r,n,o,i,a,u){var c,s=this;if(!this.iconIds.has(t)&&!this.persistentIconIds.has(t)){u&&this.widgetNameByIcon.set(t,u),this.panelIds.add(i);var l=null===(c=this.upperBarManager)||void 0===c?void 0:c.add({displayName:r,ariaLabel:r,order:n,component:function(){return(0,y.h)($,{id:t,label:r,iconPath:o})},svgIcon:{path:o},onClick:function(){var t,r,n;null!==(t=s.sidePanelsManager)&&void 0!==t&&t.isItemActive(i)?(null===(r=s.sidePanelsManager)||void 0===r||r.deactivateItem(i),s.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_CLOSED,{runtimeWidgetName:u}))):(null===(n=s.sidePanelsManager)||void 0===n||n.activateItem(i),s.player.dispatchEvent(new e.core.FakeEvent(b.PLUGIN_SIDEPANEL_OPENED_MANUAL,{runtimeWidgetName:u})))}});a?this.persistentIconIds.set(t,l):this.iconIds.set(t,l)}}},{key:"initRuntime",value:function(e,t,r){if(null!=e&&e.widgetName&&null!=e&&e.runtimeName&&null!=t&&t.layouts){this.addEventHandlers();var n=t.layouts;if(n&&n.length>0){var o,i=this.player.ui.store.getState().shell.activePresetName,a=GK(n);try{for(a.s();!(o=a.n()).done;){var u,c=o.value;if((null==c?void 0:c.type)===A.SIDEPANEL&&null!=c&&null!==(u=c.presets)&&void 0!==u&&u.includes(i)){var s={containerType:A.SIDEPANEL,presets:c.presets.filter(E),unisphereArea:c.sidepanel.visualType,position:null==r?void 0:r.position,expandMode:null==r?void 0:r.expandMode,expandOnFirstPlay:null==r?void 0:r.expandOnFirstPlay,layout:c,runtimeWidgetName:e.widgetName},l=this.containerManager.createContainer(s);if(l){var f,p=c.sidepanel.visualType,h=K.get(p),d=null==h||null===(f=h.upperBarIcon)||void 0===f?void 0:f.panelId;d&&c.header&&(this.addUpperBarIcon(X(e.widgetName.split(".")[2]),c.header.tooltip,0,c.header.icon,d,!1,e.widgetName),this.panelsByWidgetName.set(e.widgetName,d),this.widgetNameByPanel.set(d,e.widgetName)),this.mountRuntimeToContainer(e,c,l),null!=r&&r.expandOnFirstPlay&&d&&this.expandOnFirstPlayPanels.add(d)}}}}catch(e){a.e(e)}finally{a.f()}}}}},{key:"mountRuntimeToContainer",value:(r=d(g().mark(function e(t,r,n){var o,i,a;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,this.waitForContainer(n);case 1:o=e.sent,null==t||t.mountVisual({type:r.sidepanel.visualType,settings:r.sidepanel.visualSettings,target:o}),e.next=3;break;case 2:e.prev=2,a=e.catch(0),null===(i=this.logger)||void 0===i||i.warn("Failed to mount runtime to container:",a);case 3:case"end":return e.stop()}},e,this,[[0,2]])})),function(e,t,n){return r.apply(this,arguments)})},{key:"waitForContainer",value:function(e){var t=this;return new Promise(function(r,n){var o,i=null===(o=t.player)||void 0===o?void 0:o.config.targetId,a=0,u=function(){var t=document.getElementById(i),o=null==t?void 0:t.querySelector("#".concat(e));o?(clearInterval(c),r(o)):(a+=100)>=5e3&&(clearInterval(c),n(new Error("Container with id '".concat(e,"' not found in DOM after ").concat(5e3,"ms"))))},c=setInterval(u,100);u()})}},{key:"updateButtonVisibility",value:function(t,r){this.buttonVisibilityStates.get(t)!==r&&(this.buttonVisibilityStates.set(t,r),this.player.dispatchEvent(new e.core.FakeEvent(b.BUTTON_VISIBILITY_UPDATE,{buttonId:t,visible:r})))}},{key:"getButtonVisibility",value:function(e){return this.buttonVisibilityStates.get(e)}},{key:"activateByWidgetName",value:function(e){if(this.sidePanelsManager&&"function"==typeof this.sidePanelsManager.activateItem){var t=this.getByWidgetName(e);t?(this.logger.log("Activating panel with panel ID ".concat(t," for runtime widget ").concat(e)),this.sidePanelsManager.activateItem(t)):this.logger.warn("Panel ID ".concat(t," not found"))}else this.logger.warn("SidePanelsManager service not found or activateItem method not available")}},{key:"getByWidgetName",value:function(e){return this.panelsByWidgetName.get(e)}},{key:"updateSessionData",value:function(){var e,t;K.update(w.PLAYER_SESSION,{entryId:this.player.sources.id,ks:null===(e=this.player.config.session)||void 0===e?void 0:e.ks,entryName:null===(t=this.player.sources.metadata)||void 0===t?void 0:t.name})}},{key:"reset",value:function(){var e,t=GK(this.panelIds);try{for(t.s();!(e=t.n()).done;){var r,n,o=e.value;null!==(r=this.sidePanelsManager)&&void 0!==r&&r.isItemActive(o)&&this.sidePanelsManager.deactivateItem(o),null===(n=this.sidePanelsManager)||void 0===n||n.remove(o)}}catch(e){t.e(e)}finally{t.f()}this.panelIds.clear();var i,a=GK(this.iconIds.values());try{for(a.s();!(i=a.n()).done;){var u,c=i.value;null===(u=this.upperBarManager)||void 0===u||u.remove(c)}}catch(e){a.e(e)}finally{a.f()}this.iconIds.clear(),this.containerManager.destroy(),this.buttonVisibilityStates.clear(),this.expandOnFirstPlayPanels.clear(),this.panelsByWidgetName.clear(),this.widgetNameByPanel.clear(),this.widgetNameByIcon.clear()}},{key:"destroy",value:function(){this.reset(),this.containerManager.destroy();var e,t=GK(this.persistentIconIds.values());try{for(t.s();!(e=t.n()).done;){var r,n=e.value;null===(r=this.upperBarManager)||void 0===r||r.remove(n)}}catch(e){t.e(e)}finally{t.f()}q.destroy(),K.destroy(),D.destroy(),this.unsubscribeStore&&this.unsubscribeStore()}}]);var r,n}();function qK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qK=function(){return!!e})()}var VK="unisphereService",YK=function(e){function r(e,n,o){var i,a,u,l;return t(this,r),a=this,l=[e,n,o],u=s(u=r),(i=c(a,qK()?Reflect.construct(u,l||[],s(a).constructor):u.apply(a,l)))._unispherePluginManager=new HK(n,i.eventManager,i.logger,i.config),n.registerService(VK,{pluginManager:i._unispherePluginManager,eventService:q}),i}return f(r,e),u(r,[{key:"reset",value:function(){this._unispherePluginManager.reset()}},{key:"destroy",value:function(){this.eventManager.destroy(),this._unispherePluginManager.reset(),q.destroy()}}],[{key:"isValid",value:function(){return!0}}])}(e.BasePlugin);p(YK,"defaultConfig",{widgets:[]}),(0,e.registerPlugin)(VK,YK)})(),n})());
3
3
  //# sourceMappingURL=playkit-unisphere-service.js.map