var sE=Object.defineProperty,lE=Object.defineProperties,cE=Object.getOwnPropertyDescriptors,_v=Object.getOwnPropertySymbols,uE=Object.prototype.hasOwnProperty,dE=Object.prototype.propertyIsEnumerable,pv=(Qe,G,i)=>G in Qe?sE(Qe,G,{enumerable:!0,configurable:!0,writable:!0,value:i}):Qe[G]=i,co=(Qe,G)=>{for(var i in G||(G={}))uE.call(G,i)&&pv(Qe,i,G[i]);if(_v)for(var i of _v(G))dE.call(G,i)&&pv(Qe,i,G[i]);return Qe},Go=(Qe,G)=>lE(Qe,cE(G));(self.webpackChunktytapp=self.webpackChunktytapp||[]).push([[179],{75545:(Qe,G,i)=>{"use strict";i.d(G,{ZT:()=>e,gn:()=>o,mG:()=>u,pi:()=>l,w6:()=>t});var n=function(K,T){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,R){S.__proto__=R}||function(S,R){for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&(S[j]=R[j])})(K,T)};function e(K,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function S(){this.constructor=K}n(K,T),K.prototype=null===T?Object.create(T):(S.prototype=T.prototype,new S)}var l=function(){return l=Object.assign||function(T){for(var S,R=1,j=arguments.length;R=0;re--)(Z=K[re])&&(H=(j<3?Z(H):j>3?Z(T,S,H):Z(T,S))||H);return j>3&&H&&Object.defineProperty(T,S,H),H}function t(K,T){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(K,T)}function u(K,T,S,R){return new(S||(S=Promise))(function(H,Z){function re(Ke){try{pe(R.next(Ke))}catch(it){Z(it)}}function _e(Ke){try{pe(R.throw(Ke))}catch(it){Z(it)}}function pe(Ke){Ke.done?H(Ke.value):function j(H){return H instanceof S?H:new S(function(Z){Z(H)})}(Ke.value).then(re,_e)}pe((R=R.apply(K,T||[])).next())})}Object.create;Object.create},61057:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.CDNProvider=void 0;var i=function n(){};G.CDNProvider=i},28721:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},77976:(Qe,G)=>{"use strict";var n;Object.defineProperty(G,"__esModule",{value:!0}),G.CommentsOrder=void 0,(n=G.CommentsOrder||(G.CommentsOrder={})).NEWEST="newest",n.OLDEST="oldest",n.LIKES="likes"},62133:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},22297:function(Qe,G,i){"use strict";var r,n=this&&this.__extends||(r=function(t,u){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(d[p]=c[p])})(t,u)},function(t,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=t}r(t,u),t.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)}),e=this&&this.__awaiter||function(r,t,u,d){return new(u||(u=Promise))(function(p,m){function C(g){try{f(d.next(g))}catch(y){m(y)}}function v(g){try{f(d.throw(g))}catch(y){m(y)}}function f(g){g.done?p(g.value):function c(p){return p instanceof u?p:new u(function(m){m(p)})}(g.value).then(C,v)}f((d=d.apply(r,t||[])).next())})},l=this&&this.__generator||function(r,t){var d,c,p,m,u={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(f){return function(g){return function v(f){if(d)throw new TypeError("Generator is already executing.");for(;u;)try{if(d=1,c&&(p=2&f[0]?c.return:f[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,f[1])).done)return p;switch(c=0,p&&(f=[2&f[0],p.value]),f[0]){case 0:case 1:p=f;break;case 4:return u.label++,{value:f[1],done:!1};case 5:u.label++,c=f[1],f=[0];continue;case 7:f=u.ops.pop(),u.trys.pop();continue;default:if(!(p=(p=u.trys).length>0&&p[p.length-1])&&(6===f[0]||2===f[0])){u=0;continue}if(3===f[0]&&(!p||f[1]>p[0]&&f[1]0&&d[d.length-1])&&(6===C[0]||2===C[0])){r=0;continue}if(3===C[0]&&(!d||C[1]>d[0]&&C[1]0&&this._attempt>=this.maxAttempts)return void this.close(503,"Service Unavailable");this.attemptToReconnect()}}else this.safelyClose(o)},Object.defineProperty(h.prototype,"actualReconnectTime",{get:function(){var o=Math.min(this.maxReconnectTime,this.reconnectTime*this._attempt*1.5);return Math.min(this.maxReconnectTime,o+Math.random()*this.jitter*o)},enumerable:!1,configurable:!0}),h.prototype.attemptToReconnect=function(){var o=this;this._ready||(console.log("[Banta/DurableSocket] Waiting ".concat(this.actualReconnectTime,"ms before reconnect (attempt ").concat(this._attempt,") [").concat(this.url,"]")),this._reconnectTimeout&&(console.warn("[Banta/DurableSocket] Warning: Attempt to schedule reconnect when there is already a reconnect timeout outstanding!"),clearTimeout(this._reconnectTimeout)),setTimeout(function(){o._ready||(o.connect(),clearTimeout(o._reconnectTimeout),o._reconnectTimeout=void 0)},this.actualReconnectTime))},h.prototype.reconnect=function(){var o;null===(o=this._socket)||void 0===o||o.close(),console.log("[Banta/DurableSocket] Connection is no longer ready."),this.setNotReady()},h.prototype.setNotReady=function(){this._ready&&console.log("[Banta/DurableSocket] Connection is no longer ready."),this._ready=!1},h.prototype.setReady=function(o){this._ready?console.warn("[Banta/DurableSocket] Connection marked ready, but it was already marked ready"):console.log("[Banta/DurableSocket] Connection is now ready."),this._ready||(this._ready=!0,this.dispatchSocketEvent(o,{type:"ready",bubbles:!1,cancelable:!1,cancelBubble:!1,composed:!1,currentTarget:this,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:void 0,srcElement:void 0,target:this,timeStamp:Date.now(),composedPath:function(){return[]},initEvent:void 0,preventDefault:function(){this.defaultPrevented=!0},stopPropagation:function(){},stopImmediatePropagation:function(){},AT_TARGET:2,BUBBLING_PHASE:3,CAPTURING_PHASE:1,NONE:0}))},Object.defineProperty(h.prototype,"binaryType",{get:function(){return this._socket.binaryType},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"bufferedAmount",{get:function(){return this._socket.bufferedAmount},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"extensions",{get:function(){return this._socket.extensions},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CLOSED",{get:function(){return WebSocket.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CLOSING",{get:function(){return WebSocket.CLOSING},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CONNECTING",{get:function(){return WebSocket.CONNECTING},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"OPEN",{get:function(){return WebSocket.OPEN},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onclose",{get:function(){return this._onclose},set:function(o){this._onclose&&this.removeEventListener("close",this._onclose),this._onclose=o,o&&this.addEventListener("close",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onerror",{get:function(){return this._onerror},set:function(o){this._onclose&&this.removeEventListener("error",this._onerror),this._onerror=o,o&&this.addEventListener("error",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onmessage",{get:function(){return this._onmessage},set:function(o){this._onclose&&this.removeEventListener("message",this._onmessage),this._onmessage=o,o&&this.addEventListener("message",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onopen",{get:function(){return this._onopen},set:function(o){this._onclose&&this.removeEventListener("open",this._onopen),this._onopen=o,o&&this.addEventListener("open",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"protocol",{get:function(){return this._socket.protocol},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"readyState",{get:function(){return this._socket.readyState},enumerable:!1,configurable:!0}),h.prototype.close=function(o,r){var t;this._closed=!0,null===(t=this._socket)||void 0===t||t.close(o,r),this._socket=null,this.dispatchEvent({type:"close",bubbles:!1,cancelable:!1,cancelBubble:!1,composed:!1,currentTarget:this,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:void 0,srcElement:void 0,target:this,timeStamp:Date.now(),composedPath:function(){return[]},initEvent:void 0,preventDefault:function(){this.defaultPrevented=!0},stopPropagation:function(){},stopImmediatePropagation:function(){},AT_TARGET:2,BUBBLING_PHASE:3,CAPTURING_PHASE:1,NONE:0})},Object.defineProperty(h.prototype,"isReady",{get:function(){return this._ready},enumerable:!1,configurable:!0}),h.prototype.send=function(o){this._ready?this._socket.send(o):this._messageQueue.push(o)},h.prototype.sendImmediately=function(o){this._socket.send(o)},h.prototype.addEventListener=function(o,r,t){var u;this._subscribers.set(o,e(e([],null!==(u=this._subscribers.get(o))&&void 0!==u?u:[],!0),[r],!1))},h.prototype.removeEventListener=function(o,r,t){var u;this._subscribers.set(o,e([],(null!==(u=this._subscribers.get(o))&&void 0!==u?u:[]).filter(function(d){return d!==r}),!0))},h.prototype.dispatchSocketEvent=function(o,r){var t;return i(this,void 0,void 0,function(){var u;return n(this,function(d){switch(d.label){case 0:return this._socket!==o?(this.safelyClose(o),[2]):(u=null!==(t=this._subscribers.get(r.type))&&void 0!==t?t:[],[4,Promise.all(u.map(function(c){return c(r)}))]);case 1:return d.sent(),[2,!r.defaultPrevented]}})})},h.prototype.dispatchEvent=function(o){var r;return(null!==(r=this._subscribers.get(o.type))&&void 0!==r?r:[]).forEach(function(u){return u(o)}),!o.defaultPrevented},h}();G.DurableSocket=l},39240:(Qe,G)=>{"use strict";var n;Object.defineProperty(G,"__esModule",{value:!0}),G.FilterMode=void 0,(n=G.FilterMode||(G.FilterMode={})).ALL="all",n.MINE="mine",n.THREADS="threads",n.MY_LIKES="my-likes"},15430:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.filterObject=void 0,G.filterObject=function i(n,e){return e.reduce(function(l,h){return h in n&&(l[h]=n[h]),l},{})}},30509:function(Qe,G,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(l,h,o,r){void 0===r&&(r=o);var t=Object.getOwnPropertyDescriptor(h,o);(!t||("get"in t?!h.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return h[o]}}),Object.defineProperty(l,r,t)}:function(l,h,o,r){void 0===r&&(r=o),l[r]=h[o]}),e=this&&this.__exportStar||function(l,h){for(var o in l)"default"!==o&&!Object.prototype.hasOwnProperty.call(h,o)&&n(h,l,o)};Object.defineProperty(G,"__esModule",{value:!0}),e(i(28721),G),e(i(62133),G),e(i(53075),G),e(i(7368),G),e(i(58826),G),e(i(61057),G),e(i(22297),G),e(i(34316),G),e(i(59972),G),e(i(19007),G),e(i(23189),G),e(i(15430),G),e(i(77976),G),e(i(39240),G),e(i(28764),G),e(i(65898),G),e(i(80082),G),e(i(43305),G),e(i(59585),G),e(i(59969),G)},23189:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Injectable=void 0,G.Injectable=function i(){return function(n){}}},53075:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},7368:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},58826:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.NotificationsProvider=void 0;var i=function n(){};G.NotificationsProvider=i},80082:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},28764:function(Qe,G,i){"use strict";var n=this&&this.__awaiter||function(C,v,f,g){return new(f||(f=Promise))(function(M,I){function D(B){try{k(g.next(B))}catch(x){I(x)}}function O(B){try{k(g.throw(B))}catch(x){I(x)}}function k(B){B.done?M(B.value):function y(M){return M instanceof f?M:new f(function(I){I(M)})}(B.value).then(D,O)}k((g=g.apply(C,v||[])).next())})},e=this&&this.__generator||function(C,v){var g,y,M,I,f={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return I={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function D(k){return function(B){return function O(k){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,y&&(M=2&k[0]?y.return:k[0]?y.throw||((M=y.return)&&M.call(y),0):y.next)&&!(M=M.call(y,k[1])).done)return M;switch(y=0,M&&(k=[2&k[0],M.value]),k[0]){case 0:case 1:M=k;break;case 4:return f.label++,{value:k[1],done:!1};case 5:f.label++,y=k[1],k=[0];continue;case 7:k=f.ops.pop(),f.trys.pop();continue;default:if(!(M=(M=f.trys).length>0&&M[M.length-1])&&(6===k[0]||2===k[0])){f=0;continue}if(3===k[0]&&(!M||k[1]>M[0]&&k[1]0&&console.error("[Banta/RPC] Failed ".concat(v," in-flight requests due to connection failure")),f>0&&console.warn("[Banta/RPC] Rescheduled ".concat(f," in-flight requests due to connection failure"))},C.prototype.onReceiveMessage=function(v){return n(this,void 0,void 0,function(){var f,g,y,M,D;return e(this,function(O){switch(O.label){case 0:if(!function t(C){return"request"===C.type}(v))return[3,7];if("call"!==this.getRpcType(v.method)||"function"!=typeof this[v.method])return[3,5];f=void 0,g=void 0,O.label=1;case 1:return O.trys.push([1,3,,4]),[4,this[v.method].apply(this,v.parameters)];case 2:return f=O.sent(),[3,4];case 3:return y=O.sent(),g=y instanceof Error?{message:y.message,stack:y.stack}:y,[3,4];case 4:return this.rawSend({type:"response",id:v.id,value:f,error:g}),[2];case 5:this.rawSend({type:"response",id:v.id,error:{code:"invalid-call",message:"No such method '".concat(v.method,"'")}}),O.label=6;case 6:return[2];case 7:return function u(C){return"response"===C.type}(v)?(M=this._callMap.get(v.id),M.request,(D=M.handler)?(this._callMap.delete(v.id),D(v),[2]):(console.error("Received response to unknown request '".concat(v.id,"'")),[2])):function d(C){return"event"===C.type}(v)?"event"===this.getRpcType(v.name)?(this[v.name](v.object),[2]):(console.error("Unsupported event type '".concat(v.name,"' received.")),[2]):"ping"===v.type?(this.rawSend({type:"pong"}),[2]):(console.error("Unknown message type from server '".concat(v.type,"'")),[2])}})})},C.prototype.getRpcType=function(v){return Reflect.getMetadata("rpc:type",this.constructor.prototype,v)||"none"},C.prototype.getRpcCallableOptions=function(v){var f;return null!==(f=Reflect.getMetadata("rpc:callableOptions",this.constructor.prototype,v))&&void 0!==f?f:{}},C.prototype.close=function(){this._socket.close()},C}();G.SocketRPC=m},34316:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},59585:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},43305:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},59969:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.buildQuery=void 0,G.buildQuery=function i(n){for(var e=new URLSearchParams,l=0,h=Object.entries(n);l{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},19007:(Qe,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0})},94400:Qe=>{Qe.exports=function(){var G,e=["navigation","request","process","log","user","state","error","manual"],l=function(Ue,ot,bt){for(var yt=bt,Wt=0,on=Ue.length;Wt=Ue&&bt<=ot}},p=function(Ue){return"function"==typeof Ue||r(Ue)&&h(Ue,function(ot){return"function"==typeof ot}).length===Ue.length},m=function(Ue){return"string"==typeof Ue&&!!Ue.length},C={},v=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};C.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:m},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(Ue){return void 0===Ue||m(Ue)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(Ue){return void 0===Ue||m(Ue)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Ue){return!0===Ue||!1===Ue}},enabledErrorTypes:{defaultValue:function(){return v()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(Ue){if("object"!=typeof Ue||!Ue)return!1;var ot=d(Ue),bt=d(v());return!(h(ot,function(yt){return o(bt,yt)}).length0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(Ue){return Ue&&"object"==typeof Ue&&m(Ue.notify)&&m(Ue.sessions)&&0===h(d(Ue),function(ot){return!o(["notify","sessions"],ot)}).length}},autoTrackSessions:{defaultValue:function(Ue){return!0},message:"should be true|false",validate:function(Ue){return!0===Ue||!1===Ue}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(Ue){return null===Ue||r(Ue)&&h(Ue,function(ot){return"string"==typeof ot}).length===Ue.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(Ue){return"string"==typeof Ue&&Ue.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(Ue){return c(0,100)(Ue)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(Ue){return null===Ue||r(Ue)&&l(Ue,function(ot,bt){return!1===ot?ot:o(e,bt)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(Ue){return void 0===Ue||"string"==typeof Ue}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(Ue){return null===Ue||Ue&&l(d(Ue),function(ot,bt){return ot&&o(["id","email","name"],bt)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(Ue){return"object"==typeof Ue&&null!==Ue}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(Ue){return!Ue||Ue&&l(["debug","info","warn","error"],function(ot,bt){return ot&&"function"==typeof Ue[bt]},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(Ue){return r(Ue)&&Ue.length===h(Ue,function(ot){return"string"==typeof ot||ot&&"function"==typeof ot.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(Ue){return r(Ue)&&Ue.length===h(Ue,function(ot){return ot&&"object"==typeof ot&&"function"==typeof ot.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(Ue){return r(Ue)&&Ue.length===h(Ue,function(ot){return ot&&"object"==typeof ot&&"string"==typeof ot.name}).length}}};var f=function(Ue){for(var ot=1;ot-1&&($t=$t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var sn=$t.replace(/^\s+/,"").replace(/\(eval code/g,"("),Mn=sn.match(/ (\((.+):(\d+):(\d+)\)$)/),ai=(sn=Mn?sn.replace(Mn[0],""):sn).split(/\s+/).slice(1),In=this.extractLocation(Mn?Mn[1]:ai.pop()),Vn=ai.join(" ")||void 0,Gi=["eval",""].indexOf(In[0])>-1?void 0:In[0];return new ot({functionName:Vn,fileName:Gi,lineNumber:In[1],columnNumber:In[2],source:$t})},this)},parseFFOrSafari:function(Jt){return Jt.stack.split("\n").filter(function($t){return!$t.match(Wt)},this).map(function($t){if($t.indexOf(" > eval")>-1&&($t=$t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===$t.indexOf("@")&&-1===$t.indexOf(":"))return new ot({functionName:$t});var sn=/((.*".+"[^@]*)?[^@]*)(?:@)/,Mn=$t.match(sn),ai=Mn&&Mn[1]?Mn[1]:void 0,In=this.extractLocation($t.replace(sn,""));return new ot({functionName:ai,fileName:In[0],lineNumber:In[1],columnNumber:In[2],source:$t})},this)},parseOpera:function(Jt){return!Jt.stacktrace||Jt.message.indexOf("\n")>-1&&Jt.message.split("\n").length>Jt.stacktrace.split("\n").length?this.parseOpera9(Jt):Jt.stack?this.parseOpera11(Jt):this.parseOpera10(Jt)},parseOpera9:function(Jt){for(var xt=/Line (\d+).*script (?:in )?(\S+)/i,$t=Jt.message.split("\n"),sn=[],Mn=2,ai=$t.length;Mn/,"$2").replace(/\([^\)]*\)/g,"")||void 0;ai.match(/\(([^\)]*)\)/)&&(Vn=ai.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var Gi=void 0===Vn||"[arguments not available]"===Vn?void 0:Vn.split(",");return new ot({functionName:In,args:Gi,fileName:Mn[0],lineNumber:Mn[1],columnNumber:Mn[2],source:$t})},this)}}});var U=x,L=function(Ue,ot,bt,yt){var Wt=yt&&yt.redactedKeys?yt.redactedKeys:[],on=yt&&yt.redactedPaths?yt.redactedPaths:[];return JSON.stringify(Ke(Ue,Wt,on),ot,bt)},N=20,K=25e3,T=8,S="...";function R(Ue){return Ue instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(Ue))}function j(Ue){return"[Throws: "+(Ue?Ue.message:"?")+"]"}function H(Ue,ot){for(var bt=0,yt=Ue.length;btT&&Wt>K}if(Wt++,xt.length>N||$t())return S;if(null===Jt||"object"!=typeof Jt)return Jt;if(H(yt,Jt))return"[Circular]";if(yt.push(Jt),"function"==typeof Jt.toJSON)try{Wt--;var sn=on(Jt.toJSON(),xt);return yt.pop(),sn}catch(ii){return j(ii)}if(R(Jt)){Wt--;var ai=on({name:Jt.name,message:Jt.message},xt);return yt.pop(),ai}if(_e(Jt)){for(var In=[],Vn=0,Gi=Jt.length;Vn-1&&!ot.file&&!ot.method&&(ot.file="global code"),ot},te=function(Ue){return/^global code$/i.test(Ue)?"global code":Ue},Pe=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},he=function(Ue){return"string"==typeof Ue?Ue:""};function Y(Ue,ot,bt,yt){return{errorClass:he(Ue),errorMessage:he(ot),type:bt,stacktrace:l(yt,function(Wt,on){var Jt=ve(on);try{return"{}"===JSON.stringify(Jt)?Wt:Wt.concat(Jt)}catch(xt){return Wt}},[])}}function Ee(Ue){return Ue.cause?[Ue].concat(Ee(Ue.cause)):[Ue]}se.getStacktrace=function(Ue,ot,bt){if(Ve(Ue))return U.parse(Ue).slice(ot);try{return h(Ae.backtrace(),function(yt){return-1===(yt.functionName||"").indexOf("StackGenerator$$")}).slice(1+bt)}catch(yt){return[]}},se.create=function(Ue,ot,bt,yt,Wt,on){void 0===Wt&&(Wt=0);var sn,Jt=Le(Ue,ot,yt,on),xt=Jt[0],$t=Jt[1];try{var Mn=se.getStacktrace(xt,$t>0?1+$t+Wt:0,1+Wt);sn=new se(xt.name,xt.message,Mn,bt,Ue)}catch(Gi){sn=new se(xt.name,xt.message,[],bt,Ue)}if("InvalidError"===xt.name&&sn.addMetadata(""+yt,"non-error parameter",we(Ue)),xt.cause){var ai,In=Ee(xt).slice(1),Vn=g(In,function(Gi){var Yn=Pt(Gi)&&Ve(Gi)?U.parse(Gi):[],ii=Le(Gi,!0,"error cause")[0];return"InvalidError"===ii.name&&sn.addMetadata("error cause",we(Gi)),Y(ii.name,ii.message,se.__type,Yn)});(ai=sn.errors).push.apply(ai,Vn)}return sn};var we=function(Ue){return null===Ue?"null":void 0===Ue?"undefined":Ue},Le=function(Ue,ot,bt,yt){var Wt,on=0,Jt=function(xt){var $t="error cause"===bt?"was":"received";yt&&yt.warn(bt+" "+$t+' a non-error: "'+xt+'"');var sn=new Error(bt+" "+$t+' a non-error. See "'+bt+'" tab for more detail.');return sn.name="InvalidError",sn};if(ot)switch(typeof Ue){case"string":case"number":case"boolean":Wt=new Error(String(Ue)),on+=1;break;case"function":Wt=Jt("function"),on+=2;break;case"object":null!==Ue&&Pt(Ue)?Wt=Ue:null!==Ue&&He(Ue)?((Wt=new Error(Ue.message||Ue.errorMessage)).name=Ue.name||Ue.errorClass,on+=1):(Wt=Jt(null===Ue?"null":"unsupported object"),on+=2);break;default:Wt=Jt("nothing"),on+=2}else Pt(Ue)?Wt=Ue:(Wt=Jt(typeof Ue),on+=2);if(!Ve(Wt))try{throw Wt}catch(xt){Ve(xt)&&(Wt=xt,on=1)}return[Wt,on]};se.__type="browserjs";var He=function(Ue){return!("string"!=typeof Ue.name&&"string"!=typeof Ue.errorClass||"string"!=typeof Ue.message&&"string"!=typeof Ue.errorMessage)},be=se,et=function(Ue,ot,bt){var yt=0,Wt=function(){if(yt>=Ue.length)return bt(null,!0);ot(Ue[yt],function(on,Jt){return on?bt(on):!1===Jt?bt(null,!1):(yt++,void Wt())})};Wt()},at=function(Ue,ot,bt,yt){et(Ue,function(on,Jt){if("function"!=typeof on)return Jt(null);try{if(2!==on.length){var xt=on(ot);return xt&&"function"==typeof xt.then?xt.then(function($t){return setTimeout(function(){return Jt(null,$t)})},function($t){setTimeout(function(){return bt($t),Jt(null,!0)})}):Jt(null,xt)}on(ot,function($t,sn){if($t)return bt($t),Jt(null);Jt(null,sn)})}catch($t){bt($t),Jt(null)}},yt)},Ot=function(Ue,ot,bt,yt){for(var Wt=!1,on=Ue.slice();!Wt&&on.length;)try{Wt=!1===on.pop()(ot)}catch(Jt){yt.error("Error occurred in "+bt+" callback, continuing anyway\u2026"),yt.error(Jt)}return Wt},Nt=function(ot,bt){var yt="000000000"+ot;return yt.substr(yt.length-bt)},Ft="object"==typeof window?window:self,st=0;for(var ze in Ft)Object.hasOwnProperty.call(Ft,ze)&&st++;var Se=navigator.mimeTypes?navigator.mimeTypes.length:0,Be=Nt((Se+navigator.userAgent.length).toString(36)+st.toString(36),4),ft=function(){return Be},Oe=0,vt=4,Qt=36,dn=Math.pow(Qt,vt);function Dt(){return Nt((Math.random()*dn<<0).toString(Qt),vt)}function xe(){return Oe=Oethis._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},ot._isBreadcrumbTypeEnabled=function(yt){var Wt=this._config.enabledBreadcrumbTypes;return null===Wt||o(Wt,yt)},ot.notify=function(yt,Wt,on){void 0===on&&(on=Mt);var Jt=be.create(yt,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(Jt,Wt,on)},ot._notify=function(yt,Wt,on){var Jt=this;if(void 0===on&&(on=Mt),yt.app=f({},yt.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),yt.context=yt.context||this._context,yt._metadata=f({},yt._metadata,this._metadata),yt._features=f({},yt._features,this._features),yt._user=f({},yt._user,this._user),yt.breadcrumbs=this._breadcrumbs.slice(),null!==this._config.enabledReleaseStages&&!o(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),on(null,yt);var xt=yt.severity,$t=function(Mn){Jt._logger.error("Error occurred in onError callback, continuing anyway\u2026"),Jt._logger.error(Mn)},sn=[].concat(this._cbs.e).concat(Wt);at(sn,yt,$t,function(Mn,ai){if(Mn&&$t(Mn),!ai)return Jt._logger.debug("Event not sent due to onError callback"),on(null,yt);Jt._isBreadcrumbTypeEnabled("error")&&Ue.prototype.leaveBreadcrumb.call(Jt,yt.errors[0].errorClass,{errorClass:yt.errors[0].errorClass,errorMessage:yt.errors[0].errorMessage,severity:yt.severity},"error"),xt!==yt.severity&&(yt._handledState.severityReason={type:"userCallbackSetSeverity"}),yt.unhandled!==yt._handledState.unhandled&&(yt._handledState.severityReason.unhandledOverridden=!0,yt._handledState.unhandled=yt.unhandled),Jt._session&&(Jt._session._track(yt),yt._session=Jt._session),Jt._delivery.sendEvent({apiKey:yt.apiKey||Jt._config.apiKey,notifier:Jt._notifier,events:[yt]},function(In){return on(In,yt)})})},Ue}(),Ze=function(Ue,ot){return new Error("Invalid configuration\n"+g(d(Ue),function(yt){return" - "+yt+" "+Ue[yt]+", got "+Xe(ot[yt])}).join("\n\n"))},Xe=function(Ue){switch(typeof Ue){case"string":case"number":case"object":return JSON.stringify(Ue);default:return String(Ue)}},St=It,qt={},En=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];qt.event=function(Ue,ot){var bt=L(Ue,null,null,{redactedPaths:En,redactedKeys:ot});if(bt.length>1e6&&(Ue.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+bt.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(bt=L(Ue,null,null,{redactedPaths:En,redactedKeys:ot})).length>1e6))throw new Error("payload exceeded 1MB limit");return bt},qt.session=function(Ue,ot){var bt=L(Ue,null,null);if(bt.length>1e6)throw new Error("payload exceeded 1MB limit");return bt};var An={};An=function(Ue,ot){return void 0===ot&&(ot=window),{sendEvent:function(bt,yt){void 0===yt&&(yt=function(){});var Wt=Kn(Ue._config,"notify","4",ot),on=new ot.XDomainRequest;on.onload=function(){yt(null)},on.open("POST",Wt),setTimeout(function(){try{on.send(qt.event(bt,Ue._config.redactedKeys))}catch(Jt){Ue._logger.error(Jt),yt(Jt)}},0)},sendSession:function(bt,yt){void 0===yt&&(yt=function(){});var Wt=Kn(Ue._config,"sessions","1",ot),on=new ot.XDomainRequest;on.onload=function(){yt(null)},on.open("POST",Wt),setTimeout(function(){try{on.send(qt.session(bt,Ue._config.redactedKeys))}catch(Jt){Ue._logger.error(Jt),yt(Jt)}},0)}}};var Kn=function(Ue,ot,bt,yt){var Wt=JSON.parse(JSON.stringify(new Date));return nt(Ue.endpoints[ot],yt.location.protocol)+"?apiKey="+encodeURIComponent(Ue.apiKey)+"&payloadVersion="+bt+"&sentAt="+encodeURIComponent(Wt)},nt=An._matchPageProtocol=function(Ue,ot){return"http:"===ot?Ue.replace(/^https:/,"http:"):Ue},ce=function(Ue,ot){return void 0===ot&&(ot=window),{sendEvent:function(bt,yt){void 0===yt&&(yt=function(){});try{var Wt=Ue._config.endpoints.notify,on=new ot.XMLHttpRequest;on.onreadystatechange=function(){on.readyState===ot.XMLHttpRequest.DONE&&yt(null)},on.open("POST",Wt),on.setRequestHeader("Content-Type","application/json"),on.setRequestHeader("Bugsnag-Api-Key",bt.apiKey||Ue._config.apiKey),on.setRequestHeader("Bugsnag-Payload-Version","4"),on.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),on.send(qt.event(bt,Ue._config.redactedKeys))}catch(Jt){Ue._logger.error(Jt)}},sendSession:function(bt,yt){void 0===yt&&(yt=function(){});try{var Wt=Ue._config.endpoints.sessions,on=new ot.XMLHttpRequest;on.onreadystatechange=function(){on.readyState===ot.XMLHttpRequest.DONE&&yt(null)},on.open("POST",Wt),on.setRequestHeader("Content-Type","application/json"),on.setRequestHeader("Bugsnag-Api-Key",Ue._config.apiKey),on.setRequestHeader("Bugsnag-Payload-Version","1"),on.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),on.send(qt.session(bt,Ue._config.redactedKeys))}catch(Jt){Ue._logger.error(Jt)}}}},Re=new Date,De=function(){Re=new Date},dt={name:"appDuration",load:function(Ue){return Ue.addOnError(function(ot){var bt=new Date;ot.app.duration=bt-Re},!0),{reset:De}}},_t=function(Ue){return void 0===Ue&&(Ue=window),{load:function(ot){ot.addOnError(function(bt){void 0===bt.context&&(bt.context=Ue.location.pathname)},!0)}}},rn=function(ot,bt){var yt="000000000"+ot;return yt.substr(yt.length-bt)},Kt="object"==typeof window?window:self,fn=0;for(var kn in Kt)Object.hasOwnProperty.call(Kt,kn)&&fn++;var Bn=navigator.mimeTypes?navigator.mimeTypes.length:0,Wn=rn((Bn+navigator.userAgent.length).toString(36)+fn.toString(36),4),hi=function(){return Wn},Vt=0,ie=4,Ce=36,mt=Math.pow(Ce,ie);function wt(){return rn((Math.random()*mt<<0).toString(Ce),ie)}function _n(){return Vt=Vtdocument.documentElement.clientHeight?"landscape":"portrait",bt._config.generateAnonymousId&&(yt.id=li()),bt.addOnSession(function(Wt){Wt.device=f({},Wt.device,yt),bt._config.collectUserIp||qi(Wt)}),bt.addOnError(function(Wt){Wt.device=f({},Wt.device,yt,{time:new Date}),bt._config.collectUserIp||qi(Wt)},!0)},configSchema:{generateAnonymousId:{validate:function(bt){return!0===bt||!1===bt},defaultValue:function(){return!0},message:"should be true|false"}}}},qi=function(Ue){var ot=Ue.getUser();(!ot||!ot.id)&&Ue.setUser(Ue.device.id)},rr=function(Ue){return void 0===Ue&&(Ue=window),{load:function(ot){ot.addOnError(function(bt){bt.request&&bt.request.url||(bt.request=f({},bt.request,{url:Ue.location.href}))},!0)}}},Pr={load:function(Ue){Ue._sessionDelegate=or}},or={startSession:function(Ue,ot){var bt=Ue;return bt._session=ot,bt._pausedSession=null,null===bt._config.enabledReleaseStages||o(bt._config.enabledReleaseStages,bt._config.releaseStage)?(bt._delivery.sendSession({notifier:bt._notifier,device:ot.device,app:ot.app,sessions:[{id:ot.id,startedAt:ot.startedAt,user:ot._user}]}),bt):(bt._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),bt)},resumeSession:function(Ue){return Ue._session?Ue:Ue._pausedSession?(Ue._session=Ue._pausedSession,Ue._pausedSession=null,Ue):Ue.startSession()},pauseSession:function(Ue){Ue._pausedSession=Ue._session,Ue._session=null}},Ti={load:function(Ue){Ue._config.collectUserIp||Ue.addOnError(function(ot){ot._user&&void 0===ot._user.id&&delete ot._user.id,ot._user=f({id:"[REDACTED]"},ot._user),ot.request=f({clientIp:"[REDACTED]"},ot.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Ue){return!0===Ue||!1===Ue}}}},ji={load:function(Ue){/^(local-)?dev(elopment)?$/.test(Ue._config.releaseStage)||!Ue._isBreadcrumbTypeEnabled("log")||g(sr,function(bt){var yt=console[bt];console[bt]=function(){for(var Wt=arguments.length,on=new Array(Wt),Jt=0;Jt1){var yt=Array.prototype.indexOf.call(Ue.parentNode.childNodes,Ue)+1;bt.push(":nth-child("+yt+")")}return 1===ot.document.querySelectorAll(bt.join("")).length?bt.join(""):Ue.parentNode?nr(Ue.parentNode,ot)+" > "+bt.join(""):bt.join("")}function tr(Ue,ot){var bt="(...)";return Ue&&Ue.length<=ot?Ue:Ue.slice(0,ot-bt.length)+bt}var ur={};ur=function(Ue){return void 0===Ue&&(Ue=window),{load:function(bt){if("addEventListener"in Ue&&bt._isBreadcrumbTypeEnabled("navigation")){var yt=function(Wt){return function(){return bt.leaveBreadcrumb(Wt,{},"navigation")}};Ue.addEventListener("pagehide",yt("Page hidden"),!0),Ue.addEventListener("pageshow",yt("Page shown"),!0),Ue.addEventListener("load",yt("Page loaded"),!0),Ue.document.addEventListener("DOMContentLoaded",yt("DOMContentLoaded"),!0),Ue.addEventListener("load",function(){return Ue.addEventListener("popstate",yt("Navigated back"),!0)}),Ue.addEventListener("hashchange",function(Wt){var on=Wt.oldURL?{from:Yr(Wt.oldURL,Ue),to:Yr(Wt.newURL,Ue),state:an(Ue)}:{to:Yr(Ue.location.href,Ue)};bt.leaveBreadcrumb("Hash changed",on,"navigation")},!0),Ue.history.replaceState&&Wi(bt,Ue.history,"replaceState",Ue),Ue.history.pushState&&Wi(bt,Ue.history,"pushState",Ue)}}}};var Yr=function(Ue,ot){var bt=ot.document.createElement("A");return bt.href=Ue,""+bt.pathname+bt.search+bt.hash},ir=function(Ue,ot,bt,yt){var Wt=Yr(Ue.location.href,Ue);return{title:bt,state:ot,prevState:an(Ue),to:yt||Wt,from:Wt}},Wi=function(Ue,ot,bt,yt){var Wt=ot[bt];ot[bt]=function(on,Jt,xt){Ue.leaveBreadcrumb("History "+bt,ir(yt,on,Jt,xt),"navigation"),"function"==typeof Ue.resetEventCount&&Ue.resetEventCount(),Ue._config.autoTrackSessions&&Ue.startSession(),Wt.apply(ot,[on,Jt].concat(void 0!==xt?xt:[]))}},an=function(Ue){try{return Ue.history.state}catch(ot){}},ut="request",Rt=function(Ue,ot){void 0===Ue&&(Ue=[]),void 0===ot&&(ot=window);var yt={load:function(Wt){if(Wt._isBreadcrumbTypeEnabled("request")){var on=[Wt._config.endpoints.notify,Wt._config.endpoints.sessions].concat(Ue);Jt(),sn();var Mn=function(In,Vn,Gi){var Yn={status:In.status,request:Vn+" "+Gi};In.status>=400?Wt.leaveBreadcrumb("fetch() failed",Yn,ut):Wt.leaveBreadcrumb("fetch() succeeded",Yn,ut)},ai=function(In,Vn){Wt.leaveBreadcrumb("fetch() error",{request:In+" "+Vn},ut)}}function Jt(){if("addEventListener"in ot.XMLHttpRequest.prototype){var In=ot.XMLHttpRequest.prototype.open;ot.XMLHttpRequest.prototype.open=function(Gi,Yn){var Jn=this,ii=!1,Li=function(){return $t(Gi,Yn)},Mi=function(){return xt(Gi,Yn,Jn.status)};ii&&(this.removeEventListener("load",Mi),this.removeEventListener("error",Li)),this.addEventListener("load",Mi),this.addEventListener("error",Li),ii=!0,In.apply(this,arguments)}}}function xt(In,Vn,Gi){if(void 0!==Vn){if("string"!=typeof Vn||!o(on,Vn.replace(/\?.*$/,""))){var Yn={status:Gi,request:In+" "+Vn};Gi>=400?Wt.leaveBreadcrumb("XMLHttpRequest failed",Yn,ut):Wt.leaveBreadcrumb("XMLHttpRequest succeeded",Yn,ut)}}else Wt._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function $t(In,Vn){void 0!==Vn?"string"==typeof Vn&&o(on,Vn.replace(/\?.*$/,""))||Wt.leaveBreadcrumb("XMLHttpRequest error",{request:In+" "+Vn},ut):Wt._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function sn(){if("fetch"in ot&&!ot.fetch.polyfill){var In=ot.fetch;ot.fetch=function(){var ii,Gi=arguments,Yn=arguments[0],Jn=arguments[1],Li=null;return Yn&&"object"==typeof Yn?(Li=Yn.url,Jn&&"method"in Jn?ii=Jn.method:Yn&&"method"in Yn&&(ii=Yn.method)):(Li=Yn,Jn&&"method"in Jn&&(ii=Jn.method)),void 0===ii&&(ii="GET"),new Promise(function(Mi,Ui){In.apply(void 0,Gi).then(function(zi){Mn(zi,ii,Li),Mi(zi)}).catch(function(zi){ai(ii,Li),Ui(zi)})})}}}}};return yt},nn={load:function(Ue){var ot=0;Ue.addOnError(function(bt){if(ot>=Ue._config.maxEvents)return Ue._logger.warn("Cancelling event send due to maxEvents per session limit of "+Ue._config.maxEvents+" being reached"),!1;ot++}),Ue.resetEventCount=function(){ot=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(Ue){return c(1,100)(Ue)}}}},Ln={},ni=(Ln={load:function(Ue){Ue.addOnError(function(ot){var bt=l(ot.errors,function(yt,Wt){return yt.concat(Wt.stacktrace)},[]);g(bt,function(yt){yt.file=ni(yt.file)})})}})._strip=function(Ue){return"string"==typeof Ue?Ue.replace(/\?.*$/,"").replace(/#.*$/,""):Ue},zn=function(Ue){return void 0===Ue&&(Ue=window),{load:function(ot){if(ot._config.autoDetectErrors&&ot._config.enabledErrorTypes.unhandledExceptions){var yt=Ue.onerror;Ue.onerror=bt}function bt(Wt,on,Jt,xt,$t){if(0===Jt&&/Script error\.?/.test(Wt))ot._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var Mn,sn={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if($t)Mn=ot.Event.create($t,!0,sn,"window onerror",1),ui(Mn.errors[0].stacktrace,on,Jt,xt);else if("object"!=typeof Wt||null===Wt||on&&"string"==typeof on||Jt||xt||$t)Mn=ot.Event.create(Wt,!0,sn,"window onerror",1),ui(Mn.errors[0].stacktrace,on,Jt,xt);else{var ai=Wt.type?"Event: "+Wt.type:"Error",In=Wt.message||Wt.detail||"";(Mn=ot.Event.create({name:ai,message:In},!0,sn,"window onerror",1)).originalError=Wt,Mn.addMetadata("window onerror",{event:Wt,extraParameters:on})}ot._notify(Mn)}"function"==typeof yt&&yt.apply(this,arguments)}}}},ui=function(Ue,ot,bt,yt){Ue[0]||Ue.push({});var Wt=Ue[0];!Wt.file&&"string"==typeof ot&&(Wt.file=ot),!Wt.lineNumber&&Zn(bt)&&(Wt.lineNumber=bt),Wt.columnNumber||(Zn(yt)?Wt.columnNumber=yt:window.event&&Zn(window.event.errorCharacter)&&(Wt.columnNumber=window.event.errorCharacter))},Zn=function(Ue){return"number"==typeof Ue&&"NaN"!==String.call(Ue)},jn=function(Ue){return void 0===Ue&&(Ue=window),{load:function(bt){if(bt._config.autoDetectErrors&&bt._config.enabledErrorTypes.unhandledRejections){var yt=function(Wt){var on=Wt.reason,Jt=!1;try{Wt.detail&&Wt.detail.reason&&(on=Wt.detail.reason,Jt=!0)}catch($t){}var xt=bt.Event.create(on,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,bt._logger);Jt&&g(xt.errors[0].stacktrace,Gn(on)),bt._notify(xt,function($t){var sn;Pt($t.originalError)&&!$t.originalError.stack&&$t.addMetadata("unhandledRejection handler",((sn={})[Object.prototype.toString.call($t.originalError)]={name:$t.originalError.name,message:$t.originalError.message,code:$t.originalError.code},sn))})};"addEventListener"in Ue?Ue.addEventListener("unhandledrejection",yt):Ue.onunhandledrejection=function(Wt,on){yt({detail:{reason:Wt,promise:on}})}}}}},Gn=function(Ue){return function(ot){ot.file!==Ue.toString()&&ot.method&&(ot.method=ot.method.replace(/^\s+/,""))}},yn={},_i="Bugsnag JavaScript",Ni="7.16.7",vr="https://github.com/bugsnag/bugsnag-js",pr=f({},C.schema,I),bi={_client:null,createClient:function(Ue){"string"==typeof Ue&&(Ue={apiKey:Ue}),Ue||(Ue={});var ot=[dt,wi(),_t(),rr(),nn,Pr,Ti,Ln,zn(),jn(),ur(),ar(),Rt(),ji,xr()],bt=new St(Ue,pr,ot,{name:_i,version:Ni,url:vr});return bt._setDelivery(window.XDomainRequest?An:ce),bt._logger.debug("Loaded!"),bt.leaveBreadcrumb("Bugsnag loaded",{},"state"),bt._config.autoTrackSessions?bt.startSession():bt},start:function(Ue){return bi._client?(bi._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),bi._client):(bi._client=bi.createClient(Ue),bi._client)},isStarted:function(){return null!=bi._client}};return g(["resetEventCount"].concat(d(St.prototype)),function(Ue){/^_/.test(Ue)||(bi[Ue]=function(){if(!bi._client)return console.log("Bugsnag."+Ue+"() was called before Bugsnag.start()");bi._client._depth+=1;var ot=bi._client[Ue].apply(bi._client,arguments);return bi._client._depth-=1,ot})}),(yn=bi).Client=St,yn.Event=be,yn.Session=Ge,yn.Breadcrumb=k,yn.default=bi,yn}()},25570:(Qe,G,i)=>{Qe.exports=i(94400)},28986:(Qe,G,i)=>{"use strict";i.d(G,{$f:()=>r,n2:()=>d});var n=i(7589),e=i(53888),l=i(86177),h=i(39461);const o=new n.OlP("LOCAL_STORAGE_SERVICE_CONFIG");class r{static forRoot(p={}){return{ngModule:r,providers:[{provide:o,useValue:p}]}}}r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({});const u="LOCAL_STORAGE_NOT_SUPPORTED";class d{constructor(p={}){this.isSupported=!1,this.notifyOptions={setItem:!1,removeItem:!1},this.prefix="ls",this.storageType="localStorage",this.errors=new e.L,this.removeItems=new e.L,this.setItems=new e.L,this.warnings=new e.L;let{notifyOptions:m,prefix:C,storageType:v}=p;if(null!=m){let{setItem:f,removeItem:g}=m;this.setNotify(!!f,!!g)}null!=C&&this.setPrefix(C),null!=v&&this.setStorageType(v),this.errors$=new l.y(f=>this.errors=f).pipe((0,h.B)()),this.removeItems$=new l.y(f=>this.removeItems=f).pipe((0,h.B)()),this.setItems$=new l.y(f=>this.setItems=f).pipe((0,h.B)()),this.warnings$=new l.y(f=>this.warnings=f).pipe((0,h.B)()),this.isSupported=this.checkSupport()}add(p,m){return console&&console.warn&&(console.warn("This function is deprecated."),console.warn("Use `LocalStorageService.set` instead.")),this.set(p,m)}clearAll(p){let m=this.prefix?new RegExp("^"+this.prefix):new RegExp(""),C=p?new RegExp(p):new RegExp("");if(!this.isSupported)return this.warnings.next(u),!1;let v=this.prefix.length;for(let f in this.webStorage)if(m.test(f)&&C.test(f.substr(v)))try{this.remove(f.substr(v))}catch(g){return this.errors.next(g.message),!1}return!0}deriveKey(p){return`${this.prefix}${p}`}get(p){if(!this.isSupported)return this.warnings.next(u),null;let m=this.webStorage?this.webStorage.getItem(this.deriveKey(p)):null;if(!m||"null"===m)return null;try{return JSON.parse(m)}catch(C){return null}}getStorageType(){return this.storageType}keys(){if(!this.isSupported)return this.warnings.next(u),[];let p=this.prefix.length,m=[];for(let C in this.webStorage)if(C.substr(0,p)===this.prefix)try{m.push(C.substr(p))}catch(v){return this.errors.next(v.message),[]}return m}length(){let p=0,m=this.webStorage;for(let C=0;C{this.isSupported||(this.warnings.next(u),m=!1);try{this.webStorage.removeItem(this.deriveKey(C)),this.notifyOptions.removeItem&&this.removeItems.next({key:C,storageType:this.storageType})}catch(v){this.errors.next(v.message),m=!1}}),m}set(p,m){if(m=void 0===m?null:JSON.stringify(m),!this.isSupported)return this.warnings.next(u),!1;try{this.webStorage&&this.webStorage.setItem(this.deriveKey(p),m),this.notifyOptions.setItem&&this.setItems.next({key:p,newvalue:m,storageType:this.storageType})}catch(C){return this.errors.next(C.message),!1}return!0}checkSupport(){try{let p=this.storageType in window&&null!==window[this.storageType];if(p){this.webStorage=window[this.storageType];let m=this.deriveKey(`__${Math.round(1e7*Math.random())}`);this.webStorage.setItem(m,""),this.webStorage.removeItem(m)}return p}catch(p){return this.errors.next(p.message),!1}}setPrefix(p){this.prefix=p;this.prefix&&!this.prefix.endsWith(".")&&(this.prefix=this.prefix?`${this.prefix}.`:"")}setStorageType(p){this.storageType=p}setNotify(p,m){null!=p&&(this.notifyOptions.setItem=p),null!=m&&(this.notifyOptions.removeItem=m)}}d.\u0275fac=function(p){return new(p||d)(n.LFG(o,8))},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d.ctorParameters=()=>[{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[o]}]}],d.ngInjectableDef=(0,n.Ez6)({factory:function(){return new d((0,n.f3M)(o,8))},token:d,providedIn:"root"})},42983:(Qe,G,i)=>{"use strict";i.d(G,{b:()=>m,wn:()=>g});var n=i(7589),e=i(79194),l=i(4944),h=i(18078),o=i(41389),r=i(59665),t=i(29921),u=i(52470);class d{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const c=new n.OlP("ANGULARTICS2");class p{trackLocation(M){return new e.X({url:"/"})}prepareExternalUrl(M){return M}}class m{constructor(M,I){this.tracker=M,this.pageTrack=new l.t(10),this.eventTrack=new l.t(10),this.exceptionTrack=new l.t(10),this.setAlias=new l.t(10),this.setUsername=new l.t(10),this.setUserProperties=new l.t(10),this.setUserPropertiesOnce=new l.t(10),this.setSuperProperties=new l.t(10),this.setSuperPropertiesOnce=new l.t(10),this.userTimings=new l.t(10);const D=new d;this.settings=Object.assign({},D,I.settings),this.settings.pageTracking=Object.assign({},D.pageTracking,I.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(O=>this.trackUrlChange(O.url))}filterDeveloperMode(){return(0,h.h)((M,I)=>!this.settings.developerMode)}trackUrlChange(M){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(M)){const I=this.clearUrl(M);let D;D=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+I:this.tracker.prepareExternalUrl(I),this.pageTrack.next({path:D})}}matchesExcludedRoute(M){for(const I of this.settings.pageTracking.excludedRoutes)if(I instanceof RegExp&&I.test(M)||-1!==M.indexOf(I))return!0;return!1}clearUrl(M){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?M.split("/").map(I=>this.settings.pageTracking.clearQueryParams?I.split("?")[0]:I).map(I=>this.settings.pageTracking.clearHash?I.split("#")[0]:I).filter(I=>!this.settings.pageTracking.clearIds||!I.match(this.settings.pageTracking.idsRegExp)).join("/"):M}}m.\u0275fac=function(M){return new(M||m)(n.LFG(p),n.LFG(c))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac}),m.ctorParameters=()=>[{type:p},{type:void 0,decorators:[{type:n.tBr,args:[c]}]}];class C{constructor(M,I){this.router=M,this.location=I}trackLocation(M){return this.router.events.pipe((0,h.h)(I=>I instanceof u.m2),(0,h.h)(()=>!M.developerMode),(0,o.U)(I=>({url:I.urlAfterRedirects})),(0,r.g)(0))}prepareExternalUrl(M){return this.location.prepareExternalUrl(M)}}C.\u0275fac=function(M){return new(M||C)(n.LFG(u.F0),n.LFG(t.Ye))},C.\u0275prov=n.Yz7({token:C,factory:C.\u0275fac}),C.ctorParameters=()=>[{type:u.F0},{type:t.Ye}];class v{constructor(M,I,D){this.elRef=M,this.angulartics2=I,this.renderer=D,this.angularticsProperties={}}ngAfterContentInit(){this.renderer.listen(this.elRef.nativeElement,this.angulartics2On||"click",M=>this.eventTrack(M))}eventTrack(M){const I=this.angularticsAction,D=Object.assign({},this.angularticsProperties,{eventType:M.type});this.angularticsCategory&&(D.category=this.angularticsCategory),this.angularticsLabel&&(D.label=this.angularticsLabel),this.angularticsValue&&(D.value=this.angularticsValue),this.angulartics2.eventTrack.next({action:I,properties:D})}}v.\u0275fac=function(M){return new(M||v)(n.Y36(n.SBq),n.Y36(m),n.Y36(n.Qsj))},v.\u0275dir=n.lG2({type:v,selectors:[["","angulartics2On",""]],inputs:{angularticsProperties:"angularticsProperties",angulartics2On:"angulartics2On",angularticsAction:"angularticsAction",angularticsCategory:"angularticsCategory",angularticsLabel:"angularticsLabel",angularticsValue:"angularticsValue"}}),v.\u0275prov=n.Yz7({token:v,factory:v.\u0275fac}),v.ctorParameters=()=>[{type:n.SBq},{type:m},{type:n.Qsj}],v.propDecorators={angulartics2On:[{type:n.IIB,args:["angulartics2On"]}],angularticsAction:[{type:n.IIB}],angularticsCategory:[{type:n.IIB}],angularticsLabel:[{type:n.IIB}],angularticsValue:[{type:n.IIB}],angularticsProperties:[{type:n.IIB}]};class f{}f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=n.oAB({type:f}),f.\u0275inj=n.cJS({});class g{static forRoot(M,I={}){return{ngModule:g,providers:[{provide:c,useValue:{providers:M,settings:I}},m,{provide:p,useClass:C},...M]}}}g.\u0275fac=function(M){return new(M||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[f]})},96677:(Qe,G,i)=>{"use strict";i.d(G,{_:()=>h});var n=i(7589),e=i(42983);class l{constructor(){this.userId=null}}class h{constructor(r){this.angulartics2=r,"undefined"!=typeof dataLayer&&dataLayer&&(dataLayer=window.dataLayer=window.dataLayer||[]);const t=new l;this.angulartics2.settings.gtm=Object.assign({},t,this.angulartics2.settings.gtm),this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.pageTrack(u.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.eventTrack(u.action,u.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.exceptionTrack(u)),this.angulartics2.setUsername.subscribe(u=>this.setUsername(u))}pageTrack(r){"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push({event:"Page View","content-name":r,userId:this.angulartics2.settings.gtm.userId})}eventTrack(r,t){t=t||{},"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:t.event||"interaction",target:t.category||"Event",action:r,label:t.label,value:t.value,interactionType:t.noninteraction,userId:this.angulartics2.settings.gtm.userId},t.gtmCustom))}exceptionTrack(r){r&&r.appId&&r.appName&&r.appVersion?(void 0===r.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),r.exFatal=!0),r.exDescription=r.event?r.event.stack:r.description,this.eventTrack(`Exception thrown for ${r.appName} <${r.appId}@${r.appVersion}>`,{category:"Exception",label:r.exDescription})):console.error("Must be setted appId, appName and appVersion.")}setUsername(r){this.angulartics2.settings.gtm.userId=r}}h.\u0275fac=function(r){return new(r||h)(n.LFG(e.b))},h.\u0275prov=n.Yz7({token:h,factory:h.\u0275fac}),h.ctorParameters=()=>[{type:e.b}]},56214:function(Qe){Qe.exports=function(){"use strict";function G(Le){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(He){return typeof He}:function(He){return He&&"function"==typeof Symbol&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He})(Le)}function i(Le,He){return(i=Object.setPrototypeOf||function(et,at){return et.__proto__=at,et})(Le,He)}function n(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Le){return!1}}function e(Le,He,be){return(e=n()?Reflect.construct:function(at,Ot,Nt){var Ft=[null];Ft.push.apply(Ft,Ot);var ze=new(Function.bind.apply(at,Ft));return Nt&&i(ze,Nt.prototype),ze}).apply(null,arguments)}function l(Le){return h(Le)||o(Le)||r(Le)||u()}function h(Le){if(Array.isArray(Le))return t(Le)}function o(Le){if("undefined"!=typeof Symbol&&null!=Le[Symbol.iterator]||null!=Le["@@iterator"])return Array.from(Le)}function r(Le,He){if(Le){if("string"==typeof Le)return t(Le,He);var be=Object.prototype.toString.call(Le).slice(8,-1);if("Object"===be&&Le.constructor&&(be=Le.constructor.name),"Map"===be||"Set"===be)return Array.from(Le);if("Arguments"===be||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(be))return t(Le,He)}}function t(Le,He){(null==He||He>Le.length)&&(He=Le.length);for(var be=0,et=new Array(He);be1?be-1:0),at=1;at/gm),Ht=f(/\${[\w\W]*}/gm),Tt=f(/^data-[\-\w.\u00B7-\uFFFF]/),Ae=f(/^aria-[\-\w]+$/),se=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ve=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pe=f(/^html$/i),he=function(){return"undefined"==typeof window?null:window},Y=function(He,be){if("object"!==G(He)||"function"!=typeof He.createPolicy)return null;var et=null,at="data-tt-policy-suffix";be.currentScript&&be.currentScript.hasAttribute(at)&&(et=be.currentScript.getAttribute(at));var Ot="dompurify"+(et?"#"+et:"");try{return He.createPolicy(Ot,{createHTML:function(Ft){return Ft},createScriptURL:function(Ft){return Ft}})}catch(Nt){return console.warn("TrustedTypes policy "+Ot+" could not be created."),null}};function Ee(){var Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he(),He=function(xt){return Ee(xt)};if(He.version="2.4.1",He.removed=[],!Le||!Le.document||9!==Le.document.nodeType)return He.isSupported=!1,He;var be=Le.document,et=Le.document,at=Le.DocumentFragment,Ot=Le.HTMLTemplateElement,Nt=Le.Node,Ft=Le.Element,st=Le.NodeFilter,ze=Le.NamedNodeMap,Se=void 0===ze?Le.NamedNodeMap||Le.MozNamedAttrMap:ze,Be=Le.HTMLFormElement,ft=Le.DOMParser,Oe=Le.trustedTypes,vt=Ft.prototype,Qt=re(vt,"cloneNode"),dn=re(vt,"nextSibling"),Dt=re(vt,"childNodes"),xe=re(vt,"parentNode");if("function"==typeof Ot){var me=et.createElement("template");me.content&&me.content.ownerDocument&&(et=me.content.ownerDocument)}var q=Y(Oe,be),ue=q?q.createHTML(""):"",Ge=et,Mt=Ge.implementation,It=Ge.createNodeIterator,Ze=Ge.createDocumentFragment,Xe=Ge.getElementsByTagName,St=be.importNode,qt={};try{qt=Z(et).documentMode?et.documentMode:{}}catch(Jt){}var En={};He.isSupported="function"==typeof xe&&Mt&&void 0!==Mt.createHTMLDocument&&9!==qt;var ir,ut,An=qe,Kn=Et,nt=Ht,ce=Tt,Re=Ae,De=ve,dt=te,_t=se,rn=null,Kt=H({},[].concat(l(_e),l(pe),l(Ke),l(gt),l(Ie))),fn=null,kn=H({},[].concat(l(Ve),l(ke),l(Ne),l(Pt))),Bn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Wn=null,hi=null,Vt=!0,ie=!0,Ce=!1,mt=!1,wt=!1,_n=!1,di=!1,ki=!1,Ai=!1,li=!1,wi=!0,qi=!1,rr="user-content-",Pr=!0,or=!1,Ti={},ji=null,sr=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ri=null,fr=H({},["audio","video","img","source","image","track"]),xr=null,mr=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ji="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",Qi="http://www.w3.org/1999/xhtml",nr=Qi,tr=!1,ur=null,Yr=H({},[Ji,ar,Qi],x),Wi=["application/xhtml+xml","text/html"],an="text/html",Rt=null,nn=et.createElement("form"),Ln=function(xt){return xt instanceof RegExp||xt instanceof Function},ni=function(xt){Rt&&Rt===xt||((!xt||"object"!==G(xt))&&(xt={}),xt=Z(xt),ir=ir=-1===Wi.indexOf(xt.PARSER_MEDIA_TYPE)?an:xt.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===ir?x:B,rn="ALLOWED_TAGS"in xt?H({},xt.ALLOWED_TAGS,ut):Kt,fn="ALLOWED_ATTR"in xt?H({},xt.ALLOWED_ATTR,ut):kn,ur="ALLOWED_NAMESPACES"in xt?H({},xt.ALLOWED_NAMESPACES,x):Yr,xr="ADD_URI_SAFE_ATTR"in xt?H(Z(mr),xt.ADD_URI_SAFE_ATTR,ut):mr,Ri="ADD_DATA_URI_TAGS"in xt?H(Z(fr),xt.ADD_DATA_URI_TAGS,ut):fr,ji="FORBID_CONTENTS"in xt?H({},xt.FORBID_CONTENTS,ut):sr,Wn="FORBID_TAGS"in xt?H({},xt.FORBID_TAGS,ut):{},hi="FORBID_ATTR"in xt?H({},xt.FORBID_ATTR,ut):{},Ti="USE_PROFILES"in xt&&xt.USE_PROFILES,Vt=!1!==xt.ALLOW_ARIA_ATTR,ie=!1!==xt.ALLOW_DATA_ATTR,Ce=xt.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=xt.SAFE_FOR_TEMPLATES||!1,wt=xt.WHOLE_DOCUMENT||!1,ki=xt.RETURN_DOM||!1,Ai=xt.RETURN_DOM_FRAGMENT||!1,li=xt.RETURN_TRUSTED_TYPE||!1,di=xt.FORCE_BODY||!1,wi=!1!==xt.SANITIZE_DOM,qi=xt.SANITIZE_NAMED_PROPS||!1,Pr=!1!==xt.KEEP_CONTENT,or=xt.IN_PLACE||!1,_t=xt.ALLOWED_URI_REGEXP||_t,nr=xt.NAMESPACE||Qi,xt.CUSTOM_ELEMENT_HANDLING&&Ln(xt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Bn.tagNameCheck=xt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xt.CUSTOM_ELEMENT_HANDLING&&Ln(xt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Bn.attributeNameCheck=xt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xt.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof xt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Bn.allowCustomizedBuiltInElements=xt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mt&&(ie=!1),Ai&&(ki=!0),Ti&&(rn=H({},l(Ie)),fn=[],!0===Ti.html&&(H(rn,_e),H(fn,Ve)),!0===Ti.svg&&(H(rn,pe),H(fn,ke),H(fn,Pt)),!0===Ti.svgFilters&&(H(rn,Ke),H(fn,ke),H(fn,Pt)),!0===Ti.mathMl&&(H(rn,gt),H(fn,Ne),H(fn,Pt))),xt.ADD_TAGS&&(rn===Kt&&(rn=Z(rn)),H(rn,xt.ADD_TAGS,ut)),xt.ADD_ATTR&&(fn===kn&&(fn=Z(fn)),H(fn,xt.ADD_ATTR,ut)),xt.ADD_URI_SAFE_ATTR&&H(xr,xt.ADD_URI_SAFE_ATTR,ut),xt.FORBID_CONTENTS&&(ji===sr&&(ji=Z(ji)),H(ji,xt.FORBID_CONTENTS,ut)),Pr&&(rn["#text"]=!0),wt&&H(rn,["html","head","body"]),rn.table&&(H(rn,["tbody"]),delete Wn.tbody),v&&v(xt),Rt=xt)},zn=H({},["mi","mo","mn","ms","mtext"]),ui=H({},["foreignobject","desc","title","annotation-xml"]),Zn=H({},["title","style","font","a","script"]),oi=H({},pe);H(oi,Ke),H(oi,it);var jn=H({},gt);H(jn,ct);var Gn=function(xt){var $t=xe(xt);(!$t||!$t.tagName)&&($t={namespaceURI:nr,tagName:"template"});var sn=B(xt.tagName),Mn=B($t.tagName);return!!ur[xt.namespaceURI]&&(xt.namespaceURI===ar?$t.namespaceURI===Qi?"svg"===sn:$t.namespaceURI===Ji?"svg"===sn&&("annotation-xml"===Mn||zn[Mn]):Boolean(oi[sn]):xt.namespaceURI===Ji?$t.namespaceURI===Qi?"math"===sn:$t.namespaceURI===ar?"math"===sn&&ui[Mn]:Boolean(jn[sn]):xt.namespaceURI===Qi?!($t.namespaceURI===ar&&!ui[Mn]||$t.namespaceURI===Ji&&!zn[Mn])&&!jn[sn]&&(Zn[sn]||!oi[sn]):!("application/xhtml+xml"!==ir||!ur[xt.namespaceURI]))},yn=function(xt){k(He.removed,{element:xt});try{xt.parentNode.removeChild(xt)}catch($t){try{xt.outerHTML=ue}catch(sn){xt.remove()}}},_i=function(xt,$t){try{k(He.removed,{attribute:$t.getAttributeNode(xt),from:$t})}catch(sn){k(He.removed,{attribute:null,from:$t})}if($t.removeAttribute(xt),"is"===xt&&!fn[xt])if(ki||Ai)try{yn($t)}catch(sn){}else try{$t.setAttribute(xt,"")}catch(sn){}},Ni=function(xt){var $t,sn;if(di)xt=""+xt;else{var Mn=U(xt,/^[\r\n\t ]+/);sn=Mn&&Mn[0]}"application/xhtml+xml"===ir&&nr===Qi&&(xt=''+xt+"");var ai=q?q.createHTML(xt):xt;if(nr===Qi)try{$t=(new ft).parseFromString(ai,ir)}catch(Vn){}if(!$t||!$t.documentElement){$t=Mt.createDocument(nr,"template",null);try{$t.documentElement.innerHTML=tr?"":ai}catch(Vn){}}var In=$t.body||$t.documentElement;return xt&&sn&&In.insertBefore(et.createTextNode(sn),In.childNodes[0]||null),nr===Qi?Xe.call($t,wt?"html":"body")[0]:wt?$t.documentElement:In},vr=function(xt){return It.call(xt.ownerDocument||xt,xt,st.SHOW_ELEMENT|st.SHOW_COMMENT|st.SHOW_TEXT,null,!1)},pr=function(xt){return xt instanceof Be&&("string"!=typeof xt.nodeName||"string"!=typeof xt.textContent||"function"!=typeof xt.removeChild||!(xt.attributes instanceof Se)||"function"!=typeof xt.removeAttribute||"function"!=typeof xt.setAttribute||"string"!=typeof xt.namespaceURI||"function"!=typeof xt.insertBefore||"function"!=typeof xt.hasChildNodes)},bi=function(xt){return"object"===G(Nt)?xt instanceof Nt:xt&&"object"===G(xt)&&"number"==typeof xt.nodeType&&"string"==typeof xt.nodeName},Ue=function(xt,$t,sn){!En[xt]||D(En[xt],function(Mn){Mn.call(He,$t,sn,Rt)})},ot=function(xt){var $t;if(Ue("beforeSanitizeElements",xt,null),pr(xt)||T(/[\u0080-\uFFFF]/,xt.nodeName))return yn(xt),!0;var sn=ut(xt.nodeName);if(Ue("uponSanitizeElement",xt,{tagName:sn,allowedTags:rn}),xt.hasChildNodes()&&!bi(xt.firstElementChild)&&(!bi(xt.content)||!bi(xt.content.firstElementChild))&&T(/<[/\w]/g,xt.innerHTML)&&T(/<[/\w]/g,xt.textContent)||"select"===sn&&T(/