/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.99 * * 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 jye=Object.create;var rP=Object.defineProperty;var qye=Object.getOwnPropertyDescriptor;var Yye=Object.getOwnPropertyNames;var Xye=Object.getPrototypeOf,Kye=Object.prototype.hasOwnProperty;var On=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jye=(e,t)=>{for(var n in t)rP(e,n,{get:t[n],enumerable:!0})},lY=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yye(t))!Kye.call(e,o)&&o!==n&&rP(e,o,{get:()=>t[o],enumerable:!(i=qye(t,o))||i.enumerable});return e};var Ci=(e,t,n)=>(n=e!=null?jye(Xye(e)):{},lY(t||!e||!e.__esModule?rP(n,"default",{value:e,enumerable:!0}):n,e)),Zye=e=>lY(rP({},"__esModule",{value:!0}),e);var sP=On((cgt,fY)=>{var $h=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)};$h.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}};$h.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};$h.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};$h.prototype.random_int31=function(){return this.random_int()>>>1};$h.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};$h.prototype.random=function(){return this.random_int()*(1/4294967296)};$h.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};$h.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};fY.exports=$h});var OX=On((KA,JA)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(e){var t=typeof KA=="object"&&KA&&!KA.nodeType&&KA,n=typeof JA=="object"&&JA&&!JA.nodeType&&JA,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="-",m=/^xn--/,A=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=s-a,T=Math.floor,S=String.fromCharCode,w;function v(V){throw new RangeError(x[V])}function I(V,H){for(var k=V.length,Y=[];k--;)Y[k]=H(V[k]);return Y}function B(V,H){var k=V.split("@"),Y="";k.length>1&&(Y=k[0]+"@",V=k[1]),V=V.replace(C,".");var q=V.split("."),X=I(q,H).join(".");return Y+X}function M(V){for(var H=[],k=0,Y=V.length,q,X;k=55296&&q<=56319&&k65535&&(H-=65536,k+=S(H>>>10&1023|55296),H=56320|H&1023),k+=S(H),k}).join("")}function _(V){return V-48<10?V-22:V-65<26?V-65:V-97<26?V-97:s}function b(V,H){return V+22+75*(V<26)-((H!=0)<<5)}function D(V,H,k){var Y=0;for(V=k?T(V/f):V>>1,V+=T(V/H);V>E*c>>1;Y+=s)V=T(V/E);return T(Y+(E+1)*V/(V+l))}function P(V){var H=[],k=V.length,Y,q=0,X=p,W=d,K,Z,he,pe,oe,ue,_e,xe,Pe;for(K=V.lastIndexOf(g),K<0&&(K=0),Z=0;Z=128&&v("not-basic"),H.push(V.charCodeAt(Z));for(he=K>0?K+1:0;he=k&&v("invalid-input"),_e=_(V.charCodeAt(he++)),(_e>=s||_e>T((r-q)/oe))&&v("overflow"),q+=_e*oe,xe=ue<=W?a:ue>=W+c?c:ue-W,!(_eT(r/Pe)&&v("overflow"),oe*=Pe;Y=H.length+1,W=D(q-pe,Y,pe==0),T(q/Y)>r-X&&v("overflow"),X+=T(q/Y),q%=Y,H.splice(q++,0,X)}return L(H)}function O(V){var H,k,Y,q,X,W,K,Z,he,pe,oe,ue=[],_e,xe,Pe,Fe;for(V=M(V),_e=V.length,H=p,k=0,X=d,W=0;W<_e;++W)oe=V[W],oe<128&&ue.push(S(oe));for(Y=q=ue.length,q&&ue.push(g);Y<_e;){for(K=r,W=0;W<_e;++W)oe=V[W],oe>=H&&oeT((r-k)/xe)&&v("overflow"),k+=(K-H)*xe,H=K,W=0;W<_e;++W)if(oe=V[W],oer&&v("overflow"),oe==H){for(Z=k,he=s;pe=he<=X?a:he>=X+c?c:he-X,!(Z{/*! * 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 FP=="object"&&FP.exports?FP.exports=t():typeof define=="function"&&define.amd?define(t):e.IPv6=t(e)})(BX,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,m=0,A=0,C=-1,x=!1;for(d=0;dm&&(g=C,m=A)):s[d]==="0"&&(x=!0,C=d,A=1);A>m&&(g=C,m=A),m>1&&s.splice(g,m,""),a=s.length;var E="";for(s[0]===""&&(E=":"),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 NP=="object"&&NP.exports?NP.exports=t():typeof define=="function"&&define.amd?define(t):e.SecondLevelDomains=t(e)})(MX,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 ml=On((FX,kP)=>{/*! * 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 kP=="object"&&kP.exports?kP.exports=t(OX(),RX(),LX()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(FX,function(e,t,n,i){"use strict";var o=i&&i.URI;function r(b,D){var P=arguments.length>=1,O=arguments.length>=2;if(!(this instanceof r))return P?O?new r(b,D):new r(b):new r;if(b===void 0){if(P)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?b=location.href+"":b=""}if(b===null&&P)throw new TypeError("null is not a valid argument for URI");return this.href(b),D!==void 0?this.absoluteTo(D):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,D){var P={},O,F;if(f(D)==="RegExp")P=null;else if(d(D))for(O=0,F=D.length;O]+|\(([^\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 D=b.nodeName.toLowerCase();if(!(D==="input"&&b.type!=="image"))return r.domAttributes[D]}};function C(b){return escape(b)}function x(b){return encodeURIComponent(b).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}r.encode=x,r.decode=decodeURIComponent,r.iso8859=function(){r.encode=escape,r.decode=unescape},r.unicode=function(){r.encode=x,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,D){var P=r.encode(b+"");return D===void 0&&(D=r.escapeQuerySpace),D?P.replace(/%20/g,"+"):P},r.decodeQuery=function(b,D){b+="",D===void 0&&(D=r.escapeQuerySpace);try{return r.decode(D?b.replace(/\+/g,"%20"):b)}catch{return b}};var E={encode:"encode",decode:"decode"},T,S=function(b,D){return function(P){try{return r[D](P+"").replace(r.characters[b][D].expression,function(O){return r.characters[b][D].map[O]})}catch{return P}}};for(T in E)r[T+"PathSegment"]=S("pathname",E[T]),r[T+"UrnPathSegment"]=S("urnpath",E[T]);var w=function(b,D,P){return function(O){var F;P?F=function(k){return r[D](r[P](k))}:F=r[D];for(var U=(O+"").split(b),V=0,H=U.length;V-1&&(D.fragment=b.substring(P+1)||null,b=b.substring(0,P)),P=b.indexOf("?"),P>-1&&(D.query=b.substring(P+1)||null,b=b.substring(0,P)),b=b.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),b=b.replace(/^[/\\]{2,}/i,"//"),b.substring(0,2)==="//"?(D.protocol=null,b=b.substring(2),b=r.parseAuthority(b,D)):(P=b.indexOf(":"),P>-1&&(D.protocol=b.substring(0,P)||null,D.protocol&&!D.protocol.match(r.protocol_expression)?D.protocol=void 0:b.substring(P+1,P+3).replace(/\\/g,"/")==="//"?(b=b.substring(P+3),b=r.parseAuthority(b,D)):(b=b.substring(P+1),D.urn=!0))),D.path=b,D},r.parseHost=function(b,D){b||(b=""),b=b.replace(/\\/g,"/");var P=b.indexOf("/"),O,F;if(P===-1&&(P=b.length),b.charAt(0)==="[")O=b.indexOf("]"),D.hostname=b.substring(1,O)||null,D.port=b.substring(O+2,P)||null,D.port==="/"&&(D.port=null);else{var U=b.indexOf(":"),V=b.indexOf("/"),H=b.indexOf(":",U+1);H!==-1&&(V===-1||H-1?F:b.length-1),V;return U>-1&&(F===-1||U-1?W=W.slice(0,K)+W.slice(K).replace(U,""):W=W.replace(U,""),!(W.length<=k[0].length)&&!(P.ignore&&P.ignore.test(W))){X=Y+W.length;var pe=D(W,Y,X,b);if(pe===void 0){O.lastIndex=X;continue}pe=String(pe),b=b.slice(0,Y)+pe+b.slice(X),O.lastIndex=Y+pe.length}}return O.lastIndex=0,b},r.ensureValidHostname=function(b,D){var P=!!b,O=!!D,F=!1;if(O&&(F=g(r.hostProtocols,D)),F&&!P)throw new TypeError("Hostname cannot be empty, if protocol is "+D);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 D=Number(b);if(!(s(D)&&D>0&&D<65536))throw new TypeError('Port "'+b+'" is not a valid port')}},r.noConflict=function(b){if(b){var D={URI:this.noConflict()};return i.URITemplate&&typeof i.URITemplate.noConflict=="function"&&(D.URITemplate=i.URITemplate.noConflict()),i.IPv6&&typeof i.IPv6.noConflict=="function"&&(D.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&typeof i.SecondLevelDomains.noConflict=="function"&&(D.SecondLevelDomains=i.SecondLevelDomains.noConflict()),D}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 v(b){return function(D,P){return D===void 0?this._parts[b]||"":(this._parts[b]=D||null,this.build(!P),this)}}function I(b,D){return function(P,O){return P===void 0?this._parts[b]||"":(P!==null&&(P=P+"",P.charAt(0)===D&&(P=P.substring(1))),this._parts[b]=P,this.build(!O),this)}}a.protocol=v("protocol"),a.username=v("username"),a.password=v("password"),a.hostname=v("hostname"),a.port=v("port"),a.query=I("query","?"),a.fragment=I("fragment","#"),a.search=function(b,D){var P=this.query(b,D);return typeof P=="string"&&P.length?"?"+P:P},a.hash=function(b,D){var P=this.fragment(b,D);return typeof P=="string"&&P.length?"#"+P:P},a.pathname=function(b,D){if(b===void 0||b===!0){var P=this._parts.path||(this._parts.hostname?"/":"");return b?(this._parts.urn?r.decodeUrnPath:r.decodePath)(P):P}else return this._parts.urn?this._parts.path=b?r.recodeUrnPath(b):"":this._parts.path=b?r.recodePath(b):"/",this.build(!D),this},a.path=a.pathname,a.href=function(b,D){var P;if(b===void 0)return this.toString();this._string="",this._parts=r._parts();var O=b instanceof r,F=typeof b=="object"&&(b.hostname||b.path||b.pathname);if(b.nodeName){var U=r.getDomAttribute(b);b=b[U]||"",F=!1}if(!O&&F&&b.pathname!==void 0&&(b=b.toString()),typeof b=="string"||b instanceof String)this._parts=r.parse(String(b),this._parts);else if(O||F){var V=O?b._parts:b;for(P in V)P!=="query"&&c.call(this._parts,P)&&(this._parts[P]=V[P]);V.query&&this.query(V.query,!1)}else throw new TypeError("invalid input");return this.build(!D),this},a.is=function(b){var D=!1,P=!1,O=!1,F=!1,U=!1,V=!1,H=!1,k=!this._parts.urn;switch(this._parts.hostname&&(k=!1,P=r.ip4_expression.test(this._parts.hostname),O=r.ip6_expression.test(this._parts.hostname),D=P||O,F=!D,U=F&&n&&n.has(this._parts.hostname),V=F&&r.idn_expression.test(this._parts.hostname),H=F&&r.punycode_expression.test(this._parts.hostname)),b.toLowerCase()){case"relative":return k;case"absolute":return!k;case"domain":case"name":return F;case"sld":return U;case"ip":return D;case"ip4":case"ipv4":case"inet4":return P;case"ip6":case"ipv6":case"inet6":return O;case"idn":return V;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return H}return null};var B=a.protocol,M=a.port,L=a.hostname;a.protocol=function(b,D){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 B.call(this,b,D)},a.scheme=a.protocol,a.port=function(b,D){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))),M.call(this,b,D))},a.hostname=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b!==void 0){var P={preventInvalidHostname:this._parts.preventInvalidHostname},O=r.parseHost(b,P);if(O!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');b=P.hostname,this._parts.preventInvalidHostname&&r.ensureValidHostname(b,this._parts.protocol)}return L.call(this,b,D)},a.origin=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){var P=this.protocol(),O=this.authority();return O?(P?P+"://":"")+this.authority():""}else{var F=r(b);return this.protocol(F.protocol()).authority(F.authority()).build(!D),this}},a.host=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0)return this._parts.hostname?r.buildHost(this._parts):"";var P=r.parseHost(b,this._parts);if(P!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},a.authority=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0)return this._parts.hostname?r.buildAuthority(this._parts):"";var P=r.parseAuthority(b,this._parts);if(P!=="/")throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},a.userinfo=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){var P=r.buildUserinfo(this._parts);return P&&P.substring(0,P.length-1)}else return b[b.length-1]!=="@"&&(b+="@"),r.parseUserinfo(b,this._parts),this.build(!D),this},a.resource=function(b,D){var P;return b===void 0?this.path()+this.search()+this.hash():(P=r.parse(b),this._parts.path=P.path,this._parts.query=P.query,this._parts.fragment=P.fragment,this.build(!D),this)},a.subdomain=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,P)||""}else{var O=this._parts.hostname.length-this.domain().length,F=this._parts.hostname.substring(0,O),U=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(U,b),this.build(!D),this}},a.domain=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(typeof b=="boolean"&&(D=b,b=void 0),b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.match(/\./g);if(P&&P.length<2)return this._parts.hostname;var O=this._parts.hostname.length-this.tld(D).length-1;return O=this._parts.hostname.lastIndexOf(".",O-1)+1,this._parts.hostname.substring(O)||""}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(!D),this}},a.tld=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(typeof b=="boolean"&&(D=b,b=void 0),b===void 0){if(!this._parts.hostname||this.is("IP"))return"";var P=this._parts.hostname.lastIndexOf("."),O=this._parts.hostname.substring(P+1);return D!==!0&&n&&n.list[O.toLowerCase()]&&n.get(this._parts.hostname)||O}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(!D),this}},a.directory=function(b,D){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 P=this._parts.path.length-this.filename().length-1,O=this._parts.path.substring(0,P)||(this._parts.hostname?"/":"");return b?r.decodePath(O):O}else{var F=this._parts.path.length-this.filename().length,U=this._parts.path.substring(0,F),V=new RegExp("^"+l(U));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(!D),this}},a.filename=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(typeof b!="string"){if(!this._parts.path||this._parts.path==="/")return"";var P=this._parts.path.lastIndexOf("/"),O=this._parts.path.substring(P+1);return b?r.decodePathSegment(O):O}else{var F=!1;b.charAt(0)==="/"&&(b=b.substring(1)),b.match(/\.?\//)&&(F=!0);var U=new RegExp(l(this.filename())+"$");return b=r.recodePath(b),this._parts.path=this._parts.path.replace(U,b),F?this.normalizePath(D):this.build(!D),this}},a.suffix=function(b,D){if(this._parts.urn)return b===void 0?"":this;if(b===void 0||b===!0){if(!this._parts.path||this._parts.path==="/")return"";var P=this.filename(),O=P.lastIndexOf("."),F,U;return O===-1?"":(F=P.substring(O+1),U=/^[a-z0-9%]+$/i.test(F)?F:"",b?r.decodePathSegment(U):U)}else{b.charAt(0)==="."&&(b=b.substring(1));var V=this.suffix(),H;if(V)b?H=new RegExp(l(V)+"$"):H=new RegExp(l("."+V)+"$");else{if(!b)return this;this._parts.path+="."+r.recodePath(b)}return H&&(b=r.recodePath(b),this._parts.path=this._parts.path.replace(H,b)),this.build(!D),this}},a.segment=function(b,D,P){var O=this._parts.urn?":":"/",F=this.path(),U=F.substring(0,1)==="/",V=F.split(O);if(b!==void 0&&typeof b!="number"&&(P=D,D=b,b=void 0),b!==void 0&&typeof b!="number")throw new Error('Bad segment "'+b+'", must be 0-based integer');if(U&&V.shift(),b<0&&(b=Math.max(V.length+b,0)),D===void 0)return b===void 0?V:V[b];if(b===null||V[b]===void 0)if(d(D)){V=[];for(var H=0,k=D.length;H{"use strict";/*! @license DOMPurify 2.4.0 | (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.0/LICENSE */function e_(e){return e_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e_(e)}function yG(e,t){return yG=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},yG(e,t)}function aIe(){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 YB(e,t,n){return aIe()?YB=Reflect.construct:YB=function(o,r,s){var a=[null];a.push.apply(a,r);var c=Function.bind.apply(o,a),l=new c;return s&&yG(l,s.prototype),l},YB.apply(null,arguments)}function Ef(e){return cIe(e)||lIe(e)||uIe(e)||fIe()}function cIe(e){if(Array.isArray(e))return AG(e)}function lIe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uIe(e,t){if(!!e){if(typeof e=="string")return AG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AG(e,t)}}function AG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),o=1;o/gm),wIe=Xd(/^data-[\-\w.\u00B7-\uFFFF]/),DIe=Xd(/^aria-[\-\w]+$/),vIe=Xd(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PIe=Xd(/^(?:\w+script|data):/i),IIe=Xd(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),OIe=Xd(/^html$/i),BIe=function(){return typeof window>"u"?null:window},RIe=function(t,n){if(e_(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function zQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BIe(),t=function(be){return zQ(be)};if(t.version="2.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,i=e.document,o=e.DocumentFragment,r=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,l=e.NamedNodeMap,f=l===void 0?e.NamedNodeMap||e.MozNamedAttrMap:l,d=e.HTMLFormElement,p=e.DOMParser,g=e.trustedTypes,m=a.prototype,A=jB(m,"cloneNode"),C=jB(m,"nextSibling"),x=jB(m,"childNodes"),E=jB(m,"parentNode");if(typeof r=="function"){var T=i.createElement("template");T.content&&T.content.ownerDocument&&(i=T.content.ownerDocument)}var S=RIe(g,n),w=S?S.createHTML(""):"",v=i,I=v.implementation,B=v.createNodeIterator,M=v.createDocumentFragment,L=v.getElementsByTagName,_=n.importNode,b={};try{b=z0(i).documentMode?i.documentMode:{}}catch{}var D={};t.isSupported=typeof E=="function"&&I&&typeof I.createHTMLDocument<"u"&&b!==9;var P=bIe,O=SIe,F=wIe,U=DIe,V=PIe,H=IIe,k=vIe,Y=null,q=li({},[].concat(Ef(FQ),Ef(mG),Ef(pG),Ef(_G),Ef(NQ))),X=null,W=li({},[].concat(Ef(kQ),Ef(gG),Ef(VQ),Ef(qB))),K=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}})),Z=null,he=null,pe=!0,oe=!0,ue=!1,_e=!1,xe=!1,Pe=!1,Fe=!1,He=!1,Ot=!1,Ut=!1,sn=!0,dt=!1,Pn="user-content-",Jn=!0,ot=!1,zt={},jn=null,Se=li({},["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"]),_t=null,kt=li({},["audio","video","img","source","image","track"]),hi=null,Fi=li({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oo="http://www.w3.org/1998/Math/MathML",bo="http://www.w3.org/2000/svg",ao="http://www.w3.org/1999/xhtml",mi=ao,Re=!1,Ze,Ke=["application/xhtml+xml","text/html"],We="text/html",$e,Dt=null,An=i.createElement("form"),go=function(be){return be instanceof RegExp||be instanceof Function},So=function(be){Dt&&Dt===be||((!be||e_(be)!=="object")&&(be={}),be=z0(be),Ze=Ke.indexOf(be.PARSER_MEDIA_TYPE)===-1?Ze=We:Ze=be.PARSER_MEDIA_TYPE,$e=Ze==="application/xhtml+xml"?function(st){return st}:XB,Y="ALLOWED_TAGS"in be?li({},be.ALLOWED_TAGS,$e):q,X="ALLOWED_ATTR"in be?li({},be.ALLOWED_ATTR,$e):W,hi="ADD_URI_SAFE_ATTR"in be?li(z0(Fi),be.ADD_URI_SAFE_ATTR,$e):Fi,_t="ADD_DATA_URI_TAGS"in be?li(z0(kt),be.ADD_DATA_URI_TAGS,$e):kt,jn="FORBID_CONTENTS"in be?li({},be.FORBID_CONTENTS,$e):Se,Z="FORBID_TAGS"in be?li({},be.FORBID_TAGS,$e):{},he="FORBID_ATTR"in be?li({},be.FORBID_ATTR,$e):{},zt="USE_PROFILES"in be?be.USE_PROFILES:!1,pe=be.ALLOW_ARIA_ATTR!==!1,oe=be.ALLOW_DATA_ATTR!==!1,ue=be.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=be.SAFE_FOR_TEMPLATES||!1,xe=be.WHOLE_DOCUMENT||!1,He=be.RETURN_DOM||!1,Ot=be.RETURN_DOM_FRAGMENT||!1,Ut=be.RETURN_TRUSTED_TYPE||!1,Fe=be.FORCE_BODY||!1,sn=be.SANITIZE_DOM!==!1,dt=be.SANITIZE_NAMED_PROPS||!1,Jn=be.KEEP_CONTENT!==!1,ot=be.IN_PLACE||!1,k=be.ALLOWED_URI_REGEXP||k,mi=be.NAMESPACE||ao,be.CUSTOM_ELEMENT_HANDLING&&go(be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),be.CUSTOM_ELEMENT_HANDLING&&go(be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),be.CUSTOM_ELEMENT_HANDLING&&typeof be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(oe=!1),Ot&&(He=!0),zt&&(Y=li({},Ef(NQ)),X=[],zt.html===!0&&(li(Y,FQ),li(X,kQ)),zt.svg===!0&&(li(Y,mG),li(X,gG),li(X,qB)),zt.svgFilters===!0&&(li(Y,pG),li(X,gG),li(X,qB)),zt.mathMl===!0&&(li(Y,_G),li(X,VQ),li(X,qB))),be.ADD_TAGS&&(Y===q&&(Y=z0(Y)),li(Y,be.ADD_TAGS,$e)),be.ADD_ATTR&&(X===W&&(X=z0(X)),li(X,be.ADD_ATTR,$e)),be.ADD_URI_SAFE_ATTR&&li(hi,be.ADD_URI_SAFE_ATTR,$e),be.FORBID_CONTENTS&&(jn===Se&&(jn=z0(jn)),li(jn,be.FORBID_CONTENTS,$e)),Jn&&(Y["#text"]=!0),xe&&li(Y,["html","head","body"]),Y.table&&(li(Y,["tbody"]),delete Z.tbody),rc&&rc(be),Dt=be)},ts=li({},["mi","mo","mn","ms","mtext"]),Us=li({},["foreignobject","desc","title","annotation-xml"]),Rr=li({},["title","style","font","a","script"]),Ii=li({},mG);li(Ii,pG),li(Ii,TIe);var Cr=li({},_G);li(Cr,EIe);var Hr=function(be){var st=E(be);(!st||!st.tagName)&&(st={namespaceURI:ao,tagName:"template"});var Tt=XB(be.tagName),Bi=XB(st.tagName);return be.namespaceURI===bo?st.namespaceURI===ao?Tt==="svg":st.namespaceURI===Oo?Tt==="svg"&&(Bi==="annotation-xml"||ts[Bi]):Boolean(Ii[Tt]):be.namespaceURI===Oo?st.namespaceURI===ao?Tt==="math":st.namespaceURI===bo?Tt==="math"&&Us[Bi]:Boolean(Cr[Tt]):be.namespaceURI===ao?st.namespaceURI===bo&&!Us[Bi]||st.namespaceURI===Oo&&!ts[Bi]?!1:!Cr[Tt]&&(Rr[Tt]||!Ii[Tt]):!1},Gr=function(be){aS(t.removed,{element:be});try{be.parentNode.removeChild(be)}catch{try{be.outerHTML=w}catch{be.remove()}}},Oi=function(be,st){try{aS(t.removed,{attribute:st.getAttributeNode(be),from:st})}catch{aS(t.removed,{attribute:null,from:st})}if(st.removeAttribute(be),be==="is"&&!X[be])if(He||Ot)try{Gr(st)}catch{}else try{st.setAttribute(be,"")}catch{}},xr=function(be){var st,Tt;if(Fe)be=""+be;else{var Bi=yIe(be,/^[\r\n\t ]+/);Tt=Bi&&Bi[0]}Ze==="application/xhtml+xml"&&(be=''+be+"");var aa=S?S.createHTML(be):be;if(mi===ao)try{st=new p().parseFromString(aa,Ze)}catch{}if(!st||!st.documentElement){st=I.createDocument(mi,"template",null);try{st.documentElement.innerHTML=Re?"":aa}catch{}}var zs=st.body||st.documentElement;return be&&Tt&&zs.insertBefore(i.createTextNode(Tt),zs.childNodes[0]||null),mi===ao?L.call(st,xe?"html":"body")[0]:xe?st.documentElement:zs},ms=function(be){return B.call(be.ownerDocument||be,be,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Tr=function(be){return be instanceof d&&(typeof be.nodeName!="string"||typeof be.textContent!="string"||typeof be.removeChild!="function"||!(be.attributes instanceof f)||typeof be.removeAttribute!="function"||typeof be.setAttribute!="function"||typeof be.namespaceURI!="string"||typeof be.insertBefore!="function")},ff=function(be){return e_(s)==="object"?be instanceof s:be&&e_(be)==="object"&&typeof be.nodeType=="number"&&typeof be.nodeName=="string"},co=function(be,st,Tt){!D[be]||gIe(D[be],function(Bi){Bi.call(t,st,Tt,Dt)})},fl=function(be){var st;if(co("beforeSanitizeElements",be,null),Tr(be)||oc(/[\u0080-\uFFFF]/,be.nodeName))return Gr(be),!0;var Tt=$e(be.nodeName);if(co("uponSanitizeElement",be,{tagName:Tt,allowedTags:Y}),be.hasChildNodes()&&!ff(be.firstElementChild)&&(!ff(be.content)||!ff(be.content.firstElementChild))&&oc(/<[/\w]/g,be.innerHTML)&&oc(/<[/\w]/g,be.textContent)||Tt==="select"&&oc(/