/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.104 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ var Txe=Object.create;var EX=Object.defineProperty;var Exe=Object.getOwnPropertyDescriptor;var bxe=Object.getOwnPropertyNames;var Sxe=Object.getPrototypeOf,vxe=Object.prototype.hasOwnProperty;var ZI=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var kc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wxe=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bxe(t))!vxe.call(e,o)&&o!==n&&EX(e,o,{get:()=>t[o],enumerable:!(i=Exe(t,o))||i.enumerable});return e};var ur=(e,t,n)=>(n=e!=null?Txe(Sxe(e)):{},wxe(t||!e||!e.__esModule?EX(n,"default",{value:e,enumerable:!0}):n,e));var QI=kc((b0t,SX)=>{var Ah=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Ah.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Ah.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Ah.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Ah.prototype.random_int31=function(){return this.random_int()>>>1};Ah.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Ah.prototype.random=function(){return this.random_int()*(1/4294967296)};Ah.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Ah.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};SX.exports=Ah});var sK=kc((Sx,vx)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(e){var t=typeof Sx=="object"&&Sx&&!Sx.nodeType&&Sx,n=typeof vx=="object"&&vx&&!vx.nodeType&&vx,i=typeof global=="object"&&global;(i.global===i||i.window===i||i.self===i)&&(e=i);var o,r=2147483647,s=36,a=1,c=26,l=38,f=700,d=72,p=128,g="-",h=/^xn--/,A=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,C={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=s-a,E=Math.floor,S=String.fromCharCode,w;function D(V){throw new RangeError(C[V])}function M(V,G){for(var U=V.length,q=[];U--;)q[U]=G(V[U]);return q}function O(V,G){var U=V.split("@"),q="";U.length>1&&(q=U[0]+"@",V=U[1]),V=V.replace(x,".");var Y=V.split("."),Q=M(Y,G).join(".");return q+Q}function L(V){for(var G=[],U=0,q=V.length,Y,Q;U=55296&&Y<=56319&&U65535&&(G-=65536,U+=S(G>>>10&1023|55296),G=56320|G&1023),U+=S(G),U}).join("")}function _(V){return V-48<10?V-22:V-65<26?V-65:V-97<26?V-97:s}function b(V,G){return V+22+75*(V<26)-((G!=0)<<5)}function v(V,G,U){var q=0;for(V=U?E(V/f):V>>1,V+=E(V/G);V>T*c>>1;q+=s)V=E(V/T);return E(q+(T+1)*V/(V+l))}function I(V){var G=[],U=V.length,q,Y=0,Q=p,W=d,K,J,ge,Ce,se,xe,me,ve,Pe;for(K=V.lastIndexOf(g),K<0&&(K=0),J=0;J=128&&D("not-basic"),G.push(V.charCodeAt(J));for(ge=K>0?K+1:0;ge=U&&D("invalid-input"),me=_(V.charCodeAt(ge++)),(me>=s||me>E((r-Y)/se))&&D("overflow"),Y+=me*se,ve=xe<=W?a:xe>=W+c?c:xe-W,!(meE(r/Pe)&&D("overflow"),se*=Pe;q=G.length+1,W=v(Y-Ce,q,Ce==0),E(Y/q)>r-Q&&D("overflow"),Q+=E(Y/q),Y%=q,G.splice(Y++,0,Q)}return N(G)}function R(V){var G,U,q,Y,Q,W,K,J,ge,Ce,se,xe=[],me,ve,Pe,Ue;for(V=L(V),me=V.length,G=p,U=0,Q=d,W=0;W=G&&seE((r-U)/ve)&&D("overflow"),U+=(K-G)*ve,G=K,W=0;Wr&&D("overflow"),se==G){for(J=U,ge=s;Ce=ge<=Q?a:ge>=Q+c?c:ge-Q,!(J{/*! * URI.js - Mutating URLs * IPv6 Support * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof xP=="object"&&xP.exports?xP.exports=t():typeof define=="function"&&define.amd?define(t):e.IPv6=t(e)})(aK,function(e){"use strict";var t=e&&e.IPv6;function n(o){var r=o.toLowerCase(),s=r.split(":"),a=s.length,c=8;s[0]===""&&s[1]===""&&s[2]===""?(s.shift(),s.shift()):s[0]===""&&s[1]===""?s.shift():s[a-1]===""&&s[a-2]===""&&s.pop(),a=s.length,s[a-1].indexOf(".")!==-1&&(c=7);var l;for(l=0;l1);p++)f.splice(0,1);s[d]=f.join("")}var g=-1,h=0,A=0,x=-1,C=!1;for(d=0;dh&&(g=x,h=A)):s[d]==="0"&&(C=!0,x=d,A=1);A>h&&(g=x,h=A),h>1&&s.splice(g,h,""),a=s.length;var T="";for(s[0]===""&&(T=":"),d=0;d{/*! * URI.js - Mutating URLs * Second Level Domain (SLD) Support * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof CP=="object"&&CP.exports?CP.exports=t():typeof define=="function"&&define.amd?define(t):e.SecondLevelDomains=t(e)})(lK,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return!1;var r=i.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return!1;var s=n.list[i.slice(o+1)];return s?s.indexOf(" "+i.slice(r+1,o)+" ")>=0:!1},is:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return!1;var r=i.lastIndexOf(".",o-1);if(r>=0)return!1;var s=n.list[i.slice(o+1)];return s?s.indexOf(" "+i.slice(0,o)+" ")>=0:!1},get:function(i){var o=i.lastIndexOf(".");if(o<=0||o>=i.length-1)return null;var r=i.lastIndexOf(".",o-1);if(r<=0||r>=o-1)return null;var s=n.list[i.slice(o+1)];return!s||s.indexOf(" "+i.slice(r+1,o)+" ")<0?null:i.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})});var Il=kc((fK,TP)=>{/*! * URI.js - Mutating URLs * * Version: 1.19.11 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */(function(e,t){"use strict";typeof TP=="object"&&TP.exports?TP.exports=t(sK(),cK(),uK()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(fK,function(e,t,n,i){"use strict";var o=i&&i.URI;function r(b,v){var I=arguments.length>=1,R=arguments.length>=2;if(!(this instanceof r))return I?R?new r(b,v):new r(b):new r;if(b===void 0){if(I)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?b=location.href+"":b=""}if(b===null&&I)throw new TypeError("null is not a valid argument for URI");return this.href(b),v!==void 0?this.absoluteTo(v):this}function s(b){return/^[0-9]+$/.test(b)}r.version="1.19.11";var a=r.prototype,c=Object.prototype.hasOwnProperty;function l(b){return b.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(b){return b===void 0?"Undefined":String(Object.prototype.toString.call(b)).slice(8,-1)}function d(b){return f(b)==="Array"}function p(b,v){var I={},R,F;if(f(v)==="RegExp")I=null;else if(d(v))for(R=0,F=v.length;R]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,r.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},r.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,r.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},r.hostProtocols=["http","https"],r.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,r.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},r.getDomAttribute=function(b){if(!(!b||!b.nodeName)){var v=b.nodeName.toLowerCase();if(!(v==="input"&&b.type!=="image"))return r.domAttributes[v]}};function x(b){return escape(b)}function C(b){return encodeURIComponent(b).replace(/[!'()*]/g,x).replace(/\*/g,"%2A")}r.encode=C,r.decode=decodeURIComponent,r.iso8859=function(){r.encode=escape,r.decode=unescape},r.unicode=function(){r.encode=C,r.decode=decodeURIComponent},r.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},r.encodeQuery=function(b,v){var I=r.encode(b+"");return v===void 0&&(v=r.escapeQuerySpace),v?I.replace(/%20/g,"+"):I},r.decodeQuery=function(b,v){b+="",v===void 0&&(v=r.escapeQuerySpace);try{return r.decode(v?b.replace(/\+/g,"%20"):b)}catch{return b}};var T={encode:"encode",decode:"decode"},E,S=function(b,v){return function(I){try{return r[v](I+"").replace(r.characters[b][v].expression,function(R){return r.characters[b][v].map[R]})}catch{return I}}};for(E in T)r[E+"PathSegment"]=S("pathname",T[E]),r[E+"UrnPathSegment"]=S("urnpath",T[E]);var w=function(b,v,I){return function(R){var F;I?F=function(U){return r[v](r[I](U))}:F=r[v];for(var k=(R+"").split(b),V=0,G=k.length;V-1&&(v.fragment=b.substring(I+1)||null,b=b.substring(0,I)),I=b.indexOf("?"),I>-1&&(v.query=b.substring(I+1)||null,b=b.substring(0,I)),b=b.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),b=b.replace(/^[/\\]{2,}/i,"//"),b.substring(0,2)==="//"?(v.protocol=null,b=b.substring(2),b=r.parseAuthority(b,v)):(I=b.indexOf(":"),I>-1&&(v.protocol=b.substring(0,I)||null,v.protocol&&!v.protocol.match(r.protocol_expression)?v.protocol=void 0:b.substring(I+1,I+3).replace(/\\/g,"/")==="//"?(b=b.substring(I+3),b=r.parseAuthority(b,v)):(b=b.substring(I+1),v.urn=!0))),v.path=b,v},r.parseHost=function(b,v){b||(b=""),b=b.replace(/\\/g,"/");var I=b.indexOf("/"),R,F;if(I===-1&&(I=b.length),b.charAt(0)==="[")R=b.indexOf("]"),v.hostname=b.substring(1,R)||null,v.port=b.substring(R+2,I)||null,v.port==="/"&&(v.port=null);else{var k=b.indexOf(":"),V=b.indexOf("/"),G=b.indexOf(":",k+1);G!==-1&&(V===-1||G-1?F:b.length-1),V;return k>-1&&(F===-1||k-1?W=W.slice(0,K)+W.slice(K).replace(k,""):W=W.replace(k,""),!(W.length<=U[0].length)&&!(I.ignore&&I.ignore.test(W))){Q=q+W.length;var Ce=v(W,q,Q,b);if(Ce===void 0){R.lastIndex=Q;continue}Ce=String(Ce),b=b.slice(0,q)+Ce+b.slice(Q),R.lastIndex=q+Ce.length}}return R.lastIndex=0,b},r.ensureValidHostname=function(b,v){var I=!!b,R=!!v,F=!1;if(R&&(F=g(r.hostProtocols,v)),F&&!I)throw new TypeError("Hostname cannot be empty, if protocol is "+v);if(b&&b.match(r.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(b).match(r.invalid_hostname_characters))throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-:_]')}},r.ensureValidPort=function(b){if(b){var v=Number(b);if(!(s(v)&&v>0&&v<65536))throw new TypeError('Port "'+b+'" is not a valid port')}},r.noConflict=function(b){if(b){var v={URI:this.noConflict()};return i.URITemplate&&typeof i.URITemplate.noConflict=="function"&&(v.URITemplate=i.URITemplate.noConflict()),i.IPv6&&typeof i.IPv6.noConflict=="function"&&(v.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&typeof i.SecondLevelDomains.noConflict=="function"&&(v.SecondLevelDomains=i.SecondLevelDomains.noConflict()),v}else i.URI===this&&(i.URI=o);return this},a.build=function(b){return b===!0?this._deferred_build=!0:(b===void 0||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new r(this)},a.valueOf=a.toString=function(){return this.build(!1)._string};function D(b){return function(v,I){return v===void 0?this._parts[b]||"":(this._parts[b]=v||null,this.build(!I),this)}}function M(b,v){return function(I,R){return I===void 0?this._parts[b]||"":(I!==null&&(I=I+"",I.charAt(0)===v&&(I=I.substring(1))),this._parts[b]=I,this.build(!R),this)}}a.protocol=D("protocol"),a.username=D("username"),a.password=D("password"),a.hostname=D("hostname"),a.port=D("port"),a.query=M("query","?"),a.fragment=M("fragment","#"),a.search=function(b,v){var I=this.query(b,v);return typeof I=="string"&&I.length?"?"+I:I},a.hash=function(b,v){var I=this.fragment(b,v);return typeof I=="string"&&I.length?"#"+I:I},a.pathname=function(b,v){if(b===void 0||b===!0){var I=this._parts.path||(this._parts.hostname?"/":"");return b?(this._parts.urn?r.decodeUrnPath:r.decodePath)(I):I}else return this._parts.urn?this._parts.path=b?r.recodeUrnPath(b):"":this._parts.path=b?r.recodePath(b):"/",this.build(!v),this},a.path=a.pathname,a.href=function(b,v){var I;if(b===void 0)return this.toString();this._string="",this._parts=r._parts();var R=b instanceof r,F=typeof b=="object"&&(b.hostname||b.path||b.pathname);if(b.nodeName){var k=r.getDomAttribute(b);b=b[k]||"",F=!1}if(!R&&F&&b.pathname!==void 0&&(b=b.toString()),typeof b=="string"||b instanceof String)this._parts=r.parse(String(b),this._parts);else if(R||F){var V=R?b._parts:b;for(I in V)I!=="query"&&c.call(this._parts,I)&&(this._parts[I]=V[I]);V.query&&this.query(V.query,!1)}else throw new TypeError("invalid input");return this.build(!v),this},a.is=function(b){var v=!1,I=!1,R=!1,F=!1,k=!1,V=!1,G=!1,U=!this._parts.urn;switch(this._parts.hostname&&(U=!1,I=r.ip4_expression.test(this._parts.hostname),R=r.ip6_expression.test(this._parts.hostname),v=I||R,F=!v,k=F&&n&&n.has(this._parts.hostname),V=F&&r.idn_expression.test(this._parts.hostname),G=F&&r.punycode_expression.test(this._parts.hostname)),b.toLowerCase()){case"relative":return U;case"absolute":return!U;case"domain":case"name":return F;case"sld":return k;case"ip":return v;case"ip4":case"ipv4":case"inet4":return I;case"ip6":case"ipv6":case"inet6":return R;case"idn":return V;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return G}return null};var O=a.protocol,L=a.port,N=a.hostname;a.protocol=function(b,v){if(b&&(b=b.replace(/:(\/\/)?$/,""),!b.match(r.protocol_expression)))throw new TypeError('Protocol "'+b+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return O.call(this,b,v)},a.scheme=a.protocol,a.port=function(b,v){return this._parts.urn?b===void 0?"":this:(b!==void 0&&(b===0&&(b=null),b&&(b+="",b.charAt(0)===":"&&(b=b.substring(1)),r.ensureValidPort(b))),L.call(this,b,v))},a.hostname=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b!==void 0){var I={preventInvalidHostname:this._parts.preventInvalidHostname},R=r.parseHost(b,I);if(R!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');b=I.hostname,this._parts.preventInvalidHostname&&r.ensureValidHostname(b,this._parts.protocol)}return N.call(this,b,v)},a.origin=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){var I=this.protocol(),R=this.authority();return R?(I?I+"://":"")+this.authority():""}else{var F=r(b);return this.protocol(F.protocol()).authority(F.authority()).build(!v),this}},a.host=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0)return this._parts.hostname?r.buildHost(this._parts):"";var I=r.parseHost(b,this._parts);if(I!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},a.authority=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0)return this._parts.hostname?r.buildAuthority(this._parts):"";var I=r.parseAuthority(b,this._parts);if(I!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},a.userinfo=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){var I=r.buildUserinfo(this._parts);return I&&I.substring(0,I.length-1)}else return b[b.length-1]!=="@"&&(b+="@"),r.parseUserinfo(b,this._parts),this.build(!v),this},a.resource=function(b,v){var I;return b===void 0?this.path()+this.search()+this.hash():(I=r.parse(b),this._parts.path=I.path,this._parts.query=I.query,this._parts.fragment=I.fragment,this.build(!v),this)},a.subdomain=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var I=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,I)||""}else{var R=this._parts.hostname.length-this.domain().length,F=this._parts.hostname.substring(0,R),k=new RegExp("^"+l(F));if(b&&b.charAt(b.length-1)!=="."&&(b+="."),b.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return b&&r.ensureValidHostname(b,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,b),this.build(!v),this}},a.domain=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(typeof b=="boolean"&&(v=b,b=void 0),b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var I=this._parts.hostname.match(/\./g);if(I&&I.length<2)return this._parts.hostname;var R=this._parts.hostname.length-this.tld(v).length-1;return R=this._parts.hostname.lastIndexOf(".",R-1)+1,this._parts.hostname.substring(R)||""}else{if(!b)throw new TypeError("cannot set domain empty");if(b.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(r.ensureValidHostname(b,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=b;else{var F=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(F,b)}return this.build(!v),this}},a.tld=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(typeof b=="boolean"&&(v=b,b=void 0),b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var I=this._parts.hostname.lastIndexOf("."),R=this._parts.hostname.substring(I+1);return v!==!0&&n&&n.list[R.toLowerCase()]&&n.get(this._parts.hostname)||R}else{var F;if(b)if(b.match(/[^a-zA-Z0-9-]/))if(n&&n.is(b))F=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(F,b);else throw new TypeError('TLD "'+b+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");F=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(F,b)}else throw new TypeError("cannot set TLD empty");return this.build(!v),this}},a.directory=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0||b===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var I=this._parts.path.length-this.filename().length-1,R=this._parts.path.substring(0,I)||(this._parts.hostname?"/":"");return b?r.decodePath(R):R}else{var F=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,F),V=new RegExp("^"+l(k));return this.is("relative")||(b||(b="/"),b.charAt(0)!=="/"&&(b="/"+b)),b&&b.charAt(b.length-1)!=="/"&&(b+="/"),b=r.recodePath(b),this._parts.path=this._parts.path.replace(V,b),this.build(!v),this}},a.filename=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(typeof b!="string"){if(!this._parts.path||this._parts.path==="/")return"";var I=this._parts.path.lastIndexOf("/"),R=this._parts.path.substring(I+1);return b?r.decodePathSegment(R):R}else{var F=!1;b.charAt(0)==="/"&&(b=b.substring(1)),b.match(/\.?\//)&&(F=!0);var k=new RegExp(l(this.filename())+"$");return b=r.recodePath(b),this._parts.path=this._parts.path.replace(k,b),F?this.normalizePath(v):this.build(!v),this}},a.suffix=function(b,v){if(this._parts.urn)return b===void 0?"":this;if(b===void 0||b===!0){if(!this._parts.path||this._parts.path==="/")return"";var I=this.filename(),R=I.lastIndexOf("."),F,k;return R===-1?"":(F=I.substring(R+1),k=/^[a-z0-9%]+$/i.test(F)?F:"",b?r.decodePathSegment(k):k)}else{b.charAt(0)==="."&&(b=b.substring(1));var V=this.suffix(),G;if(V)b?G=new RegExp(l(V)+"$"):G=new RegExp(l("."+V)+"$");else{if(!b)return this;this._parts.path+="."+r.recodePath(b)}return G&&(b=r.recodePath(b),this._parts.path=this._parts.path.replace(G,b)),this.build(!v),this}},a.segment=function(b,v,I){var R=this._parts.urn?":":"/",F=this.path(),k=F.substring(0,1)==="/",V=F.split(R);if(b!==void 0&&typeof b!="number"&&(I=v,v=b,b=void 0),b!==void 0&&typeof b!="number")throw new Error('Bad segment "'+b+'", must be 0-based integer');if(k&&V.shift(),b<0&&(b=Math.max(V.length+b,0)),v===void 0)return b===void 0?V:V[b];if(b===null||V[b]===void 0)if(d(v)){V=[];for(var G=0,U=v.length;G{/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */(function(e,t){typeof W8=="object"&&typeof j8<"u"?j8.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(W8,function(){"use strict";function e(pe){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(be){return typeof be}:function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},e(pe)}function t(pe,be){return t=Object.setPrototypeOf||function(Kt,Xn){return Kt.__proto__=Xn,Kt},t(pe,be)}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(pe,be,wt){return n()?i=Reflect.construct:i=function(Xn,Io,Vo){var Co=[null];Co.push.apply(Co,Io);var jr=Function.bind.apply(Xn,Co),Be=new jr;return Vo&&t(Be,Vo.prototype),Be},i.apply(null,arguments)}function o(pe){return r(pe)||s(pe)||a(pe)||l()}function r(pe){if(Array.isArray(pe))return c(pe)}function s(pe){if(typeof Symbol<"u"&&pe[Symbol.iterator]!=null||pe["@@iterator"]!=null)return Array.from(pe)}function a(pe,be){if(pe){if(typeof pe=="string")return c(pe,be);var wt=Object.prototype.toString.call(pe).slice(8,-1);if(wt==="Object"&&pe.constructor&&(wt=pe.constructor.name),wt==="Map"||wt==="Set")return Array.from(pe);if(wt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(wt))return c(pe,be)}}function c(pe,be){(be==null||be>pe.length)&&(be=pe.length);for(var wt=0,Kt=new Array(be);wt1?wt-1:0),Xn=1;Xn/gm),Ue=x(/\${[\w\W]*}/gm),Xe=x(/^data-[\-\w.\u00B7-\uFFFF]/),ht=x(/^aria-[\-\w]+$/),Ht=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=x(/^(?:\w+script|data):/i),mt=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xn=x(/^html$/i),Zn=function(){return typeof window>"u"?null:window},Wt=function(be,wt){if(e(be)!=="object"||typeof be.createPolicy!="function")return null;var Kt=null,Xn="data-tt-policy-suffix";wt.currentScript&&wt.currentScript.hasAttribute(Xn)&&(Kt=wt.currentScript.getAttribute(Xn));var Io="dompurify"+(Kt?"#"+Kt:"");try{return be.createPolicy(Io,{createHTML:function(Co){return Co},createScriptURL:function(Co){return Co}})}catch{return console.warn("TrustedTypes policy "+Io+" could not be created."),null}};function Qe(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zn(),be=function(we){return Qe(we)};if(be.version="2.4.5",be.removed=[],!pe||!pe.document||pe.document.nodeType!==9)return be.isSupported=!1,be;var wt=pe.document,Kt=pe.document,Xn=pe.DocumentFragment,Io=pe.HTMLTemplateElement,Vo=pe.Node,Co=pe.Element,jr=pe.NodeFilter,Be=pe.NamedNodeMap,ot=Be===void 0?pe.NamedNodeMap||pe.MozNamedAttrMap:Be,Je=pe.HTMLFormElement,Ze=pe.DOMParser,ut=pe.trustedTypes,Nt=Co.prototype,Cn=U(Nt,"cloneNode"),ro=U(Nt,"nextSibling"),bo=U(Nt,"childNodes"),es=U(Nt,"parentNode");if(typeof Io=="function"){var Or=Kt.createElement("template");Or.content&&Or.content.ownerDocument&&(Kt=Or.content.ownerDocument)}var zi=Wt(ut,wt),Di=zi?zi.createHTML(""):"",yr=Kt,Ln=yr.implementation,Hn=yr.createNodeIterator,Kn=yr.createDocumentFragment,ei=yr.getElementsByTagName,oc=wt.importNode,So={};try{So=G(Kt).documentMode?Kt.documentMode:{}}catch{}var Po={};be.isSupported=typeof es=="function"&&Ln&&typeof Ln.createHTMLDocument<"u"&&So!==9;var Df=ve,er=Pe,Ta=Ue,Wd=Xe,Qp=ht,Ea=un,jd=mt,Ly=Ht,tr=null,rc=V({},[].concat(o(q),o(Y),o(Q),o(K),o(ge))),Mr=null,WI=V({},[].concat(o(Ce),o(se),o(xe),o(me))),Rr=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}})),Ub=null,MH=null,oX=!0,RH=!0,rX=!1,sX=!0,fx=!1,Ny=!1,BH=!1,LH=!1,dx=!1,jI=!1,YI=!1,aX=!0,cX=!1,mxe="user-content-",NH=!0,Vb=!1,mx={},hx=null,lX=V({},["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"]),uX=null,fX=V({},["audio","video","img","source","image","track"]),FH=null,dX=V({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qI="http://www.w3.org/1998/Math/MathML",XI="http://www.w3.org/2000/svg",_h="http://www.w3.org/1999/xhtml",px=_h,UH=!1,VH=null,hxe=V({},[qI,XI,_h],L),Fy,pxe=["application/xhtml+xml","text/html"],_xe="text/html",Is,_x=null,gxe=Kt.createElement("form"),mX=function(we){return we instanceof RegExp||we instanceof Function},kH=function(we){_x&&_x===we||((!we||e(we)!=="object")&&(we={}),we=G(we),Fy=pxe.indexOf(we.PARSER_MEDIA_TYPE)===-1?Fy=_xe:Fy=we.PARSER_MEDIA_TYPE,Is=Fy==="application/xhtml+xml"?L:O,tr="ALLOWED_TAGS"in we?V({},we.ALLOWED_TAGS,Is):rc,Mr="ALLOWED_ATTR"in we?V({},we.ALLOWED_ATTR,Is):WI,VH="ALLOWED_NAMESPACES"in we?V({},we.ALLOWED_NAMESPACES,L):hxe,FH="ADD_URI_SAFE_ATTR"in we?V(G(dX),we.ADD_URI_SAFE_ATTR,Is):dX,uX="ADD_DATA_URI_TAGS"in we?V(G(fX),we.ADD_DATA_URI_TAGS,Is):fX,hx="FORBID_CONTENTS"in we?V({},we.FORBID_CONTENTS,Is):lX,Ub="FORBID_TAGS"in we?V({},we.FORBID_TAGS,Is):{},MH="FORBID_ATTR"in we?V({},we.FORBID_ATTR,Is):{},mx="USE_PROFILES"in we?we.USE_PROFILES:!1,oX=we.ALLOW_ARIA_ATTR!==!1,RH=we.ALLOW_DATA_ATTR!==!1,rX=we.ALLOW_UNKNOWN_PROTOCOLS||!1,sX=we.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fx=we.SAFE_FOR_TEMPLATES||!1,Ny=we.WHOLE_DOCUMENT||!1,dx=we.RETURN_DOM||!1,jI=we.RETURN_DOM_FRAGMENT||!1,YI=we.RETURN_TRUSTED_TYPE||!1,LH=we.FORCE_BODY||!1,aX=we.SANITIZE_DOM!==!1,cX=we.SANITIZE_NAMED_PROPS||!1,NH=we.KEEP_CONTENT!==!1,Vb=we.IN_PLACE||!1,Ly=we.ALLOWED_URI_REGEXP||Ly,px=we.NAMESPACE||_h,Rr=we.CUSTOM_ELEMENT_HANDLING||{},we.CUSTOM_ELEMENT_HANDLING&&mX(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Rr.tagNameCheck=we.CUSTOM_ELEMENT_HANDLING.tagNameCheck),we.CUSTOM_ELEMENT_HANDLING&&mX(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Rr.attributeNameCheck=we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),we.CUSTOM_ELEMENT_HANDLING&&typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Rr.allowCustomizedBuiltInElements=we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fx&&(RH=!1),jI&&(dx=!0),mx&&(tr=V({},o(ge)),Mr=[],mx.html===!0&&(V(tr,q),V(Mr,Ce)),mx.svg===!0&&(V(tr,Y),V(Mr,se),V(Mr,me)),mx.svgFilters===!0&&(V(tr,Q),V(Mr,se),V(Mr,me)),mx.mathMl===!0&&(V(tr,K),V(Mr,xe),V(Mr,me))),we.ADD_TAGS&&(tr===rc&&(tr=G(tr)),V(tr,we.ADD_TAGS,Is)),we.ADD_ATTR&&(Mr===WI&&(Mr=G(Mr)),V(Mr,we.ADD_ATTR,Is)),we.ADD_URI_SAFE_ATTR&&V(FH,we.ADD_URI_SAFE_ATTR,Is),we.FORBID_CONTENTS&&(hx===lX&&(hx=G(hx)),V(hx,we.FORBID_CONTENTS,Is)),NH&&(tr["#text"]=!0),Ny&&V(tr,["html","head","body"]),tr.table&&(V(tr,["tbody"]),delete Ub.tbody),A&&A(we),_x=we)},hX=V({},["mi","mo","mn","ms","mtext"]),pX=V({},["foreignobject","desc","title","annotation-xml"]),yxe=V({},["title","style","font","a","script"]),KI=V({},Y);V(KI,Q),V(KI,W);var zH=V({},K);V(zH,J);var Axe=function(we){var At=es(we);(!At||!At.tagName)&&(At={namespaceURI:px,tagName:"template"});var Yt=O(we.tagName),so=O(At.tagName);return VH[we.namespaceURI]?we.namespaceURI===XI?At.namespaceURI===_h?Yt==="svg":At.namespaceURI===qI?Yt==="svg"&&(so==="annotation-xml"||hX[so]):!!KI[Yt]:we.namespaceURI===qI?At.namespaceURI===_h?Yt==="math":At.namespaceURI===XI?Yt==="math"&&pX[so]:!!zH[Yt]:we.namespaceURI===_h?At.namespaceURI===XI&&!pX[so]||At.namespaceURI===qI&&!hX[so]?!1:!zH[Yt]&&(yxe[Yt]||!KI[Yt]):!!(Fy==="application/xhtml+xml"&&VH[we.namespaceURI]):!1},gh=function(we){M(be.removed,{element:we});try{we.parentNode.removeChild(we)}catch{try{we.outerHTML=Di}catch{we.remove()}}},HH=function(we,At){try{M(be.removed,{attribute:At.getAttributeNode(we),from:At})}catch{M(be.removed,{attribute:null,from:At})}if(At.removeAttribute(we),we==="is"&&!Mr[we])if(dx||jI)try{gh(At)}catch{}else try{At.setAttribute(we,"")}catch{}},_X=function(we){var At,Yt;if(LH)we=""+we;else{var so=N(we,/^[\r\n\t ]+/);Yt=so&&so[0]}Fy==="application/xhtml+xml"&&px===_h&&(we=''+we+"");var Vc=zi?zi.createHTML(we):we;if(px===_h)try{At=new Ze().parseFromString(Vc,Fy)}catch{}if(!At||!At.documentElement){At=Ln.createDocument(px,"template",null);try{At.documentElement.innerHTML=UH?Di:Vc}catch{}}var ba=At.body||At.documentElement;return we&&Yt&&ba.insertBefore(Kt.createTextNode(Yt),ba.childNodes[0]||null),px===_h?ei.call(At,Ny?"html":"body")[0]:Ny?At.documentElement:ba},gX=function(we){return Hn.call(we.ownerDocument||we,we,jr.SHOW_ELEMENT|jr.SHOW_COMMENT|jr.SHOW_TEXT,null,!1)},xxe=function(we){return we instanceof Je&&(typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof ot)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"||typeof we.hasChildNodes!="function")},kb=function(we){return e(Vo)==="object"?we instanceof Vo:we&&e(we)==="object"&&typeof we.nodeType=="number"&&typeof we.nodeName=="string"},yh=function(we,At,Yt){Po[we]&&w(Po[we],function(so){so.call(be,At,Yt,_x)})},yX=function(we){var At;if(yh("beforeSanitizeElements",we,null),xxe(we)||I(/[\u0080-\uFFFF]/,we.nodeName))return gh(we),!0;var Yt=Is(we.nodeName);if(yh("uponSanitizeElement",we,{tagName:Yt,allowedTags:tr}),we.hasChildNodes()&&!kb(we.firstElementChild)&&(!kb(we.content)||!kb(we.content.firstElementChild))&&I(/<[/\w]/g,we.innerHTML)&&I(/<[/\w]/g,we.textContent)||Yt==="select"&&I(/