const qN="0.8.11",b1=typeof window!="undefined",eB=typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Function("return this")();function tB(e){return e===void 0}function ss(e){return typeof e=="string"}function w1(e){return typeof e=="boolean"}function Er(e){return typeof e=="function"}const wc=Array.isArray;function Xi(e){return toString.call(e)==="[object Object]"}function N0(e){return toString.call(e)==="[object Promise]"}function B0(e){return Er(e)&&e.name.indexOf("bound ")===0&&!e.hasOwnProperty("prototype")}function nB(e){return typeof ShadowRoot!="undefined"&&e instanceof ShadowRoot}const hc=Object.defineProperty,rB=Object.defineProperties,$l=Object.prototype.hasOwnProperty;function Zn(e,t=null,...n){const r=t&&ss(t)?` app ${t}:`:"";ss(e)?console.error(`[micro-app]${r} ${e}`,...n):console.error(`[micro-app]${r}`,e,...n)}function Yf(e,t=null,...n){const r=t&&ss(t)?` app ${t}:`:"";ss(e)?console.warn(`[micro-app]${r} ${e}`,...n):console.warn(`[micro-app]${r}`,e,...n)}function vo(e,...t){Promise.resolve().then(e.bind(null,...t))}function C1(e){return e.startsWith("//")?`${location.protocol}${e}`:e}function F0(e,t=null){if(!ss(e)||!e)return"";try{const{origin:n,pathname:r,search:i}=new URL(C1(e));if(/\.(\w+)$/.test(r))return`${n}${r}${i}`;const a=`${n}${r}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(a)?`${a}${i}`:""}catch(n){return Zn(n,t),""}}function Qa(e){return!ss(e)||!e?"":e.replace(/(^\d+)|([^\w\d-_])/gi,"")}function N6(e){const{origin:t,pathname:n}=new URL(e);if(/\.(\w+)$/.test(n)){const i=`${t}${n}`.split("/");return i.pop(),i.join("/")+"/"}return`${t}${n}/`.replace(/\/\/$/,"/")}function Co(e,t){return!e||/^((((ht|f)tps?)|file):)?\/\//.test(e)||/^(data|blob):/.test(e)?e:new URL(e,N6(C1(t))).toString()}function iB(e){const t=e.split("/");return t.pop(),C1(t.join("/")+"/")}function Mg(e,t,n,r){let i=0;function a(){++i===e.length&&r&&r()}e.forEach((l,c)=>{N0(l)?l.then(h=>{t({data:h,index:c}),a()}).catch(h=>{n({error:h,index:c}),a()}):(t({data:l,index:c}),a())})}function aB(){const e=document.createElement("script");return"noModule"in e}function sB(){return"inline-"+Math.random().toString(36).substr(2,15)}function oB(e){return e.filter(function(t){return t in this?!1:this[t]=!0},Object.create(null))}const x1=eB.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},50)};let S1=null;function Pc(e){S1=e}function dv(e){S1!==e&&(Pc(e),vo(()=>{Pc(null)}))}function ga(){return S1}function Ig(){Pc(null)}function Cu(e,t){const n=document.createElement(e,t);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n}function fv(e,t,n){if(t.innerHTML="",n){const r=e.cloneNode(!0),i=document.createDocumentFragment();Array.from(r.childNodes).forEach(a=>{i.appendChild(a)}),t.appendChild(i)}else Array.from(e.childNodes).forEach(r=>{t.appendChild(r)})}function hv(e){return!e||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(e)}function Cy(e){return/^body$/i.test(e)||/^head$/i.test(e)||/^html$/i.test(e)}function Xf(e){return nB(e)?e.host:e}function xy(e){return e?e.replace(/^\s+|\s+$/g,""):""}function j5(){return navigator.userAgent.indexOf("Firefox")>-1}var ff;(function(e){e.NAME="name",e.URL="url"})(ff||(ff={}));var Or;(function(e){e.NOT_LOADED="NOT_LOADED",e.LOADING_SOURCE_CODE="LOADING_SOURCE_CODE",e.LOAD_SOURCE_FINISHED="LOAD_SOURCE_FINISHED",e.LOAD_SOURCE_ERROR="LOAD_SOURCE_ERROR",e.MOUNTING="MOUNTING",e.MOUNTED="MOUNTED",e.UNMOUNT="UNMOUNT"})(Or||(Or={}));var Os;(function(e){e.CREATED="created",e.BEFOREMOUNT="beforemount",e.MOUNTED="mounted",e.UNMOUNT="unmount",e.ERROR="error",e.BEFORESHOW="beforeshow",e.AFTERSHOW="aftershow",e.AFTERHIDDEN="afterhidden"})(Os||(Os={}));var Fs;(function(e){e.KEEP_ALIVE_SHOW="KEEP_ALIVE_SHOW",e.KEEP_ALIVE_HIDDEN="KEEP_ALIVE_HIDDEN"})(Fs||(Fs={}));const U5="window,self,globalThis,Array,Object,String,Boolean,Math,Number,Symbol,Date,Promise,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,Document,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,location,navigator,undefined";function xu(e,t=null,n={}){return Er(dr.fetch)?dr.fetch(e,n,t):fetch(e,n).then(r=>r.text())}class E1{static getInstance(){return this.instance||(this.instance=new E1),this.instance}run(t,n){const r=t.name,i=t.ssrUrl||t.url;xu(i,r,{cache:"no-cache"}).then(a=>{if(!a){const l="html is empty, please check in detail";return t.onerror(new Error(l)),Zn(l,r)}a=this.formatHTML(i,a,r),n(a,t)}).catch(a=>{Zn(`Failed to fetch data from ${t.url}, micro-app stop rendering`,r,a),t.onLoadError(a)})}formatHTML(t,n,r){return this.processHtml(t,n,r,dr.plugins).replace(/]*>[\s\S]*?<\/head>/i,i=>i.replace(//i,"")).replace(/]*>[\s\S]*?<\/body>/i,i=>i.replace(//i,""))}processHtml(t,n,r,i){var a;if(!i)return n;const l=[];return i.global&&l.push(...i.global),!((a=i.modules)===null||a===void 0)&&a[r]&&l.push(...i.modules[r]),l.length>0?l.reduce((c,h)=>Xi(h)&&Er(h.processHtml)?h.processHtml(c,t,h.options):c,n):n}}const lB=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,z5=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function Wa(e,t){e=t?`${t} ${e}`:e;const n=new Error(e);throw n.reason=e,t&&(n.filename=t),n}class uB{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForAtRuleWithChildRule(/^@media *([^{]+)/,"media"),this.supportsRule=this.createMatcherForAtRuleWithChildRule(/^@supports *([^{]+)/,"supports"),this.documentRule=this.createMatcherForAtRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"document"),this.hostRule=this.createMatcherForAtRuleWithChildRule(/^@host\s*/,"host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace")}exec(t,n,r,i){return this.cssText=t,this.prefix=n,this.baseURI=r,this.linkPath=i||"",this.matchRules(),j5()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&this.cssText.charAt(0)!=="}"&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):Wa("selector missing",this.linkPath)}formatSelector(t){const n=this.commonMatch(/^([^{]+)/,t);return n?n[0].replace(/(^|,[\n\s]*)([^,]+)/g,(r,i,a)=>(a=xy(a),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(a))||lB.test(a)||(z5.test(a)?a=a.replace(z5,this.prefix+" micro-app-body"):a=this.prefix+" "+a),i+a)):!1}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?!0:Wa("Declaration missing '}'",this.linkPath)):Wa("Declaration missing '{'",this.linkPath)}matchAllDeclarations(){let t=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^}/])*/,!0)[0];if(t&&(!this.scopecssDisableNextLine&&(!this.scopecssDisable||this.scopecssDisableSelectors.length)&&(t=t.replace(/url\(["']?([^)"']+)["']?\)/gm,(n,r)=>/^((data|blob):|#)/.test(r)||/^(https?:)?\/\//.test(r)?n:(/^((\.\.?\/)|[^/])/.test(r)&&this.linkPath&&(this.baseURI=iB(this.linkPath)),`url("${Co(r,this.baseURI)}")`))),this.recordResult(t)),this.scopecssDisableNextLine=!1,!(!this.cssText||this.cssText.charAt(0)==="}"))return this.cssText.charAt(0)==="/"&&this.cssText.charAt(1)==="*"?this.matchComments():this.commonMatch(/\/+/),this.matchAllDeclarations()}matchAtRule(){return this.cssText[0]!=="@"?!1:(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^([-\w]+)\s*/))return Wa("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return Wa("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Wa("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const n=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)n.push(t[1]),this.commonMatch(/^,\s*/);return n.length?(this.styleDeclarations(),this.matchLeadingSpaces(),!0):!1}customMediaRule(){return this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)?(this.matchLeadingSpaces(),!0):!1}pageRule(){return this.commonMatch(/^@page */)?(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page")):!1}fontFaceRule(){return this.commonMatch(/^@font-face\s*/)?this.commonHandlerForAtRuleWithSelfRule("font-face"):!1}createMatcherForAtRuleWithChildRule(t,n){return()=>this.commonMatch(t)?this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Wa(`@${n} missing '}'`,this.linkPath)):Wa(`@${n} missing '{'`,this.linkPath):!1}createMatcherForNoneBraceAtRule(t){const n=new RegExp("^@"+t+"\\s*([^;]+);");return()=>this.commonMatch(n)?(this.matchLeadingSpaces(),!0):!1}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Wa(`@${t} missing '}'`,this.linkPath)):Wa(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if(this.cssText.charAt(0)!=="/"||this.cssText.charAt(1)!=="*")return!1;this.scopecssDisableNextLine=!1;let t=2;for(;this.cssText.charAt(t)!==""&&(this.cssText.charAt(t)!=="*"||this.cssText.charAt(t+1)!=="/");)++t;if(t+=2,this.cssText.charAt(t-1)==="")return Wa("End of comment missing",this.linkPath);let n=this.cssText.slice(2,t-2);return this.recordResult(`/*${n}*/`),n=xy(n.replace(/^\s*!/,"")),n==="scopecss-disable-next-line"?this.scopecssDisableNextLine=!0:/^scopecss-disable/.test(n)?n==="scopecss-disable"?this.scopecssDisable=!0:(this.scopecssDisable=!0,n.replace("scopecss-disable","").split(",").forEach(i=>{this.scopecssDisableSelectors.push(xy(i))})):n==="scopecss-enable"&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]),this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,n=!1){const r=t.exec(this.cssText);if(!r)return;const i=r[0];return this.cssText=this.cssText.slice(i.length),n||this.recordResult(i),r}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){j5()?this.result+=encodeURIComponent(t):this.result+=t}}function V5(e,t,n,r,i){if(!e.__MICRO_APP_HAS_SCOPED__){e.__MICRO_APP_HAS_SCOPED__=!0;let a=null;try{a=hf.exec(e.textContent,n,r,i),hf.reset()}catch(l){hf.reset(),Zn(`An error occurred while parsing CSS: `,t,l)}a&&(e.textContent=a)}}let hf;function ru(e,t){if(t.scopecss){const n=`${dr.tagName}[name=${t.name}]`;if(hf||(hf=new uB),e.textContent)V5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__);else{const r=new MutationObserver(function(){r.disconnect(),e.textContent&&!e.hasAttribute("data-styled")&&V5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__)});r.observe(e,{childList:!0})}}return e}function B6(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},srcElement:{get(){return t}},target:{get(){return t}}})}function pf(e){const t=new CustomEvent("load");B6(t,e),Er(e.onload)?e.onload(t):e.dispatchEvent(t)}function F6(e){const t=new CustomEvent("error");B6(t,e),Er(e.onerror)?e.onerror(t):e.dispatchEvent(t)}const al=new Map;function j6(e,t,n,r=!1){const i=e.getAttribute("rel");let a=e.getAttribute("href"),l=null;if(i==="stylesheet"&&a)if(a=Co(a,n.url),!r)l=document.createComment(`link element with href=${a} move to micro-app-head as style element`),n.source.links.set(a,{code:"",placeholder:l,isGlobal:e.hasAttribute("global")});else return{url:a,info:{code:"",isGlobal:e.hasAttribute("global")}};else i&&["prefetch","preload","prerender","icon","apple-touch-icon"].includes(i)?r?l=document.createComment(`link element with rel=${i}${a?" & href="+a:""} removed by micro-app`):t.removeChild(e):a&&e.setAttribute("href",Co(a,n.url));if(r)return{replaceComment:l};if(l)return t.replaceChild(l,e)}function cB(e,t,n){const r=Array.from(t.source.links.entries()),i=r.map(([a])=>al.has(a)?al.get(a):xu(a,t.name));Mg(i,a=>{dB(r[a.index][0],r[a.index][1],a.data,n,t)},a=>{Zn(a,t.name)},()=>{t.onLoad(e)})}function dB(e,t,n,r,i){t.isGlobal&&!al.has(e)&&al.set(e,n);const a=Cu("style");a.textContent=n,a.__MICRO_APP_LINK_PATH__=e,a.setAttribute("data-origin-href",e),t.placeholder.parentNode?t.placeholder.parentNode.replaceChild(ru(a,i),t.placeholder):r.appendChild(ru(a,i)),t.placeholder=null,t.code=n}function fB(e,t,n,r,i){if(n.source.links.has(e)){i.textContent=n.source.links.get(e).code,ru(i,n),vo(()=>pf(r));return}if(al.has(e)){const a=al.get(e);t.code=a,n.source.links.set(e,t),i.textContent=a,ru(i,n),vo(()=>pf(r));return}xu(e,n.name).then(a=>{t.code=a,n.source.links.set(e,t),t.isGlobal&&al.set(e,a),i.textContent=a,ru(i,n),pf(r)}).catch(a=>{Zn(a,n.name),F6(r)})}const jo=new WeakMap;function hB(e,t,n){if(t instanceof HTMLStyleElement){if(t.hasAttribute("exclude")){const r=document.createComment("style element with exclude attribute ignored by micro-app");return jo.set(t,r),r}else if(n.scopecss&&!t.hasAttribute("ignore"))return ru(t,n);return t}else if(t instanceof HTMLLinkElement){if(t.hasAttribute("exclude")||k1(t.getAttribute("href"),n.name)){const l=document.createComment("link element with exclude attribute ignored by micro-app");return jo.set(t,l),l}else if(t.hasAttribute("ignore")||D1(t.getAttribute("href"),n.name)||t.href&&Er(dr.excludeAssetFilter)&&dr.excludeAssetFilter(t.href))return t;const{url:r,info:i,replaceComment:a}=j6(t,e,n,!0);if(r&&i){const l=Cu("style");return l.__MICRO_APP_LINK_PATH__=r,fB(r,i,n,t,l),jo.set(t,l),l}else if(a)return jo.set(t,a),a;return t}else if(t instanceof HTMLScriptElement){if(t.src&&Er(dr.excludeAssetFilter)&&dr.excludeAssetFilter(t.src))return t;const{replaceComment:r,url:i,info:a}=H6(t,e,n,!0)||{};if(i&&a)if(a.isExternal){const l=OB(i,a,n,t);return jo.set(t,l),l}else{const l=Pf(i,n,a,!0);return jo.set(t,l),l}else if(r)return jo.set(t,r),r;return t}return t}function U6(e,t,n,r,i){const a=vB(n,e);return a?i&&!a.contains(i)?Ft.rawAppendChild.call(a,r):t===Ft.rawRemoveChild&&!a.contains(r)?n.contains(r)?t.call(n,r):r:W5(t,a,r,i):W5(t,n,r,i)}function W5(e,t,n,r){return pB(e)?e.call(t,n):e.call(t,n,r)}function pB(e){return e===Ft.rawAppend||e===Ft.rawPrepend}function vB(e,t){var n,r;return e===document.head?(n=t==null?void 0:t.container)===null||n===void 0?void 0:n.querySelector("micro-app-head"):e===document.body?(r=t==null?void 0:t.container)===null||r===void 0?void 0:r.querySelector("micro-app-body"):null}function z6(e){var t;return(t=jo.get(e))!==null&&t!==void 0?t:e}function Dd(e,t,n,r){if(t!=null&&t.__MICRO_APP_NAME__){const i=ar.get(t.__MICRO_APP_NAME__);return i!=null&&i.container?U6(i,r,e,hB(e,t,i),n&&z6(n)):r===Ft.rawAppend||r===Ft.rawPrepend?r.call(e,t):r.call(e,t,n)}else if(r===Ft.rawAppend||r===Ft.rawPrepend){const i=ga();if(!(t instanceof Node)&&i){const a=ar.get(i);if(a!=null&&a.container){if(e===document.head)return r.call(a.container.querySelector("micro-app-head"),t);if(e===document.body)return r.call(a.container.querySelector("micro-app-body"),t)}}return r.call(e,t)}return r.call(e,t,n)}function mB(){gB(),Element.prototype.appendChild=function(t){return Dd(this,t,null,Ft.rawAppendChild)},Element.prototype.insertBefore=function(t,n){return Dd(this,t,n,Ft.rawInsertBefore)},Element.prototype.replaceChild=function(t,n){return Dd(this,t,n,Ft.rawReplaceChild)},Element.prototype.append=function(...t){let n=0;const r=t.length;for(;n0;)Dd(this,t[n-1],null,Ft.rawPrepend),n--},Element.prototype.removeChild=function(t){if(t!=null&&t.__MICRO_APP_NAME__){const n=ar.get(t.__MICRO_APP_NAME__);return n!=null&&n.container?U6(n,Ft.rawRemoveChild,this,z6(t)):Ft.rawRemoveChild.call(this,t)}return Ft.rawRemoveChild.call(this,t)},Element.prototype.cloneNode=function(t){const n=Ft.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(n.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),n}}function Sy(e){const t=ga();return t&&(e.__MICRO_APP_NAME__=t),e}function gB(){const e=Ft.rawDocument;Document.prototype.createElement=function(i,a){const l=Ft.rawCreateElement.call(this,i,a);return Sy(l)},Document.prototype.createElementNS=function(i,a,l){const c=Ft.rawCreateElementNS.call(this,i,a,l);return Sy(c)},Document.prototype.createDocumentFragment=function(){const i=Ft.rawCreateDocumentFragment.call(this);return Sy(i)};function t(r){var i,a,l;const c=ga();return!c||!r||Cy(r)||e!==this?Ft.rawQuerySelector.call(this,r):(l=(a=(i=ar.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelector(r))!==null&&l!==void 0?l:null}function n(r){var i,a,l;const c=ga();return!c||!r||Cy(r)||e!==this?Ft.rawQuerySelectorAll.call(this,r):(l=(a=(i=ar.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelectorAll(r))!==null&&l!==void 0?l:[]}Document.prototype.querySelector=t,Document.prototype.querySelectorAll=n,Document.prototype.getElementById=function(i){if(!ga()||hv(i))return Ft.rawGetElementById.call(this,i);try{return t.call(this,`#${i}`)}catch{return Ft.rawGetElementById.call(this,i)}},Document.prototype.getElementsByClassName=function(i){if(!ga()||hv(i))return Ft.rawGetElementsByClassName.call(this,i);try{return n.call(this,`.${i}`)}catch{return Ft.rawGetElementsByClassName.call(this,i)}},Document.prototype.getElementsByTagName=function(i){var a;const l=ga();if(!l||Cy(i)||hv(i)||!(!((a=ar.get(l))===null||a===void 0)&&a.inline)&&/^script$/i.test(i))return Ft.rawGetElementsByTagName.call(this,i);try{return n.call(this,i)}catch{return Ft.rawGetElementsByTagName.call(this,i)}},Document.prototype.getElementsByName=function(i){if(!ga()||hv(i))return Ft.rawGetElementsByName.call(this,i);try{return n.call(this,`[name=${i}]`)}catch{return Ft.rawGetElementsByName.call(this,i)}}}let j0=!1;function _B(){j0||(j0=!0,Element.prototype.setAttribute=function(t,n){if(/^micro-app(-\S+)?/i.test(this.tagName)&&t==="data")if(Xi(n)){const r={};Object.getOwnPropertyNames(n).forEach(i=>{ss(i)&&i.indexOf("__")===0||(r[i]=n[i])}),this.data=r}else n!=="[object Object]"&&Yf("property data must be an object",this.getAttribute("name"));else if(((t==="src"||t==="srcset")&&/^(img|script)$/i.test(this.tagName)||t==="href"&&/^link$/i.test(this.tagName))&&this.__MICRO_APP_NAME__&&ar.has(this.__MICRO_APP_NAME__)){const r=ar.get(this.__MICRO_APP_NAME__);Ft.rawSetAttribute.call(this,t,Co(n,r.url))}else Ft.rawSetAttribute.call(this,t,n)})}function yB(){j0=!1,Element.prototype.setAttribute=Ft.rawSetAttribute}function bB(){Document.prototype.createElement=Ft.rawCreateElement,Document.prototype.createElementNS=Ft.rawCreateElementNS,Document.prototype.createDocumentFragment=Ft.rawCreateDocumentFragment,Document.prototype.querySelector=Ft.rawQuerySelector,Document.prototype.querySelectorAll=Ft.rawQuerySelectorAll,Document.prototype.getElementById=Ft.rawGetElementById,Document.prototype.getElementsByClassName=Ft.rawGetElementsByClassName,Document.prototype.getElementsByTagName=Ft.rawGetElementsByTagName,Document.prototype.getElementsByName=Ft.rawGetElementsByName}function wB(){Pc(null),bB(),Element.prototype.appendChild=Ft.rawAppendChild,Element.prototype.insertBefore=Ft.rawInsertBefore,Element.prototype.replaceChild=Ft.rawReplaceChild,Element.prototype.removeChild=Ft.rawRemoveChild,Element.prototype.append=Ft.rawAppend,Element.prototype.prepend=Ft.rawPrepend,Element.prototype.cloneNode=Ft.rawCloneNode}let H5=!1;function CB(){if(!H5){H5=!0;const e=Cu("style");Ft.rawSetAttribute.call(e,"type","text/css"),e.textContent=` ${dr.tagName}, micro-app-body { display: block; } micro-app-head { display: none; }`,Ft.rawDocument.head.appendChild(e)}}class Lm{constructor(){this.appInstanceMap=ar}static getInstance(){return this.instance||(this.instance=new Lm),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,n){this.appInstanceMap.set(t,n)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function V6(){W6(),Lm.getInstance().getAll().forEach(e=>{e.container&&Xf(e.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&Lm.getInstance().clear()}function xB(){window.__MICRO_APP_ENVIRONMENT__&&window.addEventListener("unmount",V6,!1)}function W6(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",V6,!1)}const Ft={};function SB(){if(b1){const e=Element.prototype.setAttribute,t=Element.prototype.appendChild,n=Element.prototype.insertBefore,r=Element.prototype.replaceChild,i=Element.prototype.removeChild,a=Element.prototype.append,l=Element.prototype.prepend,c=Element.prototype.cloneNode,h=Document.prototype.createElement,s=Document.prototype.createElementNS,p=Document.prototype.createDocumentFragment,d=Document.prototype.querySelector,v=Document.prototype.querySelectorAll,m=Document.prototype.getElementById,_=Document.prototype.getElementsByClassName,y=Document.prototype.getElementsByTagName,b=Document.prototype.getElementsByName,E=new Proxy(Image,{construct(z,j){const oe=new z(...j);return oe.__MICRO_APP_NAME__=ga(),oe}}),O=Function("return window")(),C=Function("return document")(),x=aB(),k=O.addEventListener,P=O.removeEventListener,w=O.setInterval,M=O.setTimeout,T=O.clearInterval,R=O.clearTimeout,K=C.addEventListener,N=C.removeEventListener;window.__MICRO_APP_BASE_APPLICATION__=!0,Object.assign(Ft,{rawSetAttribute:e,rawAppendChild:t,rawInsertBefore:n,rawReplaceChild:r,rawRemoveChild:i,rawAppend:a,rawPrepend:l,rawCloneNode:c,rawCreateElement:h,rawCreateElementNS:s,rawCreateDocumentFragment:p,rawQuerySelector:d,rawQuerySelectorAll:v,rawGetElementById:m,rawGetElementsByClassName:_,rawGetElementsByTagName:y,rawGetElementsByName:b,ImageProxy:E,rawWindow:O,rawDocument:C,supportModuleScript:x,rawWindowAddEventListener:k,rawWindowRemoveEventListener:P,rawSetInterval:w,rawSetTimeout:M,rawClearInterval:T,rawClearTimeout:R,rawDocumentAddEventListener:K,rawDocumentRemoveEventListener:N}),CB(),W6(),xB()}}const iu=new Map;function H6(e,t,n,r=!1){let i=null,a=e.getAttribute("src");if(a&&(a=Co(a,n.url)),e.hasAttribute("exclude")||k1(a,n.name))i=document.createComment("script element with exclude attribute removed by micro-app");else{if(e.type&&!["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"].includes(e.type)||e.hasAttribute("ignore")||D1(a,n.name))return null;if(Ft.supportModuleScript&&e.noModule||!Ft.supportModuleScript&&e.type==="module")i=document.createComment(`${e.noModule?"noModule":"module"} script ignored by micro-app`);else if(a){const l={code:"",isExternal:!0,isDynamic:r,async:e.hasAttribute("async"),defer:e.defer||e.type==="module",module:e.type==="module",isGlobal:e.hasAttribute("global")};if(!r)n.source.scripts.set(a,l),i=document.createComment(`script with src='${a}' extract by micro-app`);else return{url:a,info:l}}else if(e.textContent){const l=sB(),c={code:e.textContent,isExternal:!1,isDynamic:r,async:!1,defer:e.type==="module",module:e.type==="module"};if(!r)n.source.scripts.set(l,c),i=document.createComment("inline script extract by micro-app");else return{url:l,info:c}}else r||(i=document.createComment("script element removed by micro-app"))}return r?{replaceComment:i}:t.replaceChild(i,e)}function K6(e){var t,n,r;const i=((t=dr.plugins)===null||t===void 0?void 0:t.global)||[],a=((r=(n=dr.plugins)===null||n===void 0?void 0:n.modules)===null||r===void 0?void 0:r[e])||[];return[...i,...a]}function k1(e,t){return e?(K6(t)||[]).some(r=>r.excludeChecker?r.excludeChecker(e):!1):!1}function D1(e,t){return e?(K6(t)||[]).some(r=>r.ignoreChecker?r.ignoreChecker(e):!1):!1}function EB(e,t){const n=Array.from(t.source.scripts.entries()),r=[],i=[];for(const[a,l]of n)if(l.isExternal){const c=iu.get(a);c?l.code=c:(!l.defer&&!l.async||t.isPrefetch)&&(r.push(xu(a,t.name)),i.push([a,l]))}r.length?Mg(r,a=>{kB(i[a.index][0],i[a.index][1],a.data)},a=>{Zn(a,t.name)},()=>{t.onLoad(e)}):t.onLoad(e)}function kB(e,t,n){t.isGlobal&&!iu.has(e)&&iu.set(e,n),t.code=n}function DB(e,t,n){const r=Array.from(e.entries()),i=[],a=[];for(const[l,c]of r)c.isDynamic||(c.defer||c.async?(c.isExternal&&!c.code?i.push(xu(l,t.name)):i.push(c.code),a.push([l,c]),c.module&&(n.moduleCount=n.moduleCount?++n.moduleCount:1)):(Pf(l,t,c,!1),n(!1)));i.length?Mg(i,l=>{const c=a[l.index][1];c.code=c.code||l.data},l=>{n.errorCount=n.errorCount?++n.errorCount:1,Zn(l,t.name)},()=>{a.forEach(([l,c])=>{c.code&&(Pf(l,t,c,!1,n),!c.module&&n(!1))}),n(tB(n.moduleCount)||n.errorCount===i.length)}):n(!0)}function Pf(e,t,n,r,i){var a;try{const l=X6(e,t,n.code,n);if(t.inline||n.module){const c=Cu("script");if(G6(e,l,n.module,c,i),r)return c;(a=t.container)===null||a===void 0||a.querySelector("micro-app-body").appendChild(c)}else if(Y6(l,n),r)return document.createComment("dynamic script extract by micro-app")}catch(l){console.error(`[micro-app from runScript] app ${t.name}: `,l)}}function OB(e,t,n,r){const i=()=>pf(r);if(n.source.scripts.has(e)){const l=n.source.scripts.get(e);return!l.module&&vo(i),Pf(e,n,l,!0,i)}if(iu.has(e)){const l=iu.get(e);return t.code=l,n.source.scripts.set(e,t),!t.module&&vo(i),Pf(e,n,t,!0,i)}let a;return n.inline||t.module?a=Cu("script"):a=document.createComment(`dynamic script with src='${e}' extract by micro-app`),xu(e,n.name).then(l=>{t.code=l,n.source.scripts.set(e,t),t.isGlobal&&iu.set(e,l);try{l=X6(e,n,l,t),n.inline||t.module?G6(e,l,t.module,a,i):Y6(l,t)}catch(c){console.error(`[micro-app from runDynamicScript] app ${n.name}: `,c,e)}!t.module&&pf(r)}).catch(l=>{Zn(l,n.name),F6(r)}),a}function G6(e,t,n,r,i){if(n){const a=new Blob([t],{type:"text/javascript"});r.src=URL.createObjectURL(a),r.setAttribute("type","module"),i&&(i.moduleCount&&i.moduleCount--,r.onload=i.bind(r,i.moduleCount===0))}else r.textContent=t;e.startsWith("inline-")||r.setAttribute("data-origin-src",e)}function Y6(e,t){t.code2Function||(t.code2Function=new Function(e)),t.code2Function.call(window)}function X6(e,t,n,r){return Xi(dr.plugins)&&(n=PB(e,n,t.name,dr.plugins,r)),t.sandBox&&!r.module?(Ft.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow,`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${U5}){;${n} }).call(proxyWindow,${U5})}})(window.__MICRO_APP_PROXY_WINDOW__);`):n}function PB(e,t,n,r,i){var a;const l=K5(r.global,t,e,i);return K5((a=r.modules)===null||a===void 0?void 0:a[n],l,e,i)}function K5(e,t,n,r){return wc(e)?e.reduce((i,a)=>Xi(a)&&Er(a.loader)?a.loader(i,n,a.options,r):i,t):t}function TB(e){const t=Cu("div");return t.innerHTML=e,t}function J6(e,t,n){const r=Array.from(e.children);r.length&&r.forEach(i=>{J6(i,t)});for(const i of r)i instanceof HTMLLinkElement?i.hasAttribute("exclude")||k1(i.getAttribute("href"),t.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),i):i.hasAttribute("ignore")||D1(i.getAttribute("href"),t.name)?i.hasAttribute("href")&&i.setAttribute("href",Co(i.getAttribute("href"),t.url)):j6(i,e,t):i instanceof HTMLStyleElement?i.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),i):t.scopecss&&!i.hasAttribute("ignore")&&ru(i,t):i instanceof HTMLScriptElement?H6(i,e,t):i instanceof HTMLMetaElement||i instanceof HTMLTitleElement?e.removeChild(i):i instanceof HTMLImageElement&&i.hasAttribute("src")&&i.setAttribute("src",Co(i.getAttribute("src"),t.url))}function AB(e,t){const n=TB(e),r=n.querySelector("micro-app-head"),i=n.querySelector("micro-app-body");if(!r||!i){const a=`element ${r?"body":"head"} is missing`;return t.onerror(new Error(a)),Zn(a,t.name)}J6(n,t),t.source.links.size?cB(n,t,r):t.onLoad(n),t.source.scripts.size?EB(n,t):t.onLoad(n)}class MB{constructor(){this.eventList=new Map}isLegalName(t){return t?!0:(Zn("event-center: Invalid name"),!1)}on(t,n,r=!1){if(this.isLegalName(t)){if(!Er(n))return Zn("event-center: Invalid callback function");let i=this.eventList.get(t);i?r&&Object.getOwnPropertyNames(i.data).length&&n(i.data):(i={data:{},callbacks:new Set},this.eventList.set(t,i)),i.callbacks.add(n)}}off(t,n){if(this.isLegalName(t)){const r=this.eventList.get(t);r&&(Er(n)?r.callbacks.delete(n):r.callbacks.clear())}}dispatch(t,n){if(this.isLegalName(t)){if(!Xi(n))return Zn("event-center: data must be object");let r=this.eventList.get(t);if(r){if(r.data!==n){r.data=n;for(const i of r.callbacks)i(n)}}else r={data:n,callbacks:new Set},this.eventList.set(t,r)}}getData(t){var n;const r=this.eventList.get(t);return(n=r==null?void 0:r.data)!==null&&n!==void 0?n:null}}const li=new MB;function qa(e,t){return!ss(e)||!e?"":t?`__from_base_app_${e}__`:`__from_micro_app_${e}__`}class Z6{addGlobalDataListener(t,n){const r=this.appName;r&&(t.__APP_NAME__=r,t.__AUTO_TRIGGER__=n),li.on("global",t,n)}removeGlobalDataListener(t){Er(t)&&li.off("global",t)}setGlobalData(t){Ig(),li.dispatch("global",t)}getGlobalData(){return li.getData("global")}clearGlobalDataListener(){const t=this.appName,n=li.eventList.get("global");if(n)for(const r of n.callbacks)(t&&t===r.__APP_NAME__||!(t||r.__APP_NAME__))&&n.callbacks.delete(r)}}class IB extends Z6{addDataListener(t,n,r){li.on(qa(Qa(t),!1),n,r)}removeDataListener(t,n){Er(n)&&li.off(qa(Qa(t),!1),n)}getData(t,n=!1){return li.getData(qa(Qa(t),n))}setData(t,n){li.dispatch(qa(Qa(t),!0),n)}clearDataListener(t){li.off(qa(Qa(t),!1))}}class $B extends Z6{constructor(t){super(),this.appName=Qa(t),!this.appName&&Zn(`Invalid appName ${t}`)}addDataListener(t,n){t.__AUTO_TRIGGER__=n,li.on(qa(this.appName,!0),t,n)}removeDataListener(t){Er(t)&&li.off(qa(this.appName,!0),t)}getData(){return li.getData(qa(this.appName,!0))}dispatch(t){Ig(),li.dispatch(qa(this.appName,!1),t);const n=ar.get(this.appName);if((n==null?void 0:n.container)&&Xi(t)){const r=new CustomEvent("datachange",{detail:{data:t}});Xf(n.container).dispatchEvent(r)}}clearDataListener(){li.off(qa(this.appName,!0))}}function RB(e){const t=e.appName;e.umdDataListeners={global:new Set,normal:new Set};const n=li.eventList.get("global");if(n)for(const i of n.callbacks)t===i.__APP_NAME__&&e.umdDataListeners.global.add(i);const r=li.eventList.get(qa(t,!0));r&&(e.umdDataListeners.normal=new Set(r.callbacks))}function LB(e){for(const t of e.umdDataListeners.global)e.addGlobalDataListener(t,t.__AUTO_TRIGGER__);for(const t of e.umdDataListeners.normal)e.addDataListener(t,t.__AUTO_TRIGGER__)}function NB(e){return w1(e.__MICRO_APP_IS_BOUND_FUNCTION__)?e.__MICRO_APP_IS_BOUND_FUNCTION__:e.__MICRO_APP_IS_BOUND_FUNCTION__=B0(e)}function BB(e){var t;if(w1(e.__MICRO_APP_IS_CONSTRUCTOR__))return e.__MICRO_APP_IS_CONSTRUCTOR__;const n=e.toString(),r=((t=e.prototype)===null||t===void 0?void 0:t.constructor)===e&&Object.getOwnPropertyNames(e.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n);return e.__MICRO_APP_IS_CONSTRUCTOR__=r}function FB(e,t){if(t.__MICRO_APP_BOUND_WINDOW_FUNCTION__)return t.__MICRO_APP_BOUND_WINDOW_FUNCTION__;if(!BB(t)&&!NB(t)){const n=t.bind(e);for(const r in t)n[r]=t[r];return t.hasOwnProperty("prototype")&&hc(n,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t.__MICRO_APP_BOUND_WINDOW_FUNCTION__=n}return t}const Yo=new Map;let Q6=!1;function jB(){if(Q6=!0,Object.getOwnPropertyDescriptor(document,"onclick"))return Yf("Cannot redefine document property onclick");const e=document.onclick;document.onclick=null;let t=!1;function n(r){Yo.forEach(i=>{Er(i)&&i.call(document,r)})}hc(document,"onclick",{configurable:!0,enumerable:!0,get(){const r=ga();return r?Yo.get(r):Yo.get("base")},set(r){const i=ga();i?Yo.set(i,r):Yo.set("base",r),!t&&Er(r)&&(t=!0,Ft.rawDocumentAddEventListener.call(Ft.rawDocument,"click",n,!1))}}),e&&(document.onclick=e)}const vf=new Map;function UB(){const{rawDocument:e,rawDocumentAddEventListener:t,rawDocumentRemoveEventListener:n}=Ft;!Q6&&jB(),document.addEventListener=function(r,i,a){var l;const c=ga();if(c&&!(((l=ar.get(c))===null||l===void 0?void 0:l.umdMode)&&B0(i))){const h=vf.get(c);if(h){const s=h.get(r);s?s.add(i):h.set(r,new Set([i]))}else vf.set(c,new Map([[r,new Set([i])]]));i&&(i.__MICRO_APP_MARK_OPTIONS__=a)}t.call(e,r,i,a)},document.removeEventListener=function(r,i,a){var l;const c=ga();if(c&&!(((l=ar.get(c))===null||l===void 0?void 0:l.umdMode)&&B0(i))){const h=vf.get(c);if(h){const s=h.get(r);(s==null?void 0:s.size)&&s.has(i)&&s.delete(i)}}n.call(e,r,i,a)}}function zB(){document.addEventListener=Ft.rawDocumentAddEventListener,document.removeEventListener=Ft.rawDocumentRemoveEventListener}const VB=["unmount","appstate-change"];function G5(e,t){return VB.includes(e)?`${e}-${t.__MICRO_APP_NAME__}`:e}function WB(e){const t=e.__MICRO_APP_NAME__,n=new Map,r=new Map,i=new Map,{rawWindow:a,rawDocument:l,rawWindowAddEventListener:c,rawWindowRemoveEventListener:h,rawSetInterval:s,rawSetTimeout:p,rawClearInterval:d,rawClearTimeout:v,rawDocumentRemoveEventListener:m}=Ft;e.addEventListener=function(P,w,M){P=G5(P,e);const T=n.get(P);T?T.add(w):n.set(P,new Set([w])),w&&(w.__MICRO_APP_MARK_OPTIONS__=M),c.call(a,P,w,M)},e.removeEventListener=function(P,w,M){P=G5(P,e);const T=n.get(P);(T==null?void 0:T.size)&&T.has(w)&&T.delete(w),h.call(a,P,w,M)},e.setInterval=function(P,w,...M){const T=s.call(a,P,w,...M);return r.set(T,{handler:P,timeout:w,args:M}),T},e.setTimeout=function(P,w,...M){const T=p.call(a,P,w,...M);return i.set(T,{handler:P,timeout:w,args:M}),T},e.clearInterval=function(P){r.delete(P),d.call(a,P)},e.clearTimeout=function(P){i.delete(P),v.call(a,P)};const _=new Map,y=new Map;let b=new Map,E=new Map,O;return{recordUmdEffect:()=>{n.forEach((w,M)=>{w.size&&_.set(M,new Set(w))}),r.size&&(b=new Map(r)),i.size&&(E=new Map(i)),O=Yo.get(t);const P=vf.get(t);P&&P.forEach((w,M)=>{w.size&&y.set(M,new Set(w))})},rebuildUmdEffect:()=>{_.forEach((P,w)=>{for(const M of P)e.addEventListener(w,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),b.forEach(P=>{e.setInterval(P.handler,P.timeout,...P.args)}),E.forEach(P=>{e.setTimeout(P.handler,P.timeout,...P.args)}),O&&Yo.set(t,O),Pc(t),y.forEach((P,w)=>{for(const M of P)document.addEventListener(w,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),Pc(null)},releaseEffect:()=>{n.size&&(n.forEach((w,M)=>{for(const T of w)h.call(a,M,T)}),n.clear()),r.size&&(r.forEach((w,M)=>{d.call(a,M)}),r.clear()),i.size&&(i.forEach((w,M)=>{v.call(a,M)}),i.clear()),Yo.delete(t);const P=vf.get(t);P&&(P.forEach((w,M)=>{for(const T of w)m.call(l,M,T)}),P.clear())}}}const HB=["System","__cjsWrapper"],KB=["location"],GB=["window","self","globalThis"];class Tf{constructor(t,n){this.scopeProperties=["webpackJsonp","Vue"],this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.active=!1,this.microAppWindow={},this.getSpecialProperties(t),this.proxyWindow=this.createProxyWindow(t),this.initMicroAppWindow(this.microAppWindow,t,n),Object.assign(this,WB(this.microAppWindow))}start(t){this.active||(this.active=!0,this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t,Ft.rawWindow._babelPolyfill&&(Ft.rawWindow._babelPolyfill=!1),++Tf.activeCount===1&&(UB(),mB()))}stop(t){this.active&&(this.active=!1,this.releaseEffect(),this.microAppWindow.microApp.clearDataListener(),this.microAppWindow.microApp.clearGlobalDataListener(),t||(this.injectedKeys.forEach(n=>{Reflect.deleteProperty(this.microAppWindow,n)}),this.injectedKeys.clear(),this.escapeKeys.forEach(n=>{Reflect.deleteProperty(Ft.rawWindow,n)}),this.escapeKeys.clear()),--Tf.activeCount===0&&(zB(),wB()))}recordUmdSnapshot(){this.microAppWindow.__MICRO_APP_UMD_MODE__=!0,this.recordUmdEffect(),RB(this.microAppWindow.microApp),this.recordUmdInjectedValues=new Map,this.injectedKeys.forEach(t=>{this.recordUmdInjectedValues.set(t,Reflect.get(this.microAppWindow,t))})}rebuildUmdSnapshot(){this.recordUmdInjectedValues.forEach((t,n)=>{Reflect.set(this.proxyWindow,n,t)}),this.rebuildUmdEffect(),LB(this.microAppWindow.microApp)}getSpecialProperties(t){var n;!Xi(dr.plugins)||(this.commonActionForSpecialProperties(dr.plugins.global),this.commonActionForSpecialProperties((n=dr.plugins.modules)===null||n===void 0?void 0:n[t]))}commonActionForSpecialProperties(t){if(wc(t))for(const n of t)Xi(n)&&(wc(n.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(n.scopeProperties)),wc(n.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(n.escapeProperties)))}createProxyWindow(t){const n=Ft.rawWindow,r=new Map;return new Proxy(this.microAppWindow,{get:(i,a)=>{if(dv(t),Reflect.has(i,a)||ss(a)&&/^__MICRO_APP_/.test(a)||this.scopeProperties.includes(a))return Reflect.get(i,a);const l=Reflect.get(n,a);return Er(l)?FB(n,l):l},set:(i,a,l)=>{if(this.active){if(KB.includes(a))Reflect.set(n,a,l);else if(!$l.call(i,a)&&$l.call(n,a)&&!this.scopeProperties.includes(a)){const c=Object.getOwnPropertyDescriptor(n,a),{configurable:h,enumerable:s,writable:p,set:d}=c;hc(i,a,{value:l,configurable:h,enumerable:s,writable:p!=null?p:!!d}),this.injectedKeys.add(a)}else Reflect.set(i,a,l),this.injectedKeys.add(a);(this.escapeProperties.includes(a)||HB.includes(a)&&!Reflect.has(n,a))&&!this.scopeProperties.includes(a)&&(Reflect.set(n,a,l),this.escapeKeys.add(a))}return!0},has:(i,a)=>this.scopeProperties.includes(a)?a in i:a in i||a in n,getOwnPropertyDescriptor:(i,a)=>{if($l.call(i,a))return r.set(a,"target"),Object.getOwnPropertyDescriptor(i,a);if($l.call(n,a)){r.set(a,"rawWindow");const l=Object.getOwnPropertyDescriptor(n,a);return l&&!l.configurable&&(l.configurable=!0),l}},defineProperty:(i,a,l)=>r.get(a)==="rawWindow"?Reflect.defineProperty(n,a,l):Reflect.defineProperty(i,a,l),ownKeys:i=>oB(Reflect.ownKeys(n).concat(Reflect.ownKeys(i))),deleteProperty:(i,a)=>$l.call(i,a)?(this.injectedKeys.has(a)&&this.injectedKeys.delete(a),this.escapeKeys.has(a)&&Reflect.deleteProperty(n,a),Reflect.deleteProperty(i,a)):!0})}initMicroAppWindow(t,n,r){t.__MICRO_APP_ENVIRONMENT__=!0,t.__MICRO_APP_NAME__=n,t.__MICRO_APP_PUBLIC_PATH__=N6(r),t.__MICRO_APP_WINDOW__=t,t.microApp=Object.assign(new $B(n),{removeDomScope:Ig,pureCreateElement:Cu}),t.rawWindow=Ft.rawWindow,t.rawDocument=Ft.rawDocument,t.hasOwnProperty=i=>$l.call(t,i)||$l.call(Ft.rawWindow,i),this.setMappingPropertiesWithRawDescriptor(t),this.setHijackProperties(t,n)}setMappingPropertiesWithRawDescriptor(t){let n,r;const i=Ft.rawWindow;i===i.parent?n=r=this.proxyWindow:(n=i.top,r=i.parent),hc(t,"top",this.createDescriptorForMicroAppWindow("top",n)),hc(t,"parent",this.createDescriptorForMicroAppWindow("parent",r)),GB.forEach(a=>{hc(t,a,this.createDescriptorForMicroAppWindow(a,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,n){const{configurable:r=!0,enumerable:i=!0,writable:a,set:l}=Object.getOwnPropertyDescriptor(Ft.rawWindow,t)||{writable:!0};return{value:n,configurable:r,enumerable:i,writable:a!=null?a:!!l}}setHijackProperties(t,n){let r,i;rB(t,{document:{get(){return dv(n),Ft.rawDocument},configurable:!1,enumerable:!0},eval:{get(){return dv(n),r||eval},set:a=>{r=a},configurable:!0,enumerable:!1},Image:{get(){return dv(n),i||Ft.ImageProxy},set:a=>{i=a},configurable:!0,enumerable:!1}})}}Tf.activeCount=0;function YB(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},target:{get(){return t}}})}function Uo(e,t,n,r){var i;if(!e)return Zn(`element does not exist in lifecycle ${n}`,t);e=Xf(e),Ig();const a=Object.assign({name:t,container:e},r&&{error:r}),l=new CustomEvent(n,{detail:a});YB(l,e),Er((i=dr.lifeCycles)===null||i===void 0?void 0:i[n])&&dr.lifeCycles[n](l),e.dispatchEvent(l)}function pv(e,t,n={}){const r=new CustomEvent(`${e}-${t}`,{detail:n});window.dispatchEvent(r)}const ar=new Map;class q6{constructor({name:t,url:n,ssrUrl:r,container:i,inline:a,scopecss:l,useSandbox:c,baseroute:h}){this.state=Or.NOT_LOADED,this.keepAliveState=null,this.keepAliveContainer=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.libraryName=null,this.umdMode=!1,this.isPrefetch=!1,this.prefetchResolve=null,this.container=null,this.baseroute="",this.sandBox=null,this.container=i!=null?i:null,this.inline=a!=null?a:!1,this.baseroute=h!=null?h:"",this.ssrUrl=r!=null?r:"",this.name=t,this.url=n,this.useSandbox=c,this.scopecss=this.useSandbox&&l,this.source={links:new Map,scripts:new Map},this.loadSourceCode(),this.useSandbox&&(this.sandBox=new Tf(t,n))}loadSourceCode(){this.state=Or.LOADING_SOURCE_CODE,E1.getInstance().run(this,AB)}onLoad(t){var n;++this.loadSourceLevel===2&&(this.source.html=t,this.isPrefetch?((n=this.prefetchResolve)===null||n===void 0||n.call(this),this.prefetchResolve=null):Or.UNMOUNT!==this.state&&(this.state=Or.LOAD_SOURCE_FINISHED,this.mount()))}onLoadError(t){this.loadSourceLevel=-1,this.prefetchResolve&&(this.prefetchResolve(),this.prefetchResolve=null),Or.UNMOUNT!==this.state&&(this.onerror(t),this.state=Or.LOAD_SOURCE_ERROR)}mount(t,n,r){var i,a,l;if(w1(n)&&n!==this.inline&&(this.inline=n),this.container=(i=this.container)!==null&&i!==void 0?i:t,this.baseroute=r!=null?r:this.baseroute,this.loadSourceLevel!==2){this.state=Or.LOADING_SOURCE_CODE;return}Uo(this.container,this.name,Os.BEFOREMOUNT),this.state=Or.MOUNTING,fv(this.source.html,this.container,!this.umdMode),(a=this.sandBox)===null||a===void 0||a.start(this.baseroute);let c;if(this.umdMode){(l=this.sandBox)===null||l===void 0||l.rebuildUmdSnapshot();try{c=this.umdHookMount()}catch(h){Zn(`an error occurred in the mount function `,this.name,h)}this.handleMounted(c)}else{let h=!1;DB(this.source.scripts,this,s=>{var p;if(!this.umdMode){const{mount:d,unmount:v}=this.getUmdLibraryHooks();if(Er(d)&&Er(v)){this.umdHookMount=d,this.umdHookUnmount=v,this.umdMode=!0,(p=this.sandBox)===null||p===void 0||p.recordUmdSnapshot();try{c=this.umdHookMount()}catch(m){Zn(`an error occurred in the mount function `,this.name,m)}}}!h&&(s===!0||this.umdMode)&&(h=!0,this.handleMounted(c))})}}handleMounted(t){N0(t)?t.then(()=>this.dispatchMountedEvent()).catch(n=>this.onerror(n)):this.dispatchMountedEvent()}dispatchMountedEvent(){Or.UNMOUNT!==this.state&&(this.state=Or.MOUNTED,Uo(this.container,this.name,Os.MOUNTED))}unmount(t,n){this.state===Or.LOAD_SOURCE_ERROR&&(t=!0),this.state=Or.UNMOUNT,this.keepAliveState=null,this.keepAliveContainer=null;let r;if(this.umdHookUnmount)try{r=this.umdHookUnmount()}catch(i){Zn(`an error occurred in the unmount function `,this.name,i)}pv("unmount",this.name),this.handleUnmounted(t,r,n)}handleUnmounted(t,n,r){N0(n)?n.then(()=>this.actionsForUnmount(t,r)).catch(()=>this.actionsForUnmount(t,r)):this.actionsForUnmount(t,r)}actionsForUnmount(t,n){var r;t?this.actionsForCompletelyDestroy():this.umdMode&&this.container.childElementCount&&fv(this.container,this.source.html,!1),(r=this.sandBox)===null||r===void 0||r.stop(this.umdMode),QB().length||yB(),Uo(this.container,this.name,Os.UNMOUNT),this.container.innerHTML="",this.container=null,n&&n()}actionsForCompletelyDestroy(){!this.useSandbox&&this.umdMode&&delete window[this.libraryName],ar.delete(this.name)}hiddenKeepAliveApp(){const t=this.container;fv(this.container,this.keepAliveContainer?this.keepAliveContainer:this.keepAliveContainer=document.createElement("div"),!1),this.container=this.keepAliveContainer,this.keepAliveState=Fs.KEEP_ALIVE_HIDDEN,pv("appstate-change",this.name,{appState:"afterhidden"}),Uo(t,this.name,Os.AFTERHIDDEN)}showKeepAliveApp(t){pv("appstate-change",this.name,{appState:"beforeshow"}),Uo(t,this.name,Os.BEFORESHOW),fv(this.container,t,!1),this.container=t,this.keepAliveState=Fs.KEEP_ALIVE_SHOW,pv("appstate-change",this.name,{appState:"aftershow"}),Uo(this.container,this.name,Os.AFTERSHOW)}onerror(t){Uo(this.container,this.name,Os.ERROR,t)}getAppState(){return this.state}getKeepAliveState(){return this.keepAliveState}getUmdLibraryHooks(){var t,n;if(Or.UNMOUNT!==this.state){const r=(n=(t=this.sandBox)===null||t===void 0?void 0:t.proxyWindow)!==null&&n!==void 0?n:Ft.rawWindow;return this.libraryName=Xf(this.container).getAttribute("library")||`micro-app-${this.name}`,typeof r[this.libraryName]=="object"?r[this.libraryName]:{}}return{}}}function XB(e){class t extends HTMLElement{constructor(){super(),this.isWaiting=!1,this.cacheData=null,this.hasConnected=!1,this.appName="",this.appUrl="",this.ssrUrl="",this.version=qN,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const r=Qa(this.getAttribute("name")),i=F0(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",r)&&this.legalAttribute("url",i)){const a=ar.get(r);if(r!==this.appName&&a&&Or.UNMOUNT!==a.getAppState()&&Fs.KEEP_ALIVE_HIDDEN!==a.getKeepAliveState()&&!a.isPrefetch)return this.setAttribute("name",this.appName),Zn(`app name conflict, an app named ${r} is running`,this.appName);(r!==this.appName||i!==this.appUrl)&&(r===this.appName?this.handleUnmount(!0,()=>{this.actionsForAttributeChange(r,i,a)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(r,i,a)):this.handleUnmount(this.getDestroyCompatibleResult(),()=>{this.actionsForAttributeChange(r,i,a)}))}else r!==this.appName&&this.setAttribute("name",this.appName)},_B()}static get observedAttributes(){return["name","url"]}connectedCallback(){this.hasConnected=!0,vo(()=>Uo(this,this.appName,Os.CREATED)),this.initialMount()}disconnectedCallback(){this.hasConnected=!1,this.getKeepAliveModeResult()?this.handleHiddenKeepAliveApp():this.handleUnmount(this.getDestroyCompatibleResult())}attributeChangedCallback(r,i,a){if(this.legalAttribute(r,a)&&this[r===ff.NAME?"appName":"appUrl"]!==a)if(r===ff.URL&&!this.appUrl){if(a=F0(a,this.appName),!a)return Zn(`Invalid attribute url ${a}`,this.appName);this.appUrl=a,this.handleInitialNameAndUrl()}else if(r===ff.NAME&&!this.appName){const l=Qa(a);if(!l)return Zn(`Invalid attribute name ${a}`,this.appName);this.cacheData&&(dr.setData(l,this.cacheData),this.cacheData=null),this.appName=l,l!==a&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else this.isWaiting||(this.isWaiting=!0,vo(this.handleAttributeUpdate))}handleInitialNameAndUrl(){this.hasConnected&&this.initialMount()}initialMount(){if(!(!this.appName||!this.appUrl))if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&Er(this.attachShadow)&&this.attachShadow({mode:"open"}),this.getDisposeResult("ssr")?this.ssrUrl=Co(Ft.rawWindow.location.pathname,this.appUrl):this.ssrUrl&&(this.ssrUrl=""),ar.has(this.appName)){const r=ar.get(this.appName),i=r.ssrUrl||r.url,a=this.ssrUrl||this.appUrl;r.getKeepAliveState()===Fs.KEEP_ALIVE_HIDDEN&&r.url===this.appUrl?this.handleShowKeepAliveApp(r):i===a&&(r.isPrefetch||r.getAppState()===Or.UNMOUNT)?this.handleAppMount(r):r.isPrefetch||r.getAppState()===Or.UNMOUNT?(Yf(`the ${r.isPrefetch?"prefetch":"unmounted"} app with url: ${i} is replaced by a new app`,this.appName),this.handleCreateApp()):Zn(`app name conflict, an app named ${this.appName} is running`,this.appName)}else this.handleCreateApp()}actionsForAttributeChange(r,i,a){var l;this.getDisposeResult("ssr")?this.ssrUrl=Co(Ft.rawWindow.location.pathname,i):this.ssrUrl&&(this.ssrUrl=""),this.appName=r,this.appUrl=i,((l=this.shadowRoot)!==null&&l!==void 0?l:this).innerHTML="",r!==this.getAttribute("name")&&this.setAttribute("name",this.appName),a?a.getKeepAliveState()===Fs.KEEP_ALIVE_HIDDEN?a.url===this.appUrl?this.handleShowKeepAliveApp(a):Zn(`app name conflict, an app named ${this.appName} is running`,this.appName):a.url===this.appUrl&&a.ssrUrl===this.ssrUrl?this.handleAppMount(a):this.handleCreateApp():this.handleCreateApp()}legalAttribute(r,i){return!ss(i)||!i?(Zn(`unexpected attribute ${r}, please check again`,this.appName),!1):!0}handleAppMount(r){r.isPrefetch=!1,vo(()=>{var i;return r.mount((i=this.shadowRoot)!==null&&i!==void 0?i:this,this.getDisposeResult("inline"),this.getBaseRouteCompatible())})}handleCreateApp(){var r;ar.has(this.appName)&&ar.get(this.appName).actionsForCompletelyDestroy();const i=new q6({name:this.appName,url:this.appUrl,ssrUrl:this.ssrUrl,container:(r=this.shadowRoot)!==null&&r!==void 0?r:this,inline:this.getDisposeResult("inline"),scopecss:!(this.getDisposeResult("disableScopecss")||this.getDisposeResult("shadowDOM")),useSandbox:!this.getDisposeResult("disableSandbox"),baseroute:this.getBaseRouteCompatible()});ar.set(this.appName,i)}handleUnmount(r,i){const a=ar.get(this.appName);a&&a.getAppState()!==Or.UNMOUNT&&a.unmount(r,i)}handleHiddenKeepAliveApp(){const r=ar.get(this.appName);r&&r.getAppState()!==Or.UNMOUNT&&r.getKeepAliveState()!==Fs.KEEP_ALIVE_HIDDEN&&r.hiddenKeepAliveApp()}handleShowKeepAliveApp(r){vo(()=>{var i;return r.showKeepAliveApp((i=this.shadowRoot)!==null&&i!==void 0?i:this)})}getDisposeResult(r){return(this.compatibleSpecialProperties(r)||dr[r])&&this.compatibleDisableSpecialProperties(r)}compatibleSpecialProperties(r){return r==="disableScopecss"?this.hasAttribute("disableScopecss")||this.hasAttribute("disable-scopecss"):r==="disableSandbox"?this.hasAttribute("disableSandbox")||this.hasAttribute("disable-sandbox"):this.hasAttribute(r)}compatibleDisableSpecialProperties(r){return r==="disableScopecss"?this.getAttribute("disableScopecss")!=="false"&&this.getAttribute("disable-scopecss")!=="false":r==="disableSandbox"?this.getAttribute("disableSandbox")!=="false"&&this.getAttribute("disable-sandbox")!=="false":this.getAttribute(r)!=="false"}getBaseRouteCompatible(){var r,i;return(i=(r=this.getAttribute("baseroute"))!==null&&r!==void 0?r:this.getAttribute("baseurl"))!==null&&i!==void 0?i:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}set data(r){this.appName?dr.setData(this.appName,r):this.cacheData=r}get data(){return this.appName?dr.getData(this.appName,!0):this.cacheData?this.cacheData:null}}window.customElements.define(e,t)}function Y5(e){if(!b1)return Zn("preFetch is only supported in browser environment");x1(()=>{Er(e)&&(e=e()),wc(e)&&e.reduce((t,n)=>t.then(()=>JB(n)),Promise.resolve())})}function JB(e){return new Promise(t=>{x1(()=>{var n,r;if(Xi(e)&&navigator.onLine)if(e.name=Qa(e.name),e.url=F0(e.url,e.name),e.name&&e.url&&!ar.has(e.name)){const i=new q6({name:e.name,url:e.url,scopecss:!((n=e.disableScopecss)!==null&&n!==void 0?n:dr.disableScopecss),useSandbox:!((r=e.disableSandbox)!==null&&r!==void 0?r:dr.disableSandbox)});i.isPrefetch=!0,i.prefetchResolve=t,ar.set(e.name,i)}else t();else t()})})}function ZB(e){Xi(e)&&x1(()=>{X5(e.js,"js",iu),X5(e.css,"css",al)})}function X5(e,t,n){if(wc(e)){const r=e.filter(a=>ss(a)&&a.includes(`.${t}`)&&!n.has(a)),i=r.map(a=>xu(a));Mg(i,a=>{const l=r[a.index];n.has(l)||n.set(l,a.data)},a=>{Zn(a)})}}function QB(e){const t=[];return ar.forEach((n,r)=>{Or.UNMOUNT!==n.getAppState()&&!n.isPrefetch&&(!e||Fs.KEEP_ALIVE_HIDDEN!==n.getKeepAliveState())&&t.push(r)}),t}function qB(e,t){const n=ar.get(Qa(e));return new Promise(r=>{if(n)if(n.getAppState()===Or.UNMOUNT||n.isPrefetch)t!=null&&t.destroy&&n.actionsForCompletelyDestroy(),r();else if(n.getKeepAliveState()===Fs.KEEP_ALIVE_HIDDEN)t!=null&&t.destroy?n.unmount(!0,r):t!=null&&t.clearAliveState?n.unmount(!1,r):r();else{const i=Xf(n.container),a=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()},l=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()};if(i.addEventListener("unmount",a),i.addEventListener("afterhidden",l),t!=null&&t.destroy){let c,h;i.hasAttribute("destroy")&&(c=i.getAttribute("destroy")),i.hasAttribute("destory")&&(h=i.getAttribute("destory")),i.setAttribute("destroy","true"),i.parentNode.removeChild(i),i.removeAttribute("destroy"),typeof c=="string"&&i.setAttribute("destroy",c),typeof h=="string"&&i.setAttribute("destory",h)}else if((t==null?void 0:t.clearAliveState)&&i.hasAttribute("keep-alive")){const c=i.getAttribute("keep-alive");i.removeAttribute("keep-alive"),i.parentNode.removeChild(i),i.setAttribute("keep-alive",c)}else i.parentNode.removeChild(i)}else Yf(`app ${e} does not exist`),r()})}function cre(e){return Array.from(ar.keys()).reduce((t,n)=>t.then(()=>qB(n,e)),Promise.resolve())}class eF extends IB{constructor(){super(...arguments),this.tagName="micro-app",this.preFetch=Y5}start(t){if(!b1||!window.customElements)return Zn("micro-app is not supported in this environment");if(t!=null&&t.tagName)if(/^micro-app(-\S+)?/.test(t.tagName))this.tagName=t.tagName;else return Zn(`${t.tagName} is invalid tagName`);if(window.customElements.get(this.tagName))return Yf(`element ${this.tagName} is already defined`);if(SB(),t&&Xi(t)&&(this.shadowDOM=t.shadowDOM,this.destroy=t.destroy,this.destory=t.destory,this.inline=t.inline,this.disableScopecss=t.disableScopecss,this.disableSandbox=t.disableSandbox,this.ssr=t.ssr,Er(t.fetch)&&(this.fetch=t.fetch),Xi(t.lifeCycles)&&(this.lifeCycles=t.lifeCycles),t.preFetchApps&&Y5(t.preFetchApps),t.globalAssets&&ZB(t.globalAssets),Er(t.excludeAssetFilter)&&(this.excludeAssetFilter=t.excludeAssetFilter),Xi(t.plugins))){const n=t.plugins.modules;if(Xi(n))for(const r in n){const i=Qa(r);i&&r!==i&&(n[i]=n[r],delete n[r])}this.plugins=t.plugins}XB(this.tagName)}}var dr=new eF;function tF(){let e={},t={loader(n,r){return n}};e["micro-app"]=[t],e["okr-details"]=[t],dr.start({plugins:{modules:e}})}var nF={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let n=1;for(;e.indexOf("(*)")!==-1;)typeof t[n]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[n]),n++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Af=nF,rF=Af.languageTypes,au=Af.getLanguage(),Zu={};function dre(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(rF));e.some(n=>{let r=-1;n.key&&t.some(i=>{const a=n[i]||n.general||null;a&&typeof window.LANGUAGE_DATA[i]!="undefined"&&(r=window.LANGUAGE_DATA[i].push(a)-1)}),r>-1&&(window.LANGUAGE_DATA.key[n.key]=r)})}function iF(e,t=!1){e!==void 0&&(t?(window.localStorage.setItem("__language:type__",e),$A.reloadUrl()):$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}}))}function aF(){return Af.getLanguage()}function O1(e){var n;if(typeof arguments[1]!="undefined")return O1(Af.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[au]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[au][t]||e;if(typeof Zu[e]=="undefined"){Zu[e]=!1;for(let r in window.LANGUAGE_DATA.key)if(r.indexOf("(*)")>-1){const i=new RegExp("^"+Af.replaceEscape(r)+"$","g");if(i.test(e)){let a=0;const l=window.LANGUAGE_DATA.key[r],c=(n=window.LANGUAGE_DATA[au][l]||r)==null?void 0:n.replace(/\(\*\)/g,function(){return"$"+ ++a});Zu[e]={rege:i,value:c};break}}}return Zu[e]?e.replace(Zu[e].rege,Zu[e].value):(window.systemInfo.debug==="yes"&&setTimeout(r=>{try{let i="__language:Undefined__",a=JSON.parse(window.localStorage.getItem(i)||"[]");$A.isArray(a)||(a=[]);let l=null;a.find(h=>(l=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(l)))||(a.push(e),window.localStorage.setItem(i,JSON.stringify(a)))}catch{}},10),e)}var js=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function eO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $g(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function vv(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var tO={exports:{}};/*! * jQuery JavaScript Library v3.7.0 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-05-11T18:29Z */(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window!="undefined"?window:js,function(t,n){var r=[],i=Object.getPrototypeOf,a=r.slice,l=r.flat?function(D){return r.flat.call(D)}:function(D){return r.concat.apply([],D)},c=r.push,h=r.indexOf,s={},p=s.toString,d=s.hasOwnProperty,v=d.toString,m=v.call(Object),_={},y=function(L){return typeof L=="function"&&typeof L.nodeType!="number"&&typeof L.item!="function"},b=function(L){return L!=null&&L===L.window},E=t.document,O={type:!0,src:!0,nonce:!0,noModule:!0};function C(D,L,G){G=G||E;var ne,_e,we=G.createElement("script");if(we.text=D,L)for(ne in O)_e=L[ne]||L.getAttribute&&L.getAttribute(ne),_e&&we.setAttribute(ne,_e);G.head.appendChild(we).parentNode.removeChild(we)}function x(D){return D==null?D+"":typeof D=="object"||typeof D=="function"?s[p.call(D)]||"object":typeof D}var k="3.7.0",P=/HTML$/i,w=function(D,L){return new w.fn.init(D,L)};w.fn=w.prototype={jquery:k,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(D){return D==null?a.call(this):D<0?this[D+this.length]:this[D]},pushStack:function(D){var L=w.merge(this.constructor(),D);return L.prevObject=this,L},each:function(D){return w.each(this,D)},map:function(D){return this.pushStack(w.map(this,function(L,G){return D.call(L,G,L)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(D,L){return(L+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(D,L){return L%2}))},eq:function(D){var L=this.length,G=+D+(D<0?L:0);return this.pushStack(G>=0&&G0&&L-1 in D}function T(D,L){return D.nodeName&&D.nodeName.toLowerCase()===L.toLowerCase()}var R=r.pop,K=r.sort,N=r.splice,z="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g");w.contains=function(D,L){var G=L&&L.parentNode;return D===G||!!(G&&G.nodeType===1&&(D.contains?D.contains(G):D.compareDocumentPosition&&D.compareDocumentPosition(G)&16))};var oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Pe(D,L){return L?D==="\0"?"\uFFFD":D.slice(0,-1)+"\\"+D.charCodeAt(D.length-1).toString(16)+" ":"\\"+D}w.escapeSelector=function(D){return(D+"").replace(oe,Pe)};var he=E,ye=c;(function(){var D,L,G,ne,_e,we=ye,Me,We,Fe,Ye,st,ut=w.expando,et=0,St=0,vn=kl(),$n=kl(),Sn=kl(),$r=kl(),pr=function(Ne,He){return Ne===He&&(_e=!0),0},ia="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",aa="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mn="\\["+z+"*("+aa+")(?:"+z+"*([*^$|!~]?=)"+z+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+aa+"))|)"+z+"*\\]",to=":("+aa+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Mn+")*)|.*)\\)|)",Nn=new RegExp(z+"+","g"),or=new RegExp("^"+z+"*,"+z+"*"),ps=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),Uu=new RegExp(z+"|>"),sa=new RegExp(to),El=new RegExp("^"+aa+"$"),oa={ID:new RegExp("^#("+aa+")"),CLASS:new RegExp("^\\.("+aa+")"),TAG:new RegExp("^("+aa+"|[*])"),ATTR:new RegExp("^"+Mn),PSEUDO:new RegExp("^"+to),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+ia+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},vs=/^(?:input|select|textarea|button)$/i,ms=/^h\d$/i,ji=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,zu=/[+~]/,Fa=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),ka=function(Ne,He){var qe="0x"+Ne.slice(1)-65536;return He||(qe<0?String.fromCharCode(qe+65536):String.fromCharCode(qe>>10|55296,qe&1023|56320))},K_=function(){gs()},Bh=Ol(function(Ne){return Ne.disabled===!0&&T(Ne,"fieldset")},{dir:"parentNode",next:"legend"});function G_(){try{return Me.activeElement}catch{}}try{we.apply(r=a.call(he.childNodes),he.childNodes),r[he.childNodes.length].nodeType}catch{we={apply:function(He,qe){ye.apply(He,a.call(qe))},call:function(He){ye.apply(He,a.call(arguments,1))}}}function Hn(Ne,He,qe,rt){var ct,At,zt,Jt,Vt,An,cn,mn=He&&He.ownerDocument,En=He?He.nodeType:9;if(qe=qe||[],typeof Ne!="string"||!Ne||En!==1&&En!==9&&En!==11)return qe;if(!rt&&(gs(He),He=He||Me,Fe)){if(En!==11&&(Vt=ji.exec(Ne)))if(ct=Vt[1]){if(En===9)if(zt=He.getElementById(ct)){if(zt.id===ct)return we.call(qe,zt),qe}else return qe;else if(mn&&(zt=mn.getElementById(ct))&&Hn.contains(He,zt)&&zt.id===ct)return we.call(qe,zt),qe}else{if(Vt[2])return we.apply(qe,He.getElementsByTagName(Ne)),qe;if((ct=Vt[3])&&He.getElementsByClassName)return we.apply(qe,He.getElementsByClassName(ct)),qe}if(!$r[Ne+" "]&&(!Ye||!Ye.test(Ne))){if(cn=Ne,mn=He,En===1&&(Uu.test(Ne)||ps.test(Ne))){for(mn=zu.test(Ne)&&dd(He.parentNode)||He,(mn!=He||!_.scope)&&((Jt=He.getAttribute("id"))?Jt=w.escapeSelector(Jt):He.setAttribute("id",Jt=ut)),An=Dl(Ne),At=An.length;At--;)An[At]=(Jt?"#"+Jt:":scope")+" "+no(An[At]);cn=An.join(",")}try{return we.apply(qe,mn.querySelectorAll(cn)),qe}catch{$r(Ne,!0)}finally{Jt===ut&&He.removeAttribute("id")}}}return pd(Ne.replace(j,"$1"),He,qe,rt)}function kl(){var Ne=[];function He(qe,rt){return Ne.push(qe+" ")>L.cacheLength&&delete He[Ne.shift()],He[qe+" "]=rt}return He}function qr(Ne){return Ne[ut]=!0,Ne}function $o(Ne){var He=Me.createElement("fieldset");try{return!!Ne(He)}catch{return!1}finally{He.parentNode&&He.parentNode.removeChild(He),He=null}}function Fh(Ne){return function(He){return T(He,"input")&&He.type===Ne}}function Ui(Ne){return function(He){return(T(He,"input")||T(He,"button"))&&He.type===Ne}}function jh(Ne){return function(He){return"form"in He?He.parentNode&&He.disabled===!1?"label"in He?"label"in He.parentNode?He.parentNode.disabled===Ne:He.disabled===Ne:He.isDisabled===Ne||He.isDisabled!==!Ne&&Bh(He)===Ne:He.disabled===Ne:"label"in He?He.disabled===Ne:!1}}function ja(Ne){return qr(function(He){return He=+He,qr(function(qe,rt){for(var ct,At=Ne([],qe.length,He),zt=At.length;zt--;)qe[ct=At[zt]]&&(qe[ct]=!(rt[ct]=qe[ct]))})})}function dd(Ne){return Ne&&typeof Ne.getElementsByTagName!="undefined"&&Ne}function gs(Ne){var He,qe=Ne?Ne.ownerDocument||Ne:he;return qe==Me||qe.nodeType!==9||!qe.documentElement||(Me=qe,We=Me.documentElement,Fe=!w.isXMLDoc(Me),st=We.matches||We.webkitMatchesSelector||We.msMatchesSelector,he!=Me&&(He=Me.defaultView)&&He.top!==He&&He.addEventListener("unload",K_),_.getById=$o(function(rt){return We.appendChild(rt).id=w.expando,!Me.getElementsByName||!Me.getElementsByName(w.expando).length}),_.disconnectedMatch=$o(function(rt){return st.call(rt,"*")}),_.scope=$o(function(){return Me.querySelectorAll(":scope")}),_.cssHas=$o(function(){try{return Me.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(L.filter.ID=function(rt){var ct=rt.replace(Fa,ka);return function(At){return At.getAttribute("id")===ct}},L.find.ID=function(rt,ct){if(typeof ct.getElementById!="undefined"&&Fe){var At=ct.getElementById(rt);return At?[At]:[]}}):(L.filter.ID=function(rt){var ct=rt.replace(Fa,ka);return function(At){var zt=typeof At.getAttributeNode!="undefined"&&At.getAttributeNode("id");return zt&&zt.value===ct}},L.find.ID=function(rt,ct){if(typeof ct.getElementById!="undefined"&&Fe){var At,zt,Jt,Vt=ct.getElementById(rt);if(Vt){if(At=Vt.getAttributeNode("id"),At&&At.value===rt)return[Vt];for(Jt=ct.getElementsByName(rt),zt=0;Vt=Jt[zt++];)if(At=Vt.getAttributeNode("id"),At&&At.value===rt)return[Vt]}return[]}}),L.find.TAG=function(rt,ct){return typeof ct.getElementsByTagName!="undefined"?ct.getElementsByTagName(rt):ct.querySelectorAll(rt)},L.find.CLASS=function(rt,ct){if(typeof ct.getElementsByClassName!="undefined"&&Fe)return ct.getElementsByClassName(rt)},Ye=[],$o(function(rt){var ct;We.appendChild(rt).innerHTML="",rt.querySelectorAll("[selected]").length||Ye.push("\\["+z+"*(?:value|"+ia+")"),rt.querySelectorAll("[id~="+ut+"-]").length||Ye.push("~="),rt.querySelectorAll("a#"+ut+"+*").length||Ye.push(".#.+[+~]"),rt.querySelectorAll(":checked").length||Ye.push(":checked"),ct=Me.createElement("input"),ct.setAttribute("type","hidden"),rt.appendChild(ct).setAttribute("name","D"),We.appendChild(rt).disabled=!0,rt.querySelectorAll(":disabled").length!==2&&Ye.push(":enabled",":disabled"),ct=Me.createElement("input"),ct.setAttribute("name",""),rt.appendChild(ct),rt.querySelectorAll("[name='']").length||Ye.push("\\["+z+"*name"+z+"*="+z+`*(?:''|"")`)}),_.cssHas||Ye.push(":has"),Ye=Ye.length&&new RegExp(Ye.join("|")),pr=function(rt,ct){if(rt===ct)return _e=!0,0;var At=!rt.compareDocumentPosition-!ct.compareDocumentPosition;return At||(At=(rt.ownerDocument||rt)==(ct.ownerDocument||ct)?rt.compareDocumentPosition(ct):1,At&1||!_.sortDetached&&ct.compareDocumentPosition(rt)===At?rt===Me||rt.ownerDocument==he&&Hn.contains(he,rt)?-1:ct===Me||ct.ownerDocument==he&&Hn.contains(he,ct)?1:ne?h.call(ne,rt)-h.call(ne,ct):0:At&4?-1:1)}),Me}Hn.matches=function(Ne,He){return Hn(Ne,null,null,He)},Hn.matchesSelector=function(Ne,He){if(gs(Ne),Fe&&!$r[He+" "]&&(!Ye||!Ye.test(He)))try{var qe=st.call(Ne,He);if(qe||_.disconnectedMatch||Ne.document&&Ne.document.nodeType!==11)return qe}catch{$r(He,!0)}return Hn(He,Me,null,[Ne]).length>0},Hn.contains=function(Ne,He){return(Ne.ownerDocument||Ne)!=Me&&gs(Ne),w.contains(Ne,He)},Hn.attr=function(Ne,He){(Ne.ownerDocument||Ne)!=Me&&gs(Ne);var qe=L.attrHandle[He.toLowerCase()],rt=qe&&d.call(L.attrHandle,He.toLowerCase())?qe(Ne,He,!Fe):void 0;return rt!==void 0?rt:Ne.getAttribute(He)},Hn.error=function(Ne){throw new Error("Syntax error, unrecognized expression: "+Ne)},w.uniqueSort=function(Ne){var He,qe=[],rt=0,ct=0;if(_e=!_.sortStable,ne=!_.sortStable&&a.call(Ne,0),K.call(Ne,pr),_e){for(;He=Ne[ct++];)He===Ne[ct]&&(rt=qe.push(ct));for(;rt--;)N.call(Ne,qe[rt],1)}return ne=null,Ne},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(a.apply(this)))},L=w.expr={cacheLength:50,createPseudo:qr,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Ne){return Ne[1]=Ne[1].replace(Fa,ka),Ne[3]=(Ne[3]||Ne[4]||Ne[5]||"").replace(Fa,ka),Ne[2]==="~="&&(Ne[3]=" "+Ne[3]+" "),Ne.slice(0,4)},CHILD:function(Ne){return Ne[1]=Ne[1].toLowerCase(),Ne[1].slice(0,3)==="nth"?(Ne[3]||Hn.error(Ne[0]),Ne[4]=+(Ne[4]?Ne[5]+(Ne[6]||1):2*(Ne[3]==="even"||Ne[3]==="odd")),Ne[5]=+(Ne[7]+Ne[8]||Ne[3]==="odd")):Ne[3]&&Hn.error(Ne[0]),Ne},PSEUDO:function(Ne){var He,qe=!Ne[6]&&Ne[2];return oa.CHILD.test(Ne[0])?null:(Ne[3]?Ne[2]=Ne[4]||Ne[5]||"":qe&&sa.test(qe)&&(He=Dl(qe,!0))&&(He=qe.indexOf(")",qe.length-He)-qe.length)&&(Ne[0]=Ne[0].slice(0,He),Ne[2]=qe.slice(0,He)),Ne.slice(0,3))}},filter:{TAG:function(Ne){var He=Ne.replace(Fa,ka).toLowerCase();return Ne==="*"?function(){return!0}:function(qe){return T(qe,He)}},CLASS:function(Ne){var He=vn[Ne+" "];return He||(He=new RegExp("(^|"+z+")"+Ne+"("+z+"|$)"))&&vn(Ne,function(qe){return He.test(typeof qe.className=="string"&&qe.className||typeof qe.getAttribute!="undefined"&&qe.getAttribute("class")||"")})},ATTR:function(Ne,He,qe){return function(rt){var ct=Hn.attr(rt,Ne);return ct==null?He==="!=":He?(ct+="",He==="="?ct===qe:He==="!="?ct!==qe:He==="^="?qe&&ct.indexOf(qe)===0:He==="*="?qe&&ct.indexOf(qe)>-1:He==="$="?qe&&ct.slice(-qe.length)===qe:He==="~="?(" "+ct.replace(Nn," ")+" ").indexOf(qe)>-1:He==="|="?ct===qe||ct.slice(0,qe.length+1)===qe+"-":!1):!0}},CHILD:function(Ne,He,qe,rt,ct){var At=Ne.slice(0,3)!=="nth",zt=Ne.slice(-4)!=="last",Jt=He==="of-type";return rt===1&&ct===0?function(Vt){return!!Vt.parentNode}:function(Vt,An,cn){var mn,En,sn,Kn,vi,Kr=At!==zt?"nextSibling":"previousSibling",kr=Vt.parentNode,la=Jt&&Vt.nodeName.toLowerCase(),Lo=!cn&&!Jt,ei=!1;if(kr){if(At){for(;Kr;){for(sn=Vt;sn=sn[Kr];)if(Jt?T(sn,la):sn.nodeType===1)return!1;vi=Kr=Ne==="only"&&!vi&&"nextSibling"}return!0}if(vi=[zt?kr.firstChild:kr.lastChild],zt&&Lo){for(En=kr[ut]||(kr[ut]={}),mn=En[Ne]||[],Kn=mn[0]===et&&mn[1],ei=Kn&&mn[2],sn=Kn&&kr.childNodes[Kn];sn=++Kn&&sn&&sn[Kr]||(ei=Kn=0)||vi.pop();)if(sn.nodeType===1&&++ei&&sn===Vt){En[Ne]=[et,Kn,ei];break}}else if(Lo&&(En=Vt[ut]||(Vt[ut]={}),mn=En[Ne]||[],Kn=mn[0]===et&&mn[1],ei=Kn),ei===!1)for(;(sn=++Kn&&sn&&sn[Kr]||(ei=Kn=0)||vi.pop())&&!((Jt?T(sn,la):sn.nodeType===1)&&++ei&&(Lo&&(En=sn[ut]||(sn[ut]={}),En[Ne]=[et,ei]),sn===Vt)););return ei-=ct,ei===rt||ei%rt===0&&ei/rt>=0}}},PSEUDO:function(Ne,He){var qe,rt=L.pseudos[Ne]||L.setFilters[Ne.toLowerCase()]||Hn.error("unsupported pseudo: "+Ne);return rt[ut]?rt(He):rt.length>1?(qe=[Ne,Ne,"",He],L.setFilters.hasOwnProperty(Ne.toLowerCase())?qr(function(ct,At){for(var zt,Jt=rt(ct,He),Vt=Jt.length;Vt--;)zt=h.call(ct,Jt[Vt]),ct[zt]=!(At[zt]=Jt[Vt])}):function(ct){return rt(ct,0,qe)}):rt}},pseudos:{not:qr(function(Ne){var He=[],qe=[],rt=Ro(Ne.replace(j,"$1"));return rt[ut]?qr(function(ct,At,zt,Jt){for(var Vt,An=rt(ct,null,Jt,[]),cn=ct.length;cn--;)(Vt=An[cn])&&(ct[cn]=!(At[cn]=Vt))}):function(ct,At,zt){return He[0]=ct,rt(He,null,zt,qe),He[0]=null,!qe.pop()}}),has:qr(function(Ne){return function(He){return Hn(Ne,He).length>0}}),contains:qr(function(Ne){return Ne=Ne.replace(Fa,ka),function(He){return(He.textContent||w.text(He)).indexOf(Ne)>-1}}),lang:qr(function(Ne){return El.test(Ne||"")||Hn.error("unsupported lang: "+Ne),Ne=Ne.replace(Fa,ka).toLowerCase(),function(He){var qe;do if(qe=Fe?He.lang:He.getAttribute("xml:lang")||He.getAttribute("lang"))return qe=qe.toLowerCase(),qe===Ne||qe.indexOf(Ne+"-")===0;while((He=He.parentNode)&&He.nodeType===1);return!1}}),target:function(Ne){var He=t.location&&t.location.hash;return He&&He.slice(1)===Ne.id},root:function(Ne){return Ne===We},focus:function(Ne){return Ne===G_()&&Me.hasFocus()&&!!(Ne.type||Ne.href||~Ne.tabIndex)},enabled:jh(!1),disabled:jh(!0),checked:function(Ne){return T(Ne,"input")&&!!Ne.checked||T(Ne,"option")&&!!Ne.selected},selected:function(Ne){return Ne.parentNode&&Ne.parentNode.selectedIndex,Ne.selected===!0},empty:function(Ne){for(Ne=Ne.firstChild;Ne;Ne=Ne.nextSibling)if(Ne.nodeType<6)return!1;return!0},parent:function(Ne){return!L.pseudos.empty(Ne)},header:function(Ne){return ms.test(Ne.nodeName)},input:function(Ne){return vs.test(Ne.nodeName)},button:function(Ne){return T(Ne,"input")&&Ne.type==="button"||T(Ne,"button")},text:function(Ne){var He;return T(Ne,"input")&&Ne.type==="text"&&((He=Ne.getAttribute("type"))==null||He.toLowerCase()==="text")},first:ja(function(){return[0]}),last:ja(function(Ne,He){return[He-1]}),eq:ja(function(Ne,He,qe){return[qe<0?qe+He:qe]}),even:ja(function(Ne,He){for(var qe=0;qeHe?rt=He:rt=qe;--rt>=0;)Ne.push(rt);return Ne}),gt:ja(function(Ne,He,qe){for(var rt=qe<0?qe+He:qe;++rt1?function(He,qe,rt){for(var ct=Ne.length;ct--;)if(!Ne[ct](He,qe,rt))return!1;return!0}:Ne[0]}function zh(Ne,He,qe){for(var rt=0,ct=He.length;rt-1&&(zt[cn]=!(Jt[cn]=En))}}else sn=Wu(sn===Jt?sn.splice(Kr,sn.length):sn),ct?ct(null,Jt,sn,An):we.apply(Jt,sn)})}function hd(Ne){for(var He,qe,rt,ct=Ne.length,At=L.relative[Ne[0].type],zt=At||L.relative[" "],Jt=At?1:0,Vt=Ol(function(mn){return mn===He},zt,!0),An=Ol(function(mn){return h.call(He,mn)>-1},zt,!0),cn=[function(mn,En,sn){var Kn=!At&&(sn||En!=G)||((He=En).nodeType?Vt(mn,En,sn):An(mn,En,sn));return He=null,Kn}];Jt1&&Vu(cn),Jt>1&&no(Ne.slice(0,Jt-1).concat({value:Ne[Jt-2].type===" "?"*":""})).replace(j,"$1"),qe,Jt0,rt=Ne.length>0,ct=function(At,zt,Jt,Vt,An){var cn,mn,En,sn=0,Kn="0",vi=At&&[],Kr=[],kr=G,la=At||rt&&L.find.TAG("*",An),Lo=et+=kr==null?1:Math.random()||.1,ei=la.length;for(An&&(G=zt==Me||zt||An);Kn!==ei&&(cn=la[Kn])!=null;Kn++){if(rt&&cn){for(mn=0,!zt&&cn.ownerDocument!=Me&&(gs(cn),Jt=!Fe);En=Ne[mn++];)if(En(cn,zt||Me,Jt)){we.call(Vt,cn);break}An&&(et=Lo)}qe&&((cn=!En&&cn)&&sn--,At&&vi.push(cn))}if(sn+=Kn,qe&&Kn!==sn){for(mn=0;En=He[mn++];)En(vi,Kr,zt,Jt);if(At){if(sn>0)for(;Kn--;)vi[Kn]||Kr[Kn]||(Kr[Kn]=R.call(Vt));Kr=Wu(Kr)}we.apply(Vt,Kr),An&&!At&&Kr.length>0&&sn+He.length>1&&w.uniqueSort(Vt)}return An&&(et=Lo,G=kr),vi};return qe?qr(ct):ct}function Ro(Ne,He){var qe,rt=[],ct=[],At=Sn[Ne+" "];if(!At){for(He||(He=Dl(Ne)),qe=He.length;qe--;)At=hd(He[qe]),At[ut]?rt.push(At):ct.push(At);At=Sn(Ne,Vh(ct,rt)),At.selector=Ne}return At}function pd(Ne,He,qe,rt){var ct,At,zt,Jt,Vt,An=typeof Ne=="function"&&Ne,cn=!rt&&Dl(Ne=An.selector||Ne);if(qe=qe||[],cn.length===1){if(At=cn[0]=cn[0].slice(0),At.length>2&&(zt=At[0]).type==="ID"&&He.nodeType===9&&Fe&&L.relative[At[1].type]){if(He=(L.find.ID(zt.matches[0].replace(Fa,ka),He)||[])[0],He)An&&(He=He.parentNode);else return qe;Ne=Ne.slice(At.shift().value.length)}for(ct=oa.needsContext.test(Ne)?0:At.length;ct--&&(zt=At[ct],!L.relative[Jt=zt.type]);)if((Vt=L.find[Jt])&&(rt=Vt(zt.matches[0].replace(Fa,ka),zu.test(At[0].type)&&dd(He.parentNode)||He))){if(At.splice(ct,1),Ne=rt.length&&no(At),!Ne)return we.apply(qe,rt),qe;break}}return(An||Ro(Ne,cn))(rt,He,!Fe,qe,!He||zu.test(Ne)&&dd(He.parentNode)||He),qe}_.sortStable=ut.split("").sort(pr).join("")===ut,gs(),_.sortDetached=$o(function(Ne){return Ne.compareDocumentPosition(Me.createElement("fieldset"))&1}),w.find=Hn,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Hn.compile=Ro,Hn.select=pd,Hn.setDocument=gs,Hn.escape=w.escapeSelector,Hn.getText=w.text,Hn.isXML=w.isXMLDoc,Hn.selectors=w.expr,Hn.support=w.support,Hn.uniqueSort=w.uniqueSort})();var de=function(D,L,G){for(var ne=[],_e=G!==void 0;(D=D[L])&&D.nodeType!==9;)if(D.nodeType===1){if(_e&&w(D).is(G))break;ne.push(D)}return ne},Se=function(D,L){for(var G=[];D;D=D.nextSibling)D.nodeType===1&&D!==L&&G.push(D);return G},X=w.expr.match.needsContext,se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ce(D,L,G){return y(L)?w.grep(D,function(ne,_e){return!!L.call(ne,_e,ne)!==G}):L.nodeType?w.grep(D,function(ne){return ne===L!==G}):typeof L!="string"?w.grep(D,function(ne){return h.call(L,ne)>-1!==G}):w.filter(L,D,G)}w.filter=function(D,L,G){var ne=L[0];return G&&(D=":not("+D+")"),L.length===1&&ne.nodeType===1?w.find.matchesSelector(ne,D)?[ne]:[]:w.find.matches(D,w.grep(L,function(_e){return _e.nodeType===1}))},w.fn.extend({find:function(D){var L,G,ne=this.length,_e=this;if(typeof D!="string")return this.pushStack(w(D).filter(function(){for(L=0;L1?w.uniqueSort(G):G},filter:function(D){return this.pushStack(Ce(this,D||[],!1))},not:function(D){return this.pushStack(Ce(this,D||[],!0))},is:function(D){return!!Ce(this,typeof D=="string"&&X.test(D)?w(D):D||[],!1).length}});var be,re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Q=w.fn.init=function(D,L,G){var ne,_e;if(!D)return this;if(G=G||be,typeof D=="string")if(D[0]==="<"&&D[D.length-1]===">"&&D.length>=3?ne=[null,D,null]:ne=re.exec(D),ne&&(ne[1]||!L))if(ne[1]){if(L=L instanceof w?L[0]:L,w.merge(this,w.parseHTML(ne[1],L&&L.nodeType?L.ownerDocument||L:E,!0)),se.test(ne[1])&&w.isPlainObject(L))for(ne in L)y(this[ne])?this[ne](L[ne]):this.attr(ne,L[ne]);return this}else return _e=E.getElementById(ne[2]),_e&&(this[0]=_e,this.length=1),this;else return!L||L.jquery?(L||G).find(D):this.constructor(L).find(D);else{if(D.nodeType)return this[0]=D,this.length=1,this;if(y(D))return G.ready!==void 0?G.ready(D):D(w)}return w.makeArray(D,this)};Q.prototype=w.fn,be=w(E);var B=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(D){var L=w(D,this),G=L.length;return this.filter(function(){for(var ne=0;ne-1:G.nodeType===1&&w.find.matchesSelector(G,D))){we.push(G);break}}return this.pushStack(we.length>1?w.uniqueSort(we):we)},index:function(D){return D?typeof D=="string"?h.call(w(D),this[0]):h.call(this,D.jquery?D[0]:D):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(D,L){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(D,L))))},addBack:function(D){return this.add(D==null?this.prevObject:this.prevObject.filter(D))}});function Z(D,L){for(;(D=D[L])&&D.nodeType!==1;);return D}w.each({parent:function(D){var L=D.parentNode;return L&&L.nodeType!==11?L:null},parents:function(D){return de(D,"parentNode")},parentsUntil:function(D,L,G){return de(D,"parentNode",G)},next:function(D){return Z(D,"nextSibling")},prev:function(D){return Z(D,"previousSibling")},nextAll:function(D){return de(D,"nextSibling")},prevAll:function(D){return de(D,"previousSibling")},nextUntil:function(D,L,G){return de(D,"nextSibling",G)},prevUntil:function(D,L,G){return de(D,"previousSibling",G)},siblings:function(D){return Se((D.parentNode||{}).firstChild,D)},children:function(D){return Se(D.firstChild)},contents:function(D){return D.contentDocument!=null&&i(D.contentDocument)?D.contentDocument:(T(D,"template")&&(D=D.content||D),w.merge([],D.childNodes))}},function(D,L){w.fn[D]=function(G,ne){var _e=w.map(this,L,G);return D.slice(-5)!=="Until"&&(ne=G),ne&&typeof ne=="string"&&(_e=w.filter(ne,_e)),this.length>1&&(I[D]||w.uniqueSort(_e),B.test(D)&&_e.reverse()),this.pushStack(_e)}});var q=/[^\x20\t\r\n\f]+/g;function pe(D){var L={};return w.each(D.match(q)||[],function(G,ne){L[ne]=!0}),L}w.Callbacks=function(D){D=typeof D=="string"?pe(D):w.extend({},D);var L,G,ne,_e,we=[],Me=[],We=-1,Fe=function(){for(_e=_e||D.once,ne=L=!0;Me.length;We=-1)for(G=Me.shift();++We-1;)we.splice(et,1),et<=We&&We--}),this},has:function(st){return st?w.inArray(st,we)>-1:we.length>0},empty:function(){return we&&(we=[]),this},disable:function(){return _e=Me=[],we=G="",this},disabled:function(){return!we},lock:function(){return _e=Me=[],!G&&!L&&(we=G=""),this},locked:function(){return!!_e},fireWith:function(st,ut){return _e||(ut=ut||[],ut=[st,ut.slice?ut.slice():ut],Me.push(ut),L||Fe()),this},fire:function(){return Ye.fireWith(this,arguments),this},fired:function(){return!!ne}};return Ye};function Ee(D){return D}function J(D){throw D}function Y(D,L,G,ne){var _e;try{D&&y(_e=D.promise)?_e.call(D).done(L).fail(G):D&&y(_e=D.then)?_e.call(D,L,G):L.apply(void 0,[D].slice(ne))}catch(we){G.apply(void 0,[we])}}w.extend({Deferred:function(D){var L=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],G="pending",ne={state:function(){return G},always:function(){return _e.done(arguments).fail(arguments),this},catch:function(we){return ne.then(null,we)},pipe:function(){var we=arguments;return w.Deferred(function(Me){w.each(L,function(We,Fe){var Ye=y(we[Fe[4]])&&we[Fe[4]];_e[Fe[1]](function(){var st=Ye&&Ye.apply(this,arguments);st&&y(st.promise)?st.promise().progress(Me.notify).done(Me.resolve).fail(Me.reject):Me[Fe[0]+"With"](this,Ye?[st]:arguments)})}),we=null}).promise()},then:function(we,Me,We){var Fe=0;function Ye(st,ut,et,St){return function(){var vn=this,$n=arguments,Sn=function(){var pr,ia;if(!(st=Fe&&(et!==J&&(vn=void 0,$n=[pr]),ut.rejectWith(vn,$n))}};st?$r():(w.Deferred.getErrorHook?$r.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&($r.error=w.Deferred.getStackHook()),t.setTimeout($r))}}return w.Deferred(function(st){L[0][3].add(Ye(0,st,y(We)?We:Ee,st.notifyWith)),L[1][3].add(Ye(0,st,y(we)?we:Ee)),L[2][3].add(Ye(0,st,y(Me)?Me:J))}).promise()},promise:function(we){return we!=null?w.extend(we,ne):ne}},_e={};return w.each(L,function(we,Me){var We=Me[2],Fe=Me[5];ne[Me[1]]=We.add,Fe&&We.add(function(){G=Fe},L[3-we][2].disable,L[3-we][3].disable,L[0][2].lock,L[0][3].lock),We.add(Me[3].fire),_e[Me[0]]=function(){return _e[Me[0]+"With"](this===_e?void 0:this,arguments),this},_e[Me[0]+"With"]=We.fireWith}),ne.promise(_e),D&&D.call(_e,_e),_e},when:function(D){var L=arguments.length,G=L,ne=Array(G),_e=a.call(arguments),we=w.Deferred(),Me=function(We){return function(Fe){ne[We]=this,_e[We]=arguments.length>1?a.call(arguments):Fe,--L||we.resolveWith(ne,_e)}};if(L<=1&&(Y(D,we.done(Me(G)).resolve,we.reject,!L),we.state()==="pending"||y(_e[G]&&_e[G].then)))return we.then();for(;G--;)Y(_e[G],Me(G),we.reject);return we.promise()}});var ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(D,L){t.console&&t.console.warn&&D&&ae.test(D.name)&&t.console.warn("jQuery.Deferred exception: "+D.message,D.stack,L)},w.readyException=function(D){t.setTimeout(function(){throw D})};var te=w.Deferred();w.fn.ready=function(D){return te.then(D).catch(function(L){w.readyException(L)}),this},w.extend({isReady:!1,readyWait:1,ready:function(D){(D===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(D!==!0&&--w.readyWait>0)&&te.resolveWith(E,[w]))}}),w.ready.then=te.then;function Ae(){E.removeEventListener("DOMContentLoaded",Ae),t.removeEventListener("load",Ae),w.ready()}E.readyState==="complete"||E.readyState!=="loading"&&!E.documentElement.doScroll?t.setTimeout(w.ready):(E.addEventListener("DOMContentLoaded",Ae),t.addEventListener("load",Ae));var me=function(D,L,G,ne,_e,we,Me){var We=0,Fe=D.length,Ye=G==null;if(x(G)==="object"){_e=!0;for(We in G)me(D,L,We,G[We],!0,we,Me)}else if(ne!==void 0&&(_e=!0,y(ne)||(Me=!0),Ye&&(Me?(L.call(D,ne),L=null):(Ye=L,L=function(st,ut,et){return Ye.call(w(st),et)})),L))for(;We1,null,!0)},removeData:function(D){return this.each(function(){ee.remove(this,D)})}}),w.extend({queue:function(D,L,G){var ne;if(D)return L=(L||"fx")+"queue",ne=W.get(D,L),G&&(!ne||Array.isArray(G)?ne=W.access(D,L,w.makeArray(G)):ne.push(G)),ne||[]},dequeue:function(D,L){L=L||"fx";var G=w.queue(D,L),ne=G.length,_e=G.shift(),we=w._queueHooks(D,L),Me=function(){w.dequeue(D,L)};_e==="inprogress"&&(_e=G.shift(),ne--),_e&&(L==="fx"&&G.unshift("inprogress"),delete we.stop,_e.call(D,Me,we)),!ne&&we&&we.empty.fire()},_queueHooks:function(D,L){var G=L+"queueHooks";return W.get(D,G)||W.access(D,G,{empty:w.Callbacks("once memory").add(function(){W.remove(D,[L+"queue",G])})})}}),w.fn.extend({queue:function(D,L){var G=2;return typeof D!="string"&&(L=D,D="fx",G--),arguments.length\x20\t\r\n\f]*)/i,Yt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var D=E.createDocumentFragment(),L=D.appendChild(E.createElement("div")),G=E.createElement("input");G.setAttribute("type","radio"),G.setAttribute("checked","checked"),G.setAttribute("name","t"),L.appendChild(G),_.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="",_.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,L.innerHTML="",_.option=!!L.lastChild})();var jt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td,_.option||(jt.optgroup=jt.option=[1,""]);function Xt(D,L){var G;return typeof D.getElementsByTagName!="undefined"?G=D.getElementsByTagName(L||"*"):typeof D.querySelectorAll!="undefined"?G=D.querySelectorAll(L||"*"):G=[],L===void 0||L&&T(D,L)?w.merge([D],G):G}function rn(D,L){for(var G=0,ne=D.length;G-1){_e&&_e.push(we);continue}if(Ye=Dt(we),Me=Xt(ut.appendChild(we),"script"),Ye&&rn(Me),G)for(st=0;we=Me[st++];)Yt.test(we.type||"")&&G.push(we)}return ut}var yt=/^([^.]*)(?:\.(.+)|)/;function Bt(){return!0}function Oe(){return!1}function Be(D,L,G,ne,_e,we){var Me,We;if(typeof L=="object"){typeof G!="string"&&(ne=ne||G,G=void 0);for(We in L)Be(D,We,G,ne,L[We],we);return D}if(ne==null&&_e==null?(_e=G,ne=G=void 0):_e==null&&(typeof G=="string"?(_e=ne,ne=void 0):(_e=ne,ne=G,G=void 0)),_e===!1)_e=Oe;else if(!_e)return D;return we===1&&(Me=_e,_e=function(Fe){return w().off(Fe),Me.apply(this,arguments)},_e.guid=Me.guid||(Me.guid=w.guid++)),D.each(function(){w.event.add(this,L,_e,ne,G)})}w.event={global:{},add:function(D,L,G,ne,_e){var we,Me,We,Fe,Ye,st,ut,et,St,vn,$n,Sn=W.get(D);if(!!F(D))for(G.handler&&(we=G,G=we.handler,_e=we.selector),_e&&w.find.matchesSelector(xt,_e),G.guid||(G.guid=w.guid++),(Fe=Sn.events)||(Fe=Sn.events=Object.create(null)),(Me=Sn.handle)||(Me=Sn.handle=function($r){return typeof w!="undefined"&&w.event.triggered!==$r.type?w.event.dispatch.apply(D,arguments):void 0}),L=(L||"").match(q)||[""],Ye=L.length;Ye--;)We=yt.exec(L[Ye])||[],St=$n=We[1],vn=(We[2]||"").split(".").sort(),St&&(ut=w.event.special[St]||{},St=(_e?ut.delegateType:ut.bindType)||St,ut=w.event.special[St]||{},st=w.extend({type:St,origType:$n,data:ne,handler:G,guid:G.guid,selector:_e,needsContext:_e&&w.expr.match.needsContext.test(_e),namespace:vn.join(".")},we),(et=Fe[St])||(et=Fe[St]=[],et.delegateCount=0,(!ut.setup||ut.setup.call(D,ne,vn,Me)===!1)&&D.addEventListener&&D.addEventListener(St,Me)),ut.add&&(ut.add.call(D,st),st.handler.guid||(st.handler.guid=G.guid)),_e?et.splice(et.delegateCount++,0,st):et.push(st),w.event.global[St]=!0)},remove:function(D,L,G,ne,_e){var we,Me,We,Fe,Ye,st,ut,et,St,vn,$n,Sn=W.hasData(D)&&W.get(D);if(!(!Sn||!(Fe=Sn.events))){for(L=(L||"").match(q)||[""],Ye=L.length;Ye--;){if(We=yt.exec(L[Ye])||[],St=$n=We[1],vn=(We[2]||"").split(".").sort(),!St){for(St in Fe)w.event.remove(D,St+L[Ye],G,ne,!0);continue}for(ut=w.event.special[St]||{},St=(ne?ut.delegateType:ut.bindType)||St,et=Fe[St]||[],We=We[2]&&new RegExp("(^|\\.)"+vn.join("\\.(?:.*\\.|)")+"(\\.|$)"),Me=we=et.length;we--;)st=et[we],(_e||$n===st.origType)&&(!G||G.guid===st.guid)&&(!We||We.test(st.namespace))&&(!ne||ne===st.selector||ne==="**"&&st.selector)&&(et.splice(we,1),st.selector&&et.delegateCount--,ut.remove&&ut.remove.call(D,st));Me&&!et.length&&((!ut.teardown||ut.teardown.call(D,vn,Sn.handle)===!1)&&w.removeEvent(D,St,Sn.handle),delete Fe[St])}w.isEmptyObject(Fe)&&W.remove(D,"handle events")}},dispatch:function(D){var L,G,ne,_e,we,Me,We=new Array(arguments.length),Fe=w.event.fix(D),Ye=(W.get(this,"events")||Object.create(null))[Fe.type]||[],st=w.event.special[Fe.type]||{};for(We[0]=Fe,L=1;L=1)){for(;Ye!==this;Ye=Ye.parentNode||this)if(Ye.nodeType===1&&!(D.type==="click"&&Ye.disabled===!0)){for(we=[],Me={},G=0;G-1:w.find(_e,this,null,[Ye]).length),Me[_e]&&we.push(ne);we.length&&We.push({elem:Ye,handlers:we})}}return Ye=this,Fe\s*$/g;function ht(D,L){return T(D,"table")&&T(L.nodeType!==11?L:L.firstChild,"tr")&&w(D).children("tbody")[0]||D}function _t(D){return D.type=(D.getAttribute("type")!==null)+"/"+D.type,D}function Pt(D){return(D.type||"").slice(0,5)==="true/"?D.type=D.type.slice(5):D.removeAttribute("type"),D}function Ut(D,L){var G,ne,_e,we,Me,We,Fe;if(L.nodeType===1){if(W.hasData(D)&&(we=W.get(D),Fe=we.events,Fe)){W.remove(L,"handle events");for(_e in Fe)for(G=0,ne=Fe[_e].length;G1&&typeof St=="string"&&!_.checkClone&&nt.test(St))return D.each(function($n){var Sn=D.eq($n);vn&&(L[0]=St.call(this,$n,Sn.html())),$t(Sn,L,G,ne)});if(ut&&(_e=it(L,D[0].ownerDocument,!1,D,ne),we=_e.firstChild,_e.childNodes.length===1&&(_e=we),we||ne)){for(Me=w.map(Xt(_e,"script"),_t),We=Me.length;st0&&rn(Me,!Fe&&Xt(D,"script")),We},cleanData:function(D){for(var L,G,ne,_e=w.event.special,we=0;(G=D[we])!==void 0;we++)if(F(G)){if(L=G[W.expando]){if(L.events)for(ne in L.events)_e[ne]?w.event.remove(G,ne):w.removeEvent(G,ne,L.handle);G[W.expando]=void 0}G[ee.expando]&&(G[ee.expando]=void 0)}}}),w.fn.extend({detach:function(D){return tn(this,D,!0)},remove:function(D){return tn(this,D)},text:function(D){return me(this,function(L){return L===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=L)})},null,D,arguments.length)},append:function(){return $t(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=ht(this,D);L.appendChild(D)}})},prepend:function(){return $t(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=ht(this,D);L.insertBefore(D,L.firstChild)}})},before:function(){return $t(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this)})},after:function(){return $t(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this.nextSibling)})},empty:function(){for(var D,L=0;(D=this[L])!=null;L++)D.nodeType===1&&(w.cleanData(Xt(D,!1)),D.textContent="");return this},clone:function(D,L){return D=D==null?!1:D,L=L==null?D:L,this.map(function(){return w.clone(this,D,L)})},html:function(D){return me(this,function(L){var G=this[0]||{},ne=0,_e=this.length;if(L===void 0&&G.nodeType===1)return G.innerHTML;if(typeof L=="string"&&!Re.test(L)&&!jt[(Qt.exec(L)||["",""])[1].toLowerCase()]){L=w.htmlPrefilter(L);try{for(;ne<_e;ne++)G=this[ne]||{},G.nodeType===1&&(w.cleanData(Xt(G,!1)),G.innerHTML=L);G=0}catch{}}G&&this.empty().append(L)},null,D,arguments.length)},replaceWith:function(){var D=[];return $t(this,arguments,function(L){var G=this.parentNode;w.inArray(this,D)<0&&(w.cleanData(Xt(this)),G&&G.replaceChild(L,this))},D)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(D,L){w.fn[D]=function(G){for(var ne,_e=[],we=w(G),Me=we.length-1,We=0;We<=Me;We++)ne=We===Me?this:this.clone(!0),w(we[We])[L](ne),c.apply(_e,ne.get());return this.pushStack(_e)}});var nn=new RegExp("^("+Ve+")(?!px)[a-z%]+$","i"),an=/^--/,On=function(D){var L=D.ownerDocument.defaultView;return(!L||!L.opener)&&(L=t),L.getComputedStyle(D)},hr=function(D,L,G){var ne,_e,we={};for(_e in L)we[_e]=D.style[_e],D.style[_e]=L[_e];ne=G.call(D);for(_e in L)D.style[_e]=we[_e];return ne},br=new RegExp(vt.join("|"),"i");(function(){function D(){if(!!Ye){Fe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ye.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xt.appendChild(Fe).appendChild(Ye);var st=t.getComputedStyle(Ye);G=st.top!=="1%",We=L(st.marginLeft)===12,Ye.style.right="60%",we=L(st.right)===36,ne=L(st.width)===36,Ye.style.position="absolute",_e=L(Ye.offsetWidth/3)===12,xt.removeChild(Fe),Ye=null}}function L(st){return Math.round(parseFloat(st))}var G,ne,_e,we,Me,We,Fe=E.createElement("div"),Ye=E.createElement("div");!Ye.style||(Ye.style.backgroundClip="content-box",Ye.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=Ye.style.backgroundClip==="content-box",w.extend(_,{boxSizingReliable:function(){return D(),ne},pixelBoxStyles:function(){return D(),we},pixelPosition:function(){return D(),G},reliableMarginLeft:function(){return D(),We},scrollboxSize:function(){return D(),_e},reliableTrDimensions:function(){var st,ut,et,St;return Me==null&&(st=E.createElement("table"),ut=E.createElement("tr"),et=E.createElement("div"),st.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ut.style.cssText="border:1px solid",ut.style.height="1px",et.style.height="9px",et.style.display="block",xt.appendChild(st).appendChild(ut).appendChild(et),St=t.getComputedStyle(ut),Me=parseInt(St.height,10)+parseInt(St.borderTopWidth,10)+parseInt(St.borderBottomWidth,10)===ut.offsetHeight,xt.removeChild(st)),Me}}))})();function Vn(D,L,G){var ne,_e,we,Me,We=an.test(L),Fe=D.style;return G=G||On(D),G&&(Me=G.getPropertyValue(L)||G[L],We&&Me&&(Me=Me.replace(j,"$1")||void 0),Me===""&&!Dt(D)&&(Me=w.style(D,L)),!_.pixelBoxStyles()&&nn.test(Me)&&br.test(L)&&(ne=Fe.width,_e=Fe.minWidth,we=Fe.maxWidth,Fe.minWidth=Fe.maxWidth=Fe.width=Me,Me=G.width,Fe.width=ne,Fe.minWidth=_e,Fe.maxWidth=we)),Me!==void 0?Me+"":Me}function Qn(D,L){return{get:function(){if(D()){delete this.get;return}return(this.get=L).apply(this,arguments)}}}var Ur=["Webkit","Moz","ms"],wr=E.createElement("div").style,Fi={};function fi(D){for(var L=D[0].toUpperCase()+D.slice(1),G=Ur.length;G--;)if(D=Ur[G]+L,D in wr)return D}function Di(D){var L=w.cssProps[D]||Fi[D];return L||(D in wr?D:Fi[D]=fi(D)||D)}var na=/^(none|table(?!-c[ea]).+)/,Na={position:"absolute",visibility:"hidden",display:"block"},Oi={letterSpacing:"0",fontWeight:"400"};function ra(D,L,G){var ne=Je.exec(L);return ne?Math.max(0,ne[2]-(G||0))+(ne[3]||"px"):L}function hi(D,L,G,ne,_e,we){var Me=L==="width"?1:0,We=0,Fe=0,Ye=0;if(G===(ne?"border":"content"))return 0;for(;Me<4;Me+=2)G==="margin"&&(Ye+=w.css(D,G+vt[Me],!0,_e)),ne?(G==="content"&&(Fe-=w.css(D,"padding"+vt[Me],!0,_e)),G!=="margin"&&(Fe-=w.css(D,"border"+vt[Me]+"Width",!0,_e))):(Fe+=w.css(D,"padding"+vt[Me],!0,_e),G!=="padding"?Fe+=w.css(D,"border"+vt[Me]+"Width",!0,_e):We+=w.css(D,"border"+vt[Me]+"Width",!0,_e));return!ne&&we>=0&&(Fe+=Math.max(0,Math.ceil(D["offset"+L[0].toUpperCase()+L.slice(1)]-we-Fe-We-.5))||0),Fe+Ye}function Ie(D,L,G){var ne=On(D),_e=!_.boxSizingReliable()||G,we=_e&&w.css(D,"boxSizing",!1,ne)==="border-box",Me=we,We=Vn(D,L,ne),Fe="offset"+L[0].toUpperCase()+L.slice(1);if(nn.test(We)){if(!G)return We;We="auto"}return(!_.boxSizingReliable()&&we||!_.reliableTrDimensions()&&T(D,"tr")||We==="auto"||!parseFloat(We)&&w.css(D,"display",!1,ne)==="inline")&&D.getClientRects().length&&(we=w.css(D,"boxSizing",!1,ne)==="border-box",Me=Fe in D,Me&&(We=D[Fe])),We=parseFloat(We)||0,We+hi(D,L,G||(we?"border":"content"),Me,ne,We)+"px"}w.extend({cssHooks:{opacity:{get:function(D,L){if(L){var G=Vn(D,"opacity");return G===""?"1":G}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(D,L,G,ne){if(!(!D||D.nodeType===3||D.nodeType===8||!D.style)){var _e,we,Me,We=le(L),Fe=an.test(L),Ye=D.style;if(Fe||(L=Di(We)),Me=w.cssHooks[L]||w.cssHooks[We],G!==void 0){if(we=typeof G,we==="string"&&(_e=Je.exec(G))&&_e[1]&&(G=It(D,L,_e),we="number"),G==null||G!==G)return;we==="number"&&!Fe&&(G+=_e&&_e[3]||(w.cssNumber[We]?"":"px")),!_.clearCloneStyle&&G===""&&L.indexOf("background")===0&&(Ye[L]="inherit"),(!Me||!("set"in Me)||(G=Me.set(D,G,ne))!==void 0)&&(Fe?Ye.setProperty(L,G):Ye[L]=G)}else return Me&&"get"in Me&&(_e=Me.get(D,!1,ne))!==void 0?_e:Ye[L]}},css:function(D,L,G,ne){var _e,we,Me,We=le(L),Fe=an.test(L);return Fe||(L=Di(We)),Me=w.cssHooks[L]||w.cssHooks[We],Me&&"get"in Me&&(_e=Me.get(D,!0,G)),_e===void 0&&(_e=Vn(D,L,ne)),_e==="normal"&&L in Oi&&(_e=Oi[L]),G===""||G?(we=parseFloat(_e),G===!0||isFinite(we)?we||0:_e):_e}}),w.each(["height","width"],function(D,L){w.cssHooks[L]={get:function(G,ne,_e){if(ne)return na.test(w.css(G,"display"))&&(!G.getClientRects().length||!G.getBoundingClientRect().width)?hr(G,Na,function(){return Ie(G,L,_e)}):Ie(G,L,_e)},set:function(G,ne,_e){var we,Me=On(G),We=!_.scrollboxSize()&&Me.position==="absolute",Fe=We||_e,Ye=Fe&&w.css(G,"boxSizing",!1,Me)==="border-box",st=_e?hi(G,L,_e,Ye,Me):0;return Ye&&We&&(st-=Math.ceil(G["offset"+L[0].toUpperCase()+L.slice(1)]-parseFloat(Me[L])-hi(G,L,"border",!1,Me)-.5)),st&&(we=Je.exec(ne))&&(we[3]||"px")!=="px"&&(G.style[L]=ne,ne=w.css(G,L)),ra(G,ne,st)}}}),w.cssHooks.marginLeft=Qn(_.reliableMarginLeft,function(D,L){if(L)return(parseFloat(Vn(D,"marginLeft"))||D.getBoundingClientRect().left-hr(D,{marginLeft:0},function(){return D.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(D,L){w.cssHooks[D+L]={expand:function(G){for(var ne=0,_e={},we=typeof G=="string"?G.split(" "):[G];ne<4;ne++)_e[D+vt[ne]+L]=we[ne]||we[ne-2]||we[0];return _e}},D!=="margin"&&(w.cssHooks[D+L].set=ra)}),w.fn.extend({css:function(D,L){return me(this,function(G,ne,_e){var we,Me,We={},Fe=0;if(Array.isArray(ne)){for(we=On(G),Me=ne.length;Fe1)}});function Ue(D,L,G,ne,_e){return new Ue.prototype.init(D,L,G,ne,_e)}w.Tween=Ue,Ue.prototype={constructor:Ue,init:function(D,L,G,ne,_e,we){this.elem=D,this.prop=G,this.easing=_e||w.easing._default,this.options=L,this.start=this.now=this.cur(),this.end=ne,this.unit=we||(w.cssNumber[G]?"":"px")},cur:function(){var D=Ue.propHooks[this.prop];return D&&D.get?D.get(this):Ue.propHooks._default.get(this)},run:function(D){var L,G=Ue.propHooks[this.prop];return this.options.duration?this.pos=L=w.easing[this.easing](D,this.options.duration*D,0,1,this.options.duration):this.pos=L=D,this.now=(this.end-this.start)*L+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),G&&G.set?G.set(this):Ue.propHooks._default.set(this),this}},Ue.prototype.init.prototype=Ue.prototype,Ue.propHooks={_default:{get:function(D){var L;return D.elem.nodeType!==1||D.elem[D.prop]!=null&&D.elem.style[D.prop]==null?D.elem[D.prop]:(L=w.css(D.elem,D.prop,""),!L||L==="auto"?0:L)},set:function(D){w.fx.step[D.prop]?w.fx.step[D.prop](D):D.elem.nodeType===1&&(w.cssHooks[D.prop]||D.elem.style[Di(D.prop)]!=null)?w.style(D.elem,D.prop,D.now+D.unit):D.elem[D.prop]=D.now}}},Ue.propHooks.scrollTop=Ue.propHooks.scrollLeft={set:function(D){D.elem.nodeType&&D.elem.parentNode&&(D.elem[D.prop]=D.now)}},w.easing={linear:function(D){return D},swing:function(D){return .5-Math.cos(D*Math.PI)/2},_default:"swing"},w.fx=Ue.prototype.init,w.fx.step={};var Le,Ge,Ze=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function lt(){Ge&&(E.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(lt):t.setTimeout(lt,w.fx.interval),w.fx.tick())}function gt(){return t.setTimeout(function(){Le=void 0}),Le=Date.now()}function Ct(D,L){var G,ne=0,_e={height:D};for(L=L?1:0;ne<4;ne+=2-L)G=vt[ne],_e["margin"+G]=_e["padding"+G]=D;return L&&(_e.opacity=_e.width=D),_e}function Et(D,L,G){for(var ne,_e=(on.tweeners[L]||[]).concat(on.tweeners["*"]),we=0,Me=_e.length;we1)},removeAttr:function(D){return this.each(function(){w.removeAttr(this,D)})}}),w.extend({attr:function(D,L,G){var ne,_e,we=D.nodeType;if(!(we===3||we===8||we===2)){if(typeof D.getAttribute=="undefined")return w.prop(D,L,G);if((we!==1||!w.isXMLDoc(D))&&(_e=w.attrHooks[L.toLowerCase()]||(w.expr.match.bool.test(L)?Pn:void 0)),G!==void 0){if(G===null){w.removeAttr(D,L);return}return _e&&"set"in _e&&(ne=_e.set(D,G,L))!==void 0?ne:(D.setAttribute(L,G+""),G)}return _e&&"get"in _e&&(ne=_e.get(D,L))!==null?ne:(ne=w.find.attr(D,L),ne==null?void 0:ne)}},attrHooks:{type:{set:function(D,L){if(!_.radioValue&&L==="radio"&&T(D,"input")){var G=D.value;return D.setAttribute("type",L),G&&(D.value=G),L}}}},removeAttr:function(D,L){var G,ne=0,_e=L&&L.match(q);if(_e&&D.nodeType===1)for(;G=_e[ne++];)D.removeAttribute(G)}}),Pn={set:function(D,L,G){return L===!1?w.removeAttr(D,G):D.setAttribute(G,G),G}},w.each(w.expr.match.bool.source.match(/\w+/g),function(D,L){var G=wt[L]||w.find.attr;wt[L]=function(ne,_e,we){var Me,We,Fe=_e.toLowerCase();return we||(We=wt[Fe],wt[Fe]=Me,Me=G(ne,_e,we)!=null?Fe:null,wt[Fe]=We),Me}});var qn=/^(?:input|select|textarea|button)$/i,bn=/^(?:a|area)$/i;w.fn.extend({prop:function(D,L){return me(this,w.prop,D,L,arguments.length>1)},removeProp:function(D){return this.each(function(){delete this[w.propFix[D]||D]})}}),w.extend({prop:function(D,L,G){var ne,_e,we=D.nodeType;if(!(we===3||we===8||we===2))return(we!==1||!w.isXMLDoc(D))&&(L=w.propFix[L]||L,_e=w.propHooks[L]),G!==void 0?_e&&"set"in _e&&(ne=_e.set(D,G,L))!==void 0?ne:D[L]=G:_e&&"get"in _e&&(ne=_e.get(D,L))!==null?ne:D[L]},propHooks:{tabIndex:{get:function(D){var L=w.find.attr(D,"tabindex");return L?parseInt(L,10):qn.test(D.nodeName)||bn.test(D.nodeName)&&D.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(D){var L=D.parentNode;return L&&L.parentNode&&L.parentNode.selectedIndex,null},set:function(D){var L=D.parentNode;L&&(L.selectedIndex,L.parentNode&&L.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function Wn(D){var L=D.match(q)||[];return L.join(" ")}function Hr(D){return D.getAttribute&&D.getAttribute("class")||""}function zr(D){return Array.isArray(D)?D:typeof D=="string"?D.match(q)||[]:[]}w.fn.extend({addClass:function(D){var L,G,ne,_e,we,Me;return y(D)?this.each(function(We){w(this).addClass(D.call(this,We,Hr(this)))}):(L=zr(D),L.length?this.each(function(){if(ne=Hr(this),G=this.nodeType===1&&" "+Wn(ne)+" ",G){for(we=0;we-1;)G=G.replace(" "+_e+" "," ");Me=Wn(G),ne!==Me&&this.setAttribute("class",Me)}}):this):this.attr("class","")},toggleClass:function(D,L){var G,ne,_e,we,Me=typeof D,We=Me==="string"||Array.isArray(D);return y(D)?this.each(function(Fe){w(this).toggleClass(D.call(this,Fe,Hr(this),L),L)}):typeof L=="boolean"&&We?L?this.addClass(D):this.removeClass(D):(G=zr(D),this.each(function(){if(We)for(we=w(this),_e=0;_e-1)return!0;return!1}});var Qr=/\r/g;w.fn.extend({val:function(D){var L,G,ne,_e=this[0];return arguments.length?(ne=y(D),this.each(function(we){var Me;this.nodeType===1&&(ne?Me=D.call(this,we,w(this).val()):Me=D,Me==null?Me="":typeof Me=="number"?Me+="":Array.isArray(Me)&&(Me=w.map(Me,function(We){return We==null?"":We+""})),L=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!L||!("set"in L)||L.set(this,Me,"value")===void 0)&&(this.value=Me))})):_e?(L=w.valHooks[_e.type]||w.valHooks[_e.nodeName.toLowerCase()],L&&"get"in L&&(G=L.get(_e,"value"))!==void 0?G:(G=_e.value,typeof G=="string"?G.replace(Qr,""):G==null?"":G)):void 0}}),w.extend({valHooks:{option:{get:function(D){var L=w.find.attr(D,"value");return L!=null?L:Wn(w.text(D))}},select:{get:function(D){var L,G,ne,_e=D.options,we=D.selectedIndex,Me=D.type==="select-one",We=Me?null:[],Fe=Me?we+1:_e.length;for(we<0?ne=Fe:ne=Me?we:0;ne-1)&&(G=!0);return G||(D.selectedIndex=-1),we}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(D,L){if(Array.isArray(L))return D.checked=w.inArray(w(D).val(),L)>-1}},_.checkOn||(w.valHooks[this].get=function(D){return D.getAttribute("value")===null?"on":D.value})});var pi=t.location,mt={guid:Date.now()},Ba=/\?/;w.parseXML=function(D){var L,G;if(!D||typeof D!="string")return null;try{L=new t.DOMParser().parseFromString(D,"text/xml")}catch{}return G=L&&L.getElementsByTagName("parsererror")[0],(!L||G)&&w.error("Invalid XML: "+(G?w.map(G.childNodes,function(ne){return ne.textContent}).join(` `):D)),L};var Ru=/^(?:focusinfocus|focusoutblur)$/,Mo=function(D){D.stopPropagation()};w.extend(w.event,{trigger:function(D,L,G,ne){var _e,we,Me,We,Fe,Ye,st,ut,et=[G||E],St=d.call(D,"type")?D.type:D,vn=d.call(D,"namespace")?D.namespace.split("."):[];if(we=ut=Me=G=G||E,!(G.nodeType===3||G.nodeType===8)&&!Ru.test(St+w.event.triggered)&&(St.indexOf(".")>-1&&(vn=St.split("."),St=vn.shift(),vn.sort()),Fe=St.indexOf(":")<0&&"on"+St,D=D[w.expando]?D:new w.Event(St,typeof D=="object"&&D),D.isTrigger=ne?2:3,D.namespace=vn.join("."),D.rnamespace=D.namespace?new RegExp("(^|\\.)"+vn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,D.result=void 0,D.target||(D.target=G),L=L==null?[D]:w.makeArray(L,[D]),st=w.event.special[St]||{},!(!ne&&st.trigger&&st.trigger.apply(G,L)===!1))){if(!ne&&!st.noBubble&&!b(G)){for(We=st.delegateType||St,Ru.test(We+St)||(we=we.parentNode);we;we=we.parentNode)et.push(we),Me=we;Me===(G.ownerDocument||E)&&et.push(Me.defaultView||Me.parentWindow||t)}for(_e=0;(we=et[_e++])&&!D.isPropagationStopped();)ut=we,D.type=_e>1?We:st.bindType||St,Ye=(W.get(we,"events")||Object.create(null))[D.type]&&W.get(we,"handle"),Ye&&Ye.apply(we,L),Ye=Fe&&we[Fe],Ye&&Ye.apply&&F(we)&&(D.result=Ye.apply(we,L),D.result===!1&&D.preventDefault());return D.type=St,!ne&&!D.isDefaultPrevented()&&(!st._default||st._default.apply(et.pop(),L)===!1)&&F(G)&&Fe&&y(G[St])&&!b(G)&&(Me=G[Fe],Me&&(G[Fe]=null),w.event.triggered=St,D.isPropagationStopped()&&ut.addEventListener(St,Mo),G[St](),D.isPropagationStopped()&&ut.removeEventListener(St,Mo),w.event.triggered=void 0,Me&&(G[Fe]=Me)),D.result}},simulate:function(D,L,G){var ne=w.extend(new w.Event,G,{type:D,isSimulated:!0});w.event.trigger(ne,null,L)}}),w.fn.extend({trigger:function(D,L){return this.each(function(){w.event.trigger(D,L,this)})},triggerHandler:function(D,L){var G=this[0];if(G)return w.event.trigger(D,L,G,!0)}});var U_=/\[\]$/,Dh=/\r?\n/g,Oh=/^(?:submit|button|image|reset|file)$/i,Lu=/^(?:input|select|textarea|keygen)/i;function Nu(D,L,G,ne){var _e;if(Array.isArray(L))w.each(L,function(we,Me){G||U_.test(D)?ne(D,Me):Nu(D+"["+(typeof Me=="object"&&Me!=null?we:"")+"]",Me,G,ne)});else if(!G&&x(L)==="object")for(_e in L)Nu(D+"["+_e+"]",L[_e],G,ne);else ne(D,L)}w.param=function(D,L){var G,ne=[],_e=function(we,Me){var We=y(Me)?Me():Me;ne[ne.length]=encodeURIComponent(we)+"="+encodeURIComponent(We==null?"":We)};if(D==null)return"";if(Array.isArray(D)||D.jquery&&!w.isPlainObject(D))w.each(D,function(){_e(this.name,this.value)});else for(G in D)Nu(G,D[G],L,_e);return ne.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var D=w.prop(this,"elements");return D?w.makeArray(D):this}).filter(function(){var D=this.type;return this.name&&!w(this).is(":disabled")&&Lu.test(this.nodeName)&&!Oh.test(D)&&(this.checked||!Zt.test(D))}).map(function(D,L){var G=w(this).val();return G==null?null:Array.isArray(G)?w.map(G,function(ne){return{name:L.name,value:ne.replace(Dh,`\r `)}}):{name:L.name,value:G.replace(Dh,`\r `)}}).get()}});var Ph=/%20/g,z_=/#.*$/,V_=/([?&])_=[^&]*/,W_=/^(.*?):[ \t]*([^\r\n]*)$/mg,Th=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Bu=/^(?:GET|HEAD)$/,Ah=/^\/\//,od={},ld={},xl="*/".concat("*"),ud=E.createElement("a");ud.href=pi.href;function Mh(D){return function(L,G){typeof L!="string"&&(G=L,L="*");var ne,_e=0,we=L.toLowerCase().match(q)||[];if(y(G))for(;ne=we[_e++];)ne[0]==="+"?(ne=ne.slice(1)||"*",(D[ne]=D[ne]||[]).unshift(G)):(D[ne]=D[ne]||[]).push(G)}}function cd(D,L,G,ne){var _e={},we=D===ld;function Me(We){var Fe;return _e[We]=!0,w.each(D[We]||[],function(Ye,st){var ut=st(L,G,ne);if(typeof ut=="string"&&!we&&!_e[ut])return L.dataTypes.unshift(ut),Me(ut),!1;if(we)return!(Fe=ut)}),Fe}return Me(L.dataTypes[0])||!_e["*"]&&Me("*")}function Io(D,L){var G,ne,_e=w.ajaxSettings.flatOptions||{};for(G in L)L[G]!==void 0&&((_e[G]?D:ne||(ne={}))[G]=L[G]);return ne&&w.extend(!0,D,ne),D}function Ih(D,L,G){for(var ne,_e,we,Me,We=D.contents,Fe=D.dataTypes;Fe[0]==="*";)Fe.shift(),ne===void 0&&(ne=D.mimeType||L.getResponseHeader("Content-Type"));if(ne){for(_e in We)if(We[_e]&&We[_e].test(ne)){Fe.unshift(_e);break}}if(Fe[0]in G)we=Fe[0];else{for(_e in G){if(!Fe[0]||D.converters[_e+" "+Fe[0]]){we=_e;break}Me||(Me=_e)}we=we||Me}if(we)return we!==Fe[0]&&Fe.unshift(we),G[we]}function $h(D,L,G,ne){var _e,we,Me,We,Fe,Ye={},st=D.dataTypes.slice();if(st[1])for(Me in D.converters)Ye[Me.toLowerCase()]=D.converters[Me];for(we=st.shift();we;)if(D.responseFields[we]&&(G[D.responseFields[we]]=L),!Fe&&ne&&D.dataFilter&&(L=D.dataFilter(L,D.dataType)),Fe=we,we=st.shift(),we){if(we==="*")we=Fe;else if(Fe!=="*"&&Fe!==we){if(Me=Ye[Fe+" "+we]||Ye["* "+we],!Me){for(_e in Ye)if(We=_e.split(" "),We[1]===we&&(Me=Ye[Fe+" "+We[0]]||Ye["* "+We[0]],Me)){Me===!0?Me=Ye[_e]:Ye[_e]!==!0&&(we=We[0],st.unshift(We[1]));break}}if(Me!==!0)if(Me&&D.throws)L=Me(L);else try{L=Me(L)}catch(ut){return{state:"parsererror",error:Me?ut:"No conversion from "+Fe+" to "+we}}}}return{state:"success",data:L}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pi.href,type:"GET",isLocal:Th.test(pi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xl,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(D,L){return L?Io(Io(D,w.ajaxSettings),L):Io(w.ajaxSettings,D)},ajaxPrefilter:Mh(od),ajaxTransport:Mh(ld),ajax:function(D,L){typeof D=="object"&&(L=D,D=void 0),L=L||{};var G,ne,_e,we,Me,We,Fe,Ye,st,ut,et=w.ajaxSetup({},L),St=et.context||et,vn=et.context&&(St.nodeType||St.jquery)?w(St):w.event,$n=w.Deferred(),Sn=w.Callbacks("once memory"),$r=et.statusCode||{},pr={},ia={},aa="canceled",Mn={readyState:0,getResponseHeader:function(Nn){var or;if(Fe){if(!we)for(we={};or=W_.exec(_e);)we[or[1].toLowerCase()+" "]=(we[or[1].toLowerCase()+" "]||[]).concat(or[2]);or=we[Nn.toLowerCase()+" "]}return or==null?null:or.join(", ")},getAllResponseHeaders:function(){return Fe?_e:null},setRequestHeader:function(Nn,or){return Fe==null&&(Nn=ia[Nn.toLowerCase()]=ia[Nn.toLowerCase()]||Nn,pr[Nn]=or),this},overrideMimeType:function(Nn){return Fe==null&&(et.mimeType=Nn),this},statusCode:function(Nn){var or;if(Nn)if(Fe)Mn.always(Nn[Mn.status]);else for(or in Nn)$r[or]=[$r[or],Nn[or]];return this},abort:function(Nn){var or=Nn||aa;return G&&G.abort(or),to(0,or),this}};if($n.promise(Mn),et.url=((D||et.url||pi.href)+"").replace(Ah,pi.protocol+"//"),et.type=L.method||L.type||et.method||et.type,et.dataTypes=(et.dataType||"*").toLowerCase().match(q)||[""],et.crossDomain==null){We=E.createElement("a");try{We.href=et.url,We.href=We.href,et.crossDomain=ud.protocol+"//"+ud.host!=We.protocol+"//"+We.host}catch{et.crossDomain=!0}}if(et.data&&et.processData&&typeof et.data!="string"&&(et.data=w.param(et.data,et.traditional)),cd(od,et,L,Mn),Fe)return Mn;Ye=w.event&&et.global,Ye&&w.active++===0&&w.event.trigger("ajaxStart"),et.type=et.type.toUpperCase(),et.hasContent=!Bu.test(et.type),ne=et.url.replace(z_,""),et.hasContent?et.data&&et.processData&&(et.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(et.data=et.data.replace(Ph,"+")):(ut=et.url.slice(ne.length),et.data&&(et.processData||typeof et.data=="string")&&(ne+=(Ba.test(ne)?"&":"?")+et.data,delete et.data),et.cache===!1&&(ne=ne.replace(V_,"$1"),ut=(Ba.test(ne)?"&":"?")+"_="+mt.guid+++ut),et.url=ne+ut),et.ifModified&&(w.lastModified[ne]&&Mn.setRequestHeader("If-Modified-Since",w.lastModified[ne]),w.etag[ne]&&Mn.setRequestHeader("If-None-Match",w.etag[ne])),(et.data&&et.hasContent&&et.contentType!==!1||L.contentType)&&Mn.setRequestHeader("Content-Type",et.contentType),Mn.setRequestHeader("Accept",et.dataTypes[0]&&et.accepts[et.dataTypes[0]]?et.accepts[et.dataTypes[0]]+(et.dataTypes[0]!=="*"?", "+xl+"; q=0.01":""):et.accepts["*"]);for(st in et.headers)Mn.setRequestHeader(st,et.headers[st]);if(et.beforeSend&&(et.beforeSend.call(St,Mn,et)===!1||Fe))return Mn.abort();if(aa="abort",Sn.add(et.complete),Mn.done(et.success),Mn.fail(et.error),G=cd(ld,et,L,Mn),!G)to(-1,"No Transport");else{if(Mn.readyState=1,Ye&&vn.trigger("ajaxSend",[Mn,et]),Fe)return Mn;et.async&&et.timeout>0&&(Me=t.setTimeout(function(){Mn.abort("timeout")},et.timeout));try{Fe=!1,G.send(pr,to)}catch(Nn){if(Fe)throw Nn;to(-1,Nn)}}function to(Nn,or,ps,Uu){var sa,El,oa,vs,ms,ji=or;Fe||(Fe=!0,Me&&t.clearTimeout(Me),G=void 0,_e=Uu||"",Mn.readyState=Nn>0?4:0,sa=Nn>=200&&Nn<300||Nn===304,ps&&(vs=Ih(et,Mn,ps)),!sa&&w.inArray("script",et.dataTypes)>-1&&w.inArray("json",et.dataTypes)<0&&(et.converters["text script"]=function(){}),vs=$h(et,vs,Mn,sa),sa?(et.ifModified&&(ms=Mn.getResponseHeader("Last-Modified"),ms&&(w.lastModified[ne]=ms),ms=Mn.getResponseHeader("etag"),ms&&(w.etag[ne]=ms)),Nn===204||et.type==="HEAD"?ji="nocontent":Nn===304?ji="notmodified":(ji=vs.state,El=vs.data,oa=vs.error,sa=!oa)):(oa=ji,(Nn||!ji)&&(ji="error",Nn<0&&(Nn=0))),Mn.status=Nn,Mn.statusText=(or||ji)+"",sa?$n.resolveWith(St,[El,ji,Mn]):$n.rejectWith(St,[Mn,ji,oa]),Mn.statusCode($r),$r=void 0,Ye&&vn.trigger(sa?"ajaxSuccess":"ajaxError",[Mn,et,sa?El:oa]),Sn.fireWith(St,[Mn,ji]),Ye&&(vn.trigger("ajaxComplete",[Mn,et]),--w.active||w.event.trigger("ajaxStop")))}return Mn},getJSON:function(D,L,G){return w.get(D,L,G,"json")},getScript:function(D,L){return w.get(D,void 0,L,"script")}}),w.each(["get","post"],function(D,L){w[L]=function(G,ne,_e,we){return y(ne)&&(we=we||_e,_e=ne,ne=void 0),w.ajax(w.extend({url:G,type:L,dataType:we,data:ne,success:_e},w.isPlainObject(G)&&G))}}),w.ajaxPrefilter(function(D){var L;for(L in D.headers)L.toLowerCase()==="content-type"&&(D.contentType=D.headers[L]||"")}),w._evalUrl=function(D,L,G){return w.ajax({url:D,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(ne){w.globalEval(ne,L,G)}})},w.fn.extend({wrapAll:function(D){var L;return this[0]&&(y(D)&&(D=D.call(this[0])),L=w(D,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&L.insertBefore(this[0]),L.map(function(){for(var G=this;G.firstElementChild;)G=G.firstElementChild;return G}).append(this)),this},wrapInner:function(D){return y(D)?this.each(function(L){w(this).wrapInner(D.call(this,L))}):this.each(function(){var L=w(this),G=L.contents();G.length?G.wrapAll(D):L.append(D)})},wrap:function(D){var L=y(D);return this.each(function(G){w(this).wrapAll(L?D.call(this,G):D)})},unwrap:function(D){return this.parent(D).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(D){return!w.expr.pseudos.visible(D)},w.expr.pseudos.visible=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var H_={0:200,1223:204},Sl=w.ajaxSettings.xhr();_.cors=!!Sl&&"withCredentials"in Sl,_.ajax=Sl=!!Sl,w.ajaxTransport(function(D){var L,G;if(_.cors||Sl&&!D.crossDomain)return{send:function(ne,_e){var we,Me=D.xhr();if(Me.open(D.type,D.url,D.async,D.username,D.password),D.xhrFields)for(we in D.xhrFields)Me[we]=D.xhrFields[we];D.mimeType&&Me.overrideMimeType&&Me.overrideMimeType(D.mimeType),!D.crossDomain&&!ne["X-Requested-With"]&&(ne["X-Requested-With"]="XMLHttpRequest");for(we in ne)Me.setRequestHeader(we,ne[we]);L=function(We){return function(){L&&(L=G=Me.onload=Me.onerror=Me.onabort=Me.ontimeout=Me.onreadystatechange=null,We==="abort"?Me.abort():We==="error"?typeof Me.status!="number"?_e(0,"error"):_e(Me.status,Me.statusText):_e(H_[Me.status]||Me.status,Me.statusText,(Me.responseType||"text")!=="text"||typeof Me.responseText!="string"?{binary:Me.response}:{text:Me.responseText},Me.getAllResponseHeaders()))}},Me.onload=L(),G=Me.onerror=Me.ontimeout=L("error"),Me.onabort!==void 0?Me.onabort=G:Me.onreadystatechange=function(){Me.readyState===4&&t.setTimeout(function(){L&&G()})},L=L("abort");try{Me.send(D.hasContent&&D.data||null)}catch(We){if(L)throw We}},abort:function(){L&&L()}}}),w.ajaxPrefilter(function(D){D.crossDomain&&(D.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(D){return w.globalEval(D),D}}}),w.ajaxPrefilter("script",function(D){D.cache===void 0&&(D.cache=!1),D.crossDomain&&(D.type="GET")}),w.ajaxTransport("script",function(D){if(D.crossDomain||D.scriptAttrs){var L,G;return{send:function(ne,_e){L=w("