const ZN="0.8.11",_1=typeof window!="undefined",QN=typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Function("return this")();function qN(e){return e===void 0}function ss(e){return typeof e=="string"}function y1(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 R0(e){return toString.call(e)==="[object Promise]"}function L0(e){return Er(e)&&e.name.indexOf("bound ")===0&&!e.hasOwnProperty("prototype")}function eF(e){return typeof ShadowRoot!="undefined"&&e instanceof ShadowRoot}const hc=Object.defineProperty,tF=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 Gf(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 b1(e){return e.startsWith("//")?`${location.protocol}${e}`:e}function N0(e,t=null){if(!ss(e)||!e)return"";try{const{origin:n,pathname:r,search:i}=new URL(b1(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 R6(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,R6(b1(t))).toString()}function nF(e){const t=e.split("/");return t.pop(),b1(t.join("/")+"/")}function Mg(e,t,n,r){let i=0;function a(){++i===e.length&&r&&r()}e.forEach((l,c)=>{R0(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 rF(){const e=document.createElement("script");return"noModule"in e}function iF(){return"inline-"+Math.random().toString(36).substr(2,15)}function aF(e){return e.filter(function(t){return t in this?!1:this[t]=!0},Object.create(null))}const w1=QN.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},50)};let C1=null;function Pc(e){C1=e}function cv(e){C1!==e&&(Pc(e),vo(()=>{Pc(null)}))}function ga(){return C1}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 dv(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 fv(e){return!e||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(e)}function by(e){return/^body$/i.test(e)||/^head$/i.test(e)||/^html$/i.test(e)}function Yf(e){return eF(e)?e.host:e}function wy(e){return e?e.replace(/^\s+|\s+$/g,""):""}function U5(){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 ks;(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"})(ks||(ks={}));var Ns;(function(e){e.KEEP_ALIVE_SHOW="KEEP_ALIVE_SHOW",e.KEEP_ALIVE_HIDDEN="KEEP_ALIVE_HIDDEN"})(Ns||(Ns={}));const j5="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(sr.fetch)?sr.fetch(e,n,t):fetch(e,n).then(r=>r.text())}class x1{static getInstance(){return this.instance||(this.instance=new x1),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,sr.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 sF=/(^|\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 oF{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(),U5()?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=wy(a),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(a))||sF.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=nF(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=wy(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(wy(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){U5()?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=`${sr.tagName}[name=${t.name}]`;if(hf||(hf=new oF),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 L6(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");L6(t,e),Er(e.onload)?e.onload(t):e.dispatchEvent(t)}function N6(e){const t=new CustomEvent("error");L6(t,e),Er(e.onerror)?e.onerror(t):e.dispatchEvent(t)}const sl=new Map;function F6(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 lF(e,t,n){const r=Array.from(t.source.links.entries()),i=r.map(([a])=>sl.has(a)?sl.get(a):xu(a,t.name));Mg(i,a=>{uF(r[a.index][0],r[a.index][1],a.data,n,t)},a=>{Zn(a,t.name)},()=>{t.onLoad(e)})}function uF(e,t,n,r,i){t.isGlobal&&!sl.has(e)&&sl.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 cF(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(sl.has(e)){const a=sl.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&&sl.set(e,a),i.textContent=a,ru(i,n),pf(r)}).catch(a=>{Zn(a,n.name),N6(r)})}const jo=new WeakMap;function dF(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")||S1(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")||E1(t.getAttribute("href"),n.name)||t.href&&Er(sr.excludeAssetFilter)&&sr.excludeAssetFilter(t.href))return t;const{url:r,info:i,replaceComment:a}=F6(t,e,n,!0);if(r&&i){const l=Cu("style");return l.__MICRO_APP_LINK_PATH__=r,cF(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(sr.excludeAssetFilter)&&sr.excludeAssetFilter(t.src))return t;const{replaceComment:r,url:i,info:a}=V6(t,e,n,!0)||{};if(i&&a)if(a.isExternal){const l=DF(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 B6(e,t,n,r,i){const a=hF(n,e);return a?i&&!a.contains(i)?Bt.rawAppendChild.call(a,r):t===Bt.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 fF(e)?e.call(t,n):e.call(t,n,r)}function fF(e){return e===Bt.rawAppend||e===Bt.rawPrepend}function hF(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 U6(e){var t;return(t=jo.get(e))!==null&&t!==void 0?t:e}function kd(e,t,n,r){if(t!=null&&t.__MICRO_APP_NAME__){const i=ar.get(t.__MICRO_APP_NAME__);return i!=null&&i.container?B6(i,r,e,dF(e,t,i),n&&U6(n)):r===Bt.rawAppend||r===Bt.rawPrepend?r.call(e,t):r.call(e,t,n)}else if(r===Bt.rawAppend||r===Bt.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 pF(){vF(),Element.prototype.appendChild=function(t){return kd(this,t,null,Bt.rawAppendChild)},Element.prototype.insertBefore=function(t,n){return kd(this,t,n,Bt.rawInsertBefore)},Element.prototype.replaceChild=function(t,n){return kd(this,t,n,Bt.rawReplaceChild)},Element.prototype.append=function(...t){let n=0;const r=t.length;for(;n0;)kd(this,t[n-1],null,Bt.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?B6(n,Bt.rawRemoveChild,this,U6(t)):Bt.rawRemoveChild.call(this,t)}return Bt.rawRemoveChild.call(this,t)},Element.prototype.cloneNode=function(t){const n=Bt.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(n.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),n}}function Cy(e){const t=ga();return t&&(e.__MICRO_APP_NAME__=t),e}function vF(){const e=Bt.rawDocument;Document.prototype.createElement=function(i,a){const l=Bt.rawCreateElement.call(this,i,a);return Cy(l)},Document.prototype.createElementNS=function(i,a,l){const c=Bt.rawCreateElementNS.call(this,i,a,l);return Cy(c)},Document.prototype.createDocumentFragment=function(){const i=Bt.rawCreateDocumentFragment.call(this);return Cy(i)};function t(r){var i,a,l;const c=ga();return!c||!r||by(r)||e!==this?Bt.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||by(r)||e!==this?Bt.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()||fv(i))return Bt.rawGetElementById.call(this,i);try{return t.call(this,`#${i}`)}catch{return Bt.rawGetElementById.call(this,i)}},Document.prototype.getElementsByClassName=function(i){if(!ga()||fv(i))return Bt.rawGetElementsByClassName.call(this,i);try{return n.call(this,`.${i}`)}catch{return Bt.rawGetElementsByClassName.call(this,i)}},Document.prototype.getElementsByTagName=function(i){var a;const l=ga();if(!l||by(i)||fv(i)||!(!((a=ar.get(l))===null||a===void 0)&&a.inline)&&/^script$/i.test(i))return Bt.rawGetElementsByTagName.call(this,i);try{return n.call(this,i)}catch{return Bt.rawGetElementsByTagName.call(this,i)}},Document.prototype.getElementsByName=function(i){if(!ga()||fv(i))return Bt.rawGetElementsByName.call(this,i);try{return n.call(this,`[name=${i}]`)}catch{return Bt.rawGetElementsByName.call(this,i)}}}let F0=!1;function mF(){F0||(F0=!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]"&&Gf("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__);Bt.rawSetAttribute.call(this,t,Co(n,r.url))}else Bt.rawSetAttribute.call(this,t,n)})}function gF(){F0=!1,Element.prototype.setAttribute=Bt.rawSetAttribute}function _F(){Document.prototype.createElement=Bt.rawCreateElement,Document.prototype.createElementNS=Bt.rawCreateElementNS,Document.prototype.createDocumentFragment=Bt.rawCreateDocumentFragment,Document.prototype.querySelector=Bt.rawQuerySelector,Document.prototype.querySelectorAll=Bt.rawQuerySelectorAll,Document.prototype.getElementById=Bt.rawGetElementById,Document.prototype.getElementsByClassName=Bt.rawGetElementsByClassName,Document.prototype.getElementsByTagName=Bt.rawGetElementsByTagName,Document.prototype.getElementsByName=Bt.rawGetElementsByName}function yF(){Pc(null),_F(),Element.prototype.appendChild=Bt.rawAppendChild,Element.prototype.insertBefore=Bt.rawInsertBefore,Element.prototype.replaceChild=Bt.rawReplaceChild,Element.prototype.removeChild=Bt.rawRemoveChild,Element.prototype.append=Bt.rawAppend,Element.prototype.prepend=Bt.rawPrepend,Element.prototype.cloneNode=Bt.rawCloneNode}let H5=!1;function bF(){if(!H5){H5=!0;const e=Cu("style");Bt.rawSetAttribute.call(e,"type","text/css"),e.textContent=` ${sr.tagName}, micro-app-body { display: block; } micro-app-head { display: none; }`,Bt.rawDocument.head.appendChild(e)}}class Rm{constructor(){this.appInstanceMap=ar}static getInstance(){return this.instance||(this.instance=new Rm),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 j6(){z6(),Rm.getInstance().getAll().forEach(e=>{e.container&&Yf(e.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&Rm.getInstance().clear()}function wF(){window.__MICRO_APP_ENVIRONMENT__&&window.addEventListener("unmount",j6,!1)}function z6(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",j6,!1)}const Bt={};function CF(){if(_1){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,U){const oe=new z(...U);return oe.__MICRO_APP_NAME__=ga(),oe}}),O=Function("return window")(),x=Function("return document")(),C=rF(),D=O.addEventListener,P=O.removeEventListener,w=O.setInterval,M=O.setTimeout,T=O.clearInterval,R=O.clearTimeout,K=x.addEventListener,N=x.removeEventListener;window.__MICRO_APP_BASE_APPLICATION__=!0,Object.assign(Bt,{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:x,supportModuleScript:C,rawWindowAddEventListener:D,rawWindowRemoveEventListener:P,rawSetInterval:w,rawSetTimeout:M,rawClearInterval:T,rawClearTimeout:R,rawDocumentAddEventListener:K,rawDocumentRemoveEventListener:N}),bF(),z6(),wF()}}const iu=new Map;function V6(e,t,n,r=!1){let i=null,a=e.getAttribute("src");if(a&&(a=Co(a,n.url)),e.hasAttribute("exclude")||S1(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")||E1(a,n.name))return null;if(Bt.supportModuleScript&&e.noModule||!Bt.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=iF(),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 W6(e){var t,n,r;const i=((t=sr.plugins)===null||t===void 0?void 0:t.global)||[],a=((r=(n=sr.plugins)===null||n===void 0?void 0:n.modules)===null||r===void 0?void 0:r[e])||[];return[...i,...a]}function S1(e,t){return e?(W6(t)||[]).some(r=>r.excludeChecker?r.excludeChecker(e):!1):!1}function E1(e,t){return e?(W6(t)||[]).some(r=>r.ignoreChecker?r.ignoreChecker(e):!1):!1}function xF(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=>{SF(i[a.index][0],i[a.index][1],a.data)},a=>{Zn(a,t.name)},()=>{t.onLoad(e)}):t.onLoad(e)}function SF(e,t,n){t.isGlobal&&!iu.has(e)&&iu.set(e,n),t.code=n}function EF(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(qN(n.moduleCount)||n.errorCount===i.length)}):n(!0)}function Pf(e,t,n,r,i){var a;try{const l=G6(e,t,n.code,n);if(t.inline||n.module){const c=Cu("script");if(H6(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(K6(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 DF(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=G6(e,n,l,t),n.inline||t.module?H6(e,l,t.module,a,i):K6(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),N6(r)}),a}function H6(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 K6(e,t){t.code2Function||(t.code2Function=new Function(e)),t.code2Function.call(window)}function G6(e,t,n,r){return Xi(sr.plugins)&&(n=kF(e,n,t.name,sr.plugins,r)),t.sandBox&&!r.module?(Bt.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow,`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${j5}){;${n} }).call(proxyWindow,${j5})}})(window.__MICRO_APP_PROXY_WINDOW__);`):n}function kF(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 OF(e){const t=Cu("div");return t.innerHTML=e,t}function Y6(e,t,n){const r=Array.from(e.children);r.length&&r.forEach(i=>{Y6(i,t)});for(const i of r)i instanceof HTMLLinkElement?i.hasAttribute("exclude")||S1(i.getAttribute("href"),t.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),i):i.hasAttribute("ignore")||E1(i.getAttribute("href"),t.name)?i.hasAttribute("href")&&i.setAttribute("href",Co(i.getAttribute("href"),t.url)):F6(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?V6(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 PF(e,t){const n=OF(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)}Y6(n,t),t.source.links.size?lF(n,t,r):t.onLoad(n),t.source.scripts.size?xF(n,t):t.onLoad(n)}class TF{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 TF;function qa(e,t){return!ss(e)||!e?"":t?`__from_base_app_${e}__`:`__from_micro_app_${e}__`}class X6{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 AF extends X6{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 MF extends X6{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}});Yf(n.container).dispatchEvent(r)}}clearDataListener(){li.off(qa(this.appName,!0))}}function IF(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 $F(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 RF(e){return y1(e.__MICRO_APP_IS_BOUND_FUNCTION__)?e.__MICRO_APP_IS_BOUND_FUNCTION__:e.__MICRO_APP_IS_BOUND_FUNCTION__=L0(e)}function LF(e){var t;if(y1(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 NF(e,t){if(t.__MICRO_APP_BOUND_WINDOW_FUNCTION__)return t.__MICRO_APP_BOUND_WINDOW_FUNCTION__;if(!LF(t)&&!RF(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 Xo=new Map;let J6=!1;function FF(){if(J6=!0,Object.getOwnPropertyDescriptor(document,"onclick"))return Gf("Cannot redefine document property onclick");const e=document.onclick;document.onclick=null;let t=!1;function n(r){Xo.forEach(i=>{Er(i)&&i.call(document,r)})}hc(document,"onclick",{configurable:!0,enumerable:!0,get(){const r=ga();return r?Xo.get(r):Xo.get("base")},set(r){const i=ga();i?Xo.set(i,r):Xo.set("base",r),!t&&Er(r)&&(t=!0,Bt.rawDocumentAddEventListener.call(Bt.rawDocument,"click",n,!1))}}),e&&(document.onclick=e)}const vf=new Map;function BF(){const{rawDocument:e,rawDocumentAddEventListener:t,rawDocumentRemoveEventListener:n}=Bt;!J6&&FF(),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)&&L0(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)&&L0(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 UF(){document.addEventListener=Bt.rawDocumentAddEventListener,document.removeEventListener=Bt.rawDocumentRemoveEventListener}const jF=["unmount","appstate-change"];function G5(e,t){return jF.includes(e)?`${e}-${t.__MICRO_APP_NAME__}`:e}function zF(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}=Bt;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=Xo.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&&Xo.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()),Xo.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 VF=["System","__cjsWrapper"],WF=["location"],HF=["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,zF(this.microAppWindow))}start(t){this.active||(this.active=!0,this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t,Bt.rawWindow._babelPolyfill&&(Bt.rawWindow._babelPolyfill=!1),++Tf.activeCount===1&&(BF(),pF()))}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(Bt.rawWindow,n)}),this.escapeKeys.clear()),--Tf.activeCount===0&&(UF(),yF()))}recordUmdSnapshot(){this.microAppWindow.__MICRO_APP_UMD_MODE__=!0,this.recordUmdEffect(),IF(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(),$F(this.microAppWindow.microApp)}getSpecialProperties(t){var n;!Xi(sr.plugins)||(this.commonActionForSpecialProperties(sr.plugins.global),this.commonActionForSpecialProperties((n=sr.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=Bt.rawWindow,r=new Map;return new Proxy(this.microAppWindow,{get:(i,a)=>{if(cv(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)?NF(n,l):l},set:(i,a,l)=>{if(this.active){if(WF.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)||VF.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=>aF(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__=R6(r),t.__MICRO_APP_WINDOW__=t,t.microApp=Object.assign(new MF(n),{removeDomScope:Ig,pureCreateElement:Cu}),t.rawWindow=Bt.rawWindow,t.rawDocument=Bt.rawDocument,t.hasOwnProperty=i=>$l.call(t,i)||$l.call(Bt.rawWindow,i),this.setMappingPropertiesWithRawDescriptor(t),this.setHijackProperties(t,n)}setMappingPropertiesWithRawDescriptor(t){let n,r;const i=Bt.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)),HF.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(Bt.rawWindow,t)||{writable:!0};return{value:n,configurable:r,enumerable:i,writable:a!=null?a:!!l}}setHijackProperties(t,n){let r,i;tF(t,{document:{get(){return cv(n),Bt.rawDocument},configurable:!1,enumerable:!0},eval:{get(){return cv(n),r||eval},set:a=>{r=a},configurable:!0,enumerable:!1},Image:{get(){return cv(n),i||Bt.ImageProxy},set:a=>{i=a},configurable:!0,enumerable:!1}})}}Tf.activeCount=0;function KF(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},target:{get(){return t}}})}function zo(e,t,n,r){var i;if(!e)return Zn(`element does not exist in lifecycle ${n}`,t);e=Yf(e),Ig();const a=Object.assign({name:t,container:e},r&&{error:r}),l=new CustomEvent(n,{detail:a});KF(l,e),Er((i=sr.lifeCycles)===null||i===void 0?void 0:i[n])&&sr.lifeCycles[n](l),e.dispatchEvent(l)}function hv(e,t,n={}){const r=new CustomEvent(`${e}-${t}`,{detail:n});window.dispatchEvent(r)}const ar=new Map;class Z6{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,x1.getInstance().run(this,PF)}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(y1(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}zo(this.container,this.name,ks.BEFOREMOUNT),this.state=Or.MOUNTING,dv(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;EF(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){R0(t)?t.then(()=>this.dispatchMountedEvent()).catch(n=>this.onerror(n)):this.dispatchMountedEvent()}dispatchMountedEvent(){Or.UNMOUNT!==this.state&&(this.state=Or.MOUNTED,zo(this.container,this.name,ks.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)}hv("unmount",this.name),this.handleUnmounted(t,r,n)}handleUnmounted(t,n,r){R0(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&&dv(this.container,this.source.html,!1),(r=this.sandBox)===null||r===void 0||r.stop(this.umdMode),JF().length||gF(),zo(this.container,this.name,ks.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;dv(this.container,this.keepAliveContainer?this.keepAliveContainer:this.keepAliveContainer=document.createElement("div"),!1),this.container=this.keepAliveContainer,this.keepAliveState=Ns.KEEP_ALIVE_HIDDEN,hv("appstate-change",this.name,{appState:"afterhidden"}),zo(t,this.name,ks.AFTERHIDDEN)}showKeepAliveApp(t){hv("appstate-change",this.name,{appState:"beforeshow"}),zo(t,this.name,ks.BEFORESHOW),dv(this.container,t,!1),this.container=t,this.keepAliveState=Ns.KEEP_ALIVE_SHOW,hv("appstate-change",this.name,{appState:"aftershow"}),zo(this.container,this.name,ks.AFTERSHOW)}onerror(t){zo(this.container,this.name,ks.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:Bt.rawWindow;return this.libraryName=Yf(this.container).getAttribute("library")||`micro-app-${this.name}`,typeof r[this.libraryName]=="object"?r[this.libraryName]:{}}return{}}}function GF(e){class t extends HTMLElement{constructor(){super(),this.isWaiting=!1,this.cacheData=null,this.hasConnected=!1,this.appName="",this.appUrl="",this.ssrUrl="",this.version=ZN,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const r=Qa(this.getAttribute("name")),i=N0(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()&&Ns.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)},mF()}static get observedAttributes(){return["name","url"]}connectedCallback(){this.hasConnected=!0,vo(()=>zo(this,this.appName,ks.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=N0(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&&(sr.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(Bt.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()===Ns.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?(Gf(`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(Bt.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()===Ns.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 Z6({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()!==Ns.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)||sr[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?sr.setData(this.appName,r):this.cacheData=r}get data(){return this.appName?sr.getData(this.appName,!0):this.cacheData?this.cacheData:null}}window.customElements.define(e,t)}function Y5(e){if(!_1)return Zn("preFetch is only supported in browser environment");w1(()=>{Er(e)&&(e=e()),wc(e)&&e.reduce((t,n)=>t.then(()=>YF(n)),Promise.resolve())})}function YF(e){return new Promise(t=>{w1(()=>{var n,r;if(Xi(e)&&navigator.onLine)if(e.name=Qa(e.name),e.url=N0(e.url,e.name),e.name&&e.url&&!ar.has(e.name)){const i=new Z6({name:e.name,url:e.url,scopecss:!((n=e.disableScopecss)!==null&&n!==void 0?n:sr.disableScopecss),useSandbox:!((r=e.disableSandbox)!==null&&r!==void 0?r:sr.disableSandbox)});i.isPrefetch=!0,i.prefetchResolve=t,ar.set(e.name,i)}else t();else t()})})}function XF(e){Xi(e)&&w1(()=>{X5(e.js,"js",iu),X5(e.css,"css",sl)})}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 JF(e){const t=[];return ar.forEach((n,r)=>{Or.UNMOUNT!==n.getAppState()&&!n.isPrefetch&&(!e||Ns.KEEP_ALIVE_HIDDEN!==n.getKeepAliveState())&&t.push(r)}),t}function ZF(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()===Ns.KEEP_ALIVE_HIDDEN)t!=null&&t.destroy?n.unmount(!0,r):t!=null&&t.clearAliveState?n.unmount(!1,r):r();else{const i=Yf(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 Gf(`app ${e} does not exist`),r()})}function Yne(e){return Array.from(ar.keys()).reduce((t,n)=>t.then(()=>ZF(n,e)),Promise.resolve())}class QF extends AF{constructor(){super(...arguments),this.tagName="micro-app",this.preFetch=Y5}start(t){if(!_1||!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 Gf(`element ${this.tagName} is already defined`);if(CF(),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&&XF(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}GF(this.tagName)}}var sr=new QF;const qF=e=>({}).VITE_OKR_WEB_URL||$A.apiUrl(e);function eB(){let e={},t={loader(n,r){return n}};e["micro-app"]=[t],e["okr-details"]=[t],sr.start({plugins:{modules:e}}),sr.preFetch([{name:"micro-app",url:qF("../apps/okr"),disableSandbox:!0}])}var tB={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 Lm=tB,nB=Lm.languageTypes,au=Lm.getLanguage(),Zu={};function Xne(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(nB));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 Jne(e){e!==void 0&&$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 D1(e){var n;if(typeof arguments[1]!="undefined")return D1(Lm.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("^"+Lm.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 Fs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q6(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 pv(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 q6={exports:{}};/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */(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:Fs,function(t,n){var r=[],i=Object.getPrototypeOf,a=r.slice,l=r.flat?function(k){return r.flat.call(k)}:function(k){return r.concat.apply([],k)},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 x(k,L,G){G=G||E;var ne,_e,we=G.createElement("script");if(we.text=k,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 C(k){return k==null?k+"":typeof k=="object"||typeof k=="function"?s[p.call(k)]||"object":typeof k}var D="3.7.1",P=/HTML$/i,w=function(k,L){return new w.fn.init(k,L)};w.fn=w.prototype={jquery:D,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(k){return k==null?a.call(this):k<0?this[k+this.length]:this[k]},pushStack:function(k){var L=w.merge(this.constructor(),k);return L.prevObject=this,L},each:function(k){return w.each(this,k)},map:function(k){return this.pushStack(w.map(this,function(L,G){return k.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(k,L){return(L+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(k,L){return L%2}))},eq:function(k){var L=this.length,G=+k+(k<0?L:0);return this.pushStack(G>=0&&G0&&L-1 in k}function T(k,L){return k.nodeName&&k.nodeName.toLowerCase()===L.toLowerCase()}var R=r.pop,K=r.sort,N=r.splice,z="[\\x20\\t\\r\\n\\f]",U=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g");w.contains=function(k,L){var G=L&&L.parentNode;return k===G||!!(G&&G.nodeType===1&&(k.contains?k.contains(G):k.compareDocumentPosition&&k.compareDocumentPosition(G)&16))};var oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Pe(k,L){return L?k==="\0"?"\uFFFD":k.slice(0,-1)+"\\"+k.charCodeAt(k.length-1).toString(16)+" ":"\\"+k}w.escapeSelector=function(k){return(k+"").replace(oe,Pe)};var he=E,ye=c;(function(){var k,L,G,ne,_e,we=ye,Me,We,Be,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+"*\\]",eo=":("+aa+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Mn+")*)|.*)\\)|)",Nn=new RegExp(z+"+","g"),lr=new RegExp("^"+z+"*,"+z+"*"),hs=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),ju=new RegExp(z+"|>"),sa=new RegExp(eo),Dl=new RegExp("^"+aa+"$"),oa={ID:new RegExp("^#("+aa+")"),CLASS:new RegExp("^\\.("+aa+")"),TAG:new RegExp("^("+aa+"|[*])"),ATTR:new RegExp("^"+Mn),PSEUDO:new RegExp("^"+eo),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")},ps=/^(?:input|select|textarea|button)$/i,vs=/^h\d$/i,Ui=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,zu=/[+~]/,Ba=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),Da=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))},W_=function(){ms()},Nh=Ol(function(Ne){return Ne.disabled===!0&&T(Ne,"fieldset")},{dir:"parentNode",next:"legend"});function H_(){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 Vn(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&&(ms(He),He=He||Me,Be)){if(En!==11&&(Vt=Ui.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))&&Vn.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&&(ju.test(Ne)||hs.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=Ro(Ne),At=An.length;At--;)An[At]=(Jt?"#"+Jt:":scope")+" "+to(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(U,"$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 ji(Ne){return function(He){return(T(He,"input")||T(He,"button"))&&He.type===Ne}}function Bh(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&&Nh(He)===Ne:He.disabled===Ne:"label"in He?He.disabled===Ne:!1}}function Ua(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 ms(Ne){var He,qe=Ne?Ne.ownerDocument||Ne:he;return qe==Me||qe.nodeType!==9||!qe.documentElement||(Me=qe,We=Me.documentElement,Be=!w.isXMLDoc(Me),st=We.matches||We.webkitMatchesSelector||We.msMatchesSelector,We.msMatchesSelector&&he!=Me&&(He=Me.defaultView)&&He.top!==He&&He.addEventListener("unload",W_),_.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(Ba,Da);return function(At){return At.getAttribute("id")===ct}},L.find.ID=function(rt,ct){if(typeof ct.getElementById!="undefined"&&Be){var At=ct.getElementById(rt);return At?[At]:[]}}):(L.filter.ID=function(rt){var ct=rt.replace(Ba,Da);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"&&Be){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"&&Be)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&&Vn.contains(he,rt)?-1:ct===Me||ct.ownerDocument==he&&Vn.contains(he,ct)?1:ne?h.call(ne,rt)-h.call(ne,ct):0:At&4?-1:1)}),Me}Vn.matches=function(Ne,He){return Vn(Ne,null,null,He)},Vn.matchesSelector=function(Ne,He){if(ms(Ne),Be&&!$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 Vn(He,Me,null,[Ne]).length>0},Vn.contains=function(Ne,He){return(Ne.ownerDocument||Ne)!=Me&&ms(Ne),w.contains(Ne,He)},Vn.attr=function(Ne,He){(Ne.ownerDocument||Ne)!=Me&&ms(Ne);var qe=L.attrHandle[He.toLowerCase()],rt=qe&&d.call(L.attrHandle,He.toLowerCase())?qe(Ne,He,!Be):void 0;return rt!==void 0?rt:Ne.getAttribute(He)},Vn.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(Ba,Da),Ne[3]=(Ne[3]||Ne[4]||Ne[5]||"").replace(Ba,Da),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]||Vn.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]&&Vn.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=Ro(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(Ba,Da).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=Vn.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,Hr=At!==zt?"nextSibling":"previousSibling",Dr=Vt.parentNode,la=Jt&&Vt.nodeName.toLowerCase(),No=!cn&&!Jt,ei=!1;if(Dr){if(At){for(;Hr;){for(sn=Vt;sn=sn[Hr];)if(Jt?T(sn,la):sn.nodeType===1)return!1;vi=Hr=Ne==="only"&&!vi&&"nextSibling"}return!0}if(vi=[zt?Dr.firstChild:Dr.lastChild],zt&&No){for(En=Dr[ut]||(Dr[ut]={}),mn=En[Ne]||[],Kn=mn[0]===et&&mn[1],ei=Kn&&mn[2],sn=Kn&&Dr.childNodes[Kn];sn=++Kn&&sn&&sn[Hr]||(ei=Kn=0)||vi.pop();)if(sn.nodeType===1&&++ei&&sn===Vt){En[Ne]=[et,Kn,ei];break}}else if(No&&(En=Vt[ut]||(Vt[ut]={}),mn=En[Ne]||[],Kn=mn[0]===et&&mn[1],ei=Kn),ei===!1)for(;(sn=++Kn&&sn&&sn[Hr]||(ei=Kn=0)||vi.pop())&&!((Jt?T(sn,la):sn.nodeType===1)&&++ei&&(No&&(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()]||Vn.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=Lo(Ne.replace(U,"$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 Vn(Ne,He).length>0}}),contains:qr(function(Ne){return Ne=Ne.replace(Ba,Da),function(He){return(He.textContent||w.text(He)).indexOf(Ne)>-1}}),lang:qr(function(Ne){return Dl.test(Ne||"")||Vn.error("unsupported lang: "+Ne),Ne=Ne.replace(Ba,Da).toLowerCase(),function(He){var qe;do if(qe=Be?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===H_()&&Me.hasFocus()&&!!(Ne.type||Ne.href||~Ne.tabIndex)},enabled:Bh(!1),disabled:Bh(!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 vs.test(Ne.nodeName)},input:function(Ne){return ps.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:Ua(function(){return[0]}),last:Ua(function(Ne,He){return[He-1]}),eq:Ua(function(Ne,He,qe){return[qe<0?qe+He:qe]}),even:Ua(function(Ne,He){for(var qe=0;qeHe?rt=He:rt=qe;--rt>=0;)Ne.push(rt);return Ne}),gt:Ua(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 jh(Ne,He,qe){for(var rt=0,ct=He.length;rt-1&&(zt[cn]=!(Jt[cn]=En))}}else sn=Wu(sn===Jt?sn.splice(Hr,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&&to(Ne.slice(0,Jt-1).concat({value:Ne[Jt-2].type===" "?"*":""})).replace(U,"$1"),qe,Jt0,rt=Ne.length>0,ct=function(At,zt,Jt,Vt,An){var cn,mn,En,sn=0,Kn="0",vi=At&&[],Hr=[],Dr=G,la=At||rt&&L.find.TAG("*",An),No=et+=Dr==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&&(ms(cn),Jt=!Be);En=Ne[mn++];)if(En(cn,zt||Me,Jt)){we.call(Vt,cn);break}An&&(et=No)}qe&&((cn=!En&&cn)&&sn--,At&&vi.push(cn))}if(sn+=Kn,qe&&Kn!==sn){for(mn=0;En=He[mn++];)En(vi,Hr,zt,Jt);if(At){if(sn>0)for(;Kn--;)vi[Kn]||Hr[Kn]||(Hr[Kn]=R.call(Vt));Hr=Wu(Hr)}we.apply(Vt,Hr),An&&!At&&Hr.length>0&&sn+He.length>1&&w.uniqueSort(Vt)}return An&&(et=No,G=Dr),vi};return qe?qr(ct):ct}function Lo(Ne,He){var qe,rt=[],ct=[],At=Sn[Ne+" "];if(!At){for(He||(He=Ro(Ne)),qe=He.length;qe--;)At=hd(He[qe]),At[ut]?rt.push(At):ct.push(At);At=Sn(Ne,zh(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&&Ro(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&&Be&&L.relative[At[1].type]){if(He=(L.find.ID(zt.matches[0].replace(Ba,Da),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(Ba,Da),zu.test(At[0].type)&&dd(He.parentNode)||He))){if(At.splice(ct,1),Ne=rt.length&&to(At),!Ne)return we.apply(qe,rt),qe;break}}return(An||Lo(Ne,cn))(rt,He,!Be,qe,!He||zu.test(Ne)&&dd(He.parentNode)||He),qe}_.sortStable=ut.split("").sort(pr).join("")===ut,ms(),_.sortDetached=$o(function(Ne){return Ne.compareDocumentPosition(Me.createElement("fieldset"))&1}),w.find=Vn,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Vn.compile=Lo,Vn.select=pd,Vn.setDocument=ms,Vn.tokenize=Ro,Vn.escape=w.escapeSelector,Vn.getText=w.text,Vn.isXML=w.isXMLDoc,Vn.selectors=w.expr,Vn.support=w.support,Vn.uniqueSort=w.uniqueSort})();var de=function(k,L,G){for(var ne=[],_e=G!==void 0;(k=k[L])&&k.nodeType!==9;)if(k.nodeType===1){if(_e&&w(k).is(G))break;ne.push(k)}return ne},Se=function(k,L){for(var G=[];k;k=k.nextSibling)k.nodeType===1&&k!==L&&G.push(k);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(k,L,G){return y(L)?w.grep(k,function(ne,_e){return!!L.call(ne,_e,ne)!==G}):L.nodeType?w.grep(k,function(ne){return ne===L!==G}):typeof L!="string"?w.grep(k,function(ne){return h.call(L,ne)>-1!==G}):w.filter(L,k,G)}w.filter=function(k,L,G){var ne=L[0];return G&&(k=":not("+k+")"),L.length===1&&ne.nodeType===1?w.find.matchesSelector(ne,k)?[ne]:[]:w.find.matches(k,w.grep(L,function(_e){return _e.nodeType===1}))},w.fn.extend({find:function(k){var L,G,ne=this.length,_e=this;if(typeof k!="string")return this.pushStack(w(k).filter(function(){for(L=0;L1?w.uniqueSort(G):G},filter:function(k){return this.pushStack(Ce(this,k||[],!1))},not:function(k){return this.pushStack(Ce(this,k||[],!0))},is:function(k){return!!Ce(this,typeof k=="string"&&X.test(k)?w(k):k||[],!1).length}});var be,re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Q=w.fn.init=function(k,L,G){var ne,_e;if(!k)return this;if(G=G||be,typeof k=="string")if(k[0]==="<"&&k[k.length-1]===">"&&k.length>=3?ne=[null,k,null]:ne=re.exec(k),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(k):this.constructor(L).find(k);else{if(k.nodeType)return this[0]=k,this.length=1,this;if(y(k))return G.ready!==void 0?G.ready(k):k(w)}return w.makeArray(k,this)};Q.prototype=w.fn,be=w(E);var F=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(k){var L=w(k,this),G=L.length;return this.filter(function(){for(var ne=0;ne-1:G.nodeType===1&&w.find.matchesSelector(G,k))){we.push(G);break}}return this.pushStack(we.length>1?w.uniqueSort(we):we)},index:function(k){return k?typeof k=="string"?h.call(w(k),this[0]):h.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(k,L){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(k,L))))},addBack:function(k){return this.add(k==null?this.prevObject:this.prevObject.filter(k))}});function Z(k,L){for(;(k=k[L])&&k.nodeType!==1;);return k}w.each({parent:function(k){var L=k.parentNode;return L&&L.nodeType!==11?L:null},parents:function(k){return de(k,"parentNode")},parentsUntil:function(k,L,G){return de(k,"parentNode",G)},next:function(k){return Z(k,"nextSibling")},prev:function(k){return Z(k,"previousSibling")},nextAll:function(k){return de(k,"nextSibling")},prevAll:function(k){return de(k,"previousSibling")},nextUntil:function(k,L,G){return de(k,"nextSibling",G)},prevUntil:function(k,L,G){return de(k,"previousSibling",G)},siblings:function(k){return Se((k.parentNode||{}).firstChild,k)},children:function(k){return Se(k.firstChild)},contents:function(k){return k.contentDocument!=null&&i(k.contentDocument)?k.contentDocument:(T(k,"template")&&(k=k.content||k),w.merge([],k.childNodes))}},function(k,L){w.fn[k]=function(G,ne){var _e=w.map(this,L,G);return k.slice(-5)!=="Until"&&(ne=G),ne&&typeof ne=="string"&&(_e=w.filter(ne,_e)),this.length>1&&(I[k]||w.uniqueSort(_e),F.test(k)&&_e.reverse()),this.pushStack(_e)}});var q=/[^\x20\t\r\n\f]+/g;function pe(k){var L={};return w.each(k.match(q)||[],function(G,ne){L[ne]=!0}),L}w.Callbacks=function(k){k=typeof k=="string"?pe(k):w.extend({},k);var L,G,ne,_e,we=[],Me=[],We=-1,Be=function(){for(_e=_e||k.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||Be()),this},fire:function(){return Ye.fireWith(this,arguments),this},fired:function(){return!!ne}};return Ye};function Ee(k){return k}function J(k){throw k}function Y(k,L,G,ne){var _e;try{k&&y(_e=k.promise)?_e.call(k).done(L).fail(G):k&&y(_e=k.then)?_e.call(k,L,G):L.apply(void 0,[k].slice(ne))}catch(we){G.apply(void 0,[we])}}w.extend({Deferred:function(k){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,Be){var Ye=y(we[Be[4]])&&we[Be[4]];_e[Be[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[Be[0]+"With"](this,Ye?[st]:arguments)})}),we=null}).promise()},then:function(we,Me,We){var Be=0;function Ye(st,ut,et,St){return function(){var vn=this,$n=arguments,Sn=function(){var pr,ia;if(!(st=Be&&(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],Be=Me[5];ne[Me[1]]=We.add,Be&&We.add(function(){G=Be},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),k&&k.call(_e,_e),_e},when:function(k){var L=arguments.length,G=L,ne=Array(G),_e=a.call(arguments),we=w.Deferred(),Me=function(We){return function(Be){ne[We]=this,_e[We]=arguments.length>1?a.call(arguments):Be,--L||we.resolveWith(ne,_e)}};if(L<=1&&(Y(k,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(k,L){t.console&&t.console.warn&&k&&ae.test(k.name)&&t.console.warn("jQuery.Deferred exception: "+k.message,k.stack,L)},w.readyException=function(k){t.setTimeout(function(){throw k})};var te=w.Deferred();w.fn.ready=function(k){return te.then(k).catch(function(L){w.readyException(L)}),this},w.extend({isReady:!1,readyWait:1,ready:function(k){(k===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(k!==!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(k,L,G,ne,_e,we,Me){var We=0,Be=k.length,Ye=G==null;if(C(G)==="object"){_e=!0;for(We in G)me(k,L,We,G[We],!0,we,Me)}else if(ne!==void 0&&(_e=!0,y(ne)||(Me=!0),Ye&&(Me?(L.call(k,ne),L=null):(Ye=L,L=function(st,ut,et){return Ye.call(w(st),et)})),L))for(;We1,null,!0)},removeData:function(k){return this.each(function(){ee.remove(this,k)})}}),w.extend({queue:function(k,L,G){var ne;if(k)return L=(L||"fx")+"queue",ne=W.get(k,L),G&&(!ne||Array.isArray(G)?ne=W.access(k,L,w.makeArray(G)):ne.push(G)),ne||[]},dequeue:function(k,L){L=L||"fx";var G=w.queue(k,L),ne=G.length,_e=G.shift(),we=w._queueHooks(k,L),Me=function(){w.dequeue(k,L)};_e==="inprogress"&&(_e=G.shift(),ne--),_e&&(L==="fx"&&G.unshift("inprogress"),delete we.stop,_e.call(k,Me,we)),!ne&&we&&we.empty.fire()},_queueHooks:function(k,L){var G=L+"queueHooks";return W.get(k,G)||W.access(k,G,{empty:w.Callbacks("once memory").add(function(){W.remove(k,[L+"queue",G])})})}}),w.fn.extend({queue:function(k,L){var G=2;return typeof k!="string"&&(L=k,k="fx",G--),arguments.length\x20\t\r\n\f]*)/i,Yt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var k=E.createDocumentFragment(),L=k.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 Ut={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ut.tbody=Ut.tfoot=Ut.colgroup=Ut.caption=Ut.thead,Ut.th=Ut.td,_.option||(Ut.optgroup=Ut.option=[1,""]);function Xt(k,L){var G;return typeof k.getElementsByTagName!="undefined"?G=k.getElementsByTagName(L||"*"):typeof k.querySelectorAll!="undefined"?G=k.querySelectorAll(L||"*"):G=[],L===void 0||L&&T(k,L)?w.merge([k],G):G}function rn(k,L){for(var G=0,ne=k.length;G-1){_e&&_e.push(we);continue}if(Ye=kt(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 Ft(){return!0}function Oe(){return!1}function Fe(k,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)Fe(k,We,G,ne,L[We],we);return k}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 k;return we===1&&(Me=_e,_e=function(Be){return w().off(Be),Me.apply(this,arguments)},_e.guid=Me.guid||(Me.guid=w.guid++)),k.each(function(){w.event.add(this,L,_e,ne,G)})}w.event={global:{},add:function(k,L,G,ne,_e){var we,Me,We,Be,Ye,st,ut,et,St,vn,$n,Sn=W.get(k);if(!!B(k))for(G.handler&&(we=G,G=we.handler,_e=we.selector),_e&&w.find.matchesSelector(xt,_e),G.guid||(G.guid=w.guid++),(Be=Sn.events)||(Be=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(k,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=Be[St])||(et=Be[St]=[],et.delegateCount=0,(!ut.setup||ut.setup.call(k,ne,vn,Me)===!1)&&k.addEventListener&&k.addEventListener(St,Me)),ut.add&&(ut.add.call(k,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(k,L,G,ne,_e){var we,Me,We,Be,Ye,st,ut,et,St,vn,$n,Sn=W.hasData(k)&&W.get(k);if(!(!Sn||!(Be=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 Be)w.event.remove(k,St+L[Ye],G,ne,!0);continue}for(ut=w.event.special[St]||{},St=(ne?ut.delegateType:ut.bindType)||St,et=Be[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(k,st));Me&&!et.length&&((!ut.teardown||ut.teardown.call(k,vn,Sn.handle)===!1)&&w.removeEvent(k,St,Sn.handle),delete Be[St])}w.isEmptyObject(Be)&&W.remove(k,"handle events")}},dispatch:function(k){var L,G,ne,_e,we,Me,We=new Array(arguments.length),Be=w.event.fix(k),Ye=(W.get(this,"events")||Object.create(null))[Be.type]||[],st=w.event.special[Be.type]||{};for(We[0]=Be,L=1;L=1)){for(;Ye!==this;Ye=Ye.parentNode||this)if(Ye.nodeType===1&&!(k.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,Be\s*$/g;function ht(k,L){return T(k,"table")&&T(L.nodeType!==11?L:L.firstChild,"tr")&&w(k).children("tbody")[0]||k}function _t(k){return k.type=(k.getAttribute("type")!==null)+"/"+k.type,k}function Pt(k){return(k.type||"").slice(0,5)==="true/"?k.type=k.type.slice(5):k.removeAttribute("type"),k}function jt(k,L){var G,ne,_e,we,Me,We,Be;if(L.nodeType===1){if(W.hasData(k)&&(we=W.get(k),Be=we.events,Be)){W.remove(L,"handle events");for(_e in Be)for(G=0,ne=Be[_e].length;G1&&typeof St=="string"&&!_.checkClone&&nt.test(St))return k.each(function($n){var Sn=k.eq($n);vn&&(L[0]=St.call(this,$n,Sn.html())),$t(Sn,L,G,ne)});if(ut&&(_e=it(L,k[0].ownerDocument,!1,k,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,!Be&&Xt(k,"script")),We},cleanData:function(k){for(var L,G,ne,_e=w.event.special,we=0;(G=k[we])!==void 0;we++)if(B(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(k){return tn(this,k,!0)},remove:function(k){return tn(this,k)},text:function(k){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,k,arguments.length)},append:function(){return $t(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=ht(this,k);L.appendChild(k)}})},prepend:function(){return $t(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=ht(this,k);L.insertBefore(k,L.firstChild)}})},before:function(){return $t(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return $t(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,L=0;(k=this[L])!=null;L++)k.nodeType===1&&(w.cleanData(Xt(k,!1)),k.textContent="");return this},clone:function(k,L){return k=k==null?!1:k,L=L==null?k:L,this.map(function(){return w.clone(this,k,L)})},html:function(k){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)&&!Ut[(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,k,arguments.length)},replaceWith:function(){var k=[];return $t(this,arguments,function(L){var G=this.parentNode;w.inArray(this,k)<0&&(w.cleanData(Xt(this)),G&&G.replaceChild(L,this))},k)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,L){w.fn[k]=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(k){var L=k.ownerDocument.defaultView;return(!L||!L.opener)&&(L=t),L.getComputedStyle(k)},hr=function(k,L,G){var ne,_e,we={};for(_e in L)we[_e]=k.style[_e],k.style[_e]=L[_e];ne=G.call(k);for(_e in L)k.style[_e]=we[_e];return ne},br=new RegExp(vt.join("|"),"i");(function(){function k(){if(!!Ye){Be.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(Be).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(Be),Ye=null}}function L(st){return Math.round(parseFloat(st))}var G,ne,_e,we,Me,We,Be=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 k(),ne},pixelBoxStyles:function(){return k(),we},pixelPosition:function(){return k(),G},reliableMarginLeft:function(){return k(),We},scrollboxSize:function(){return k(),_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="box-sizing:content-box;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 Wn(k,L,G){var ne,_e,we,Me,We=an.test(L),Be=k.style;return G=G||On(k),G&&(Me=G.getPropertyValue(L)||G[L],We&&Me&&(Me=Me.replace(U,"$1")||void 0),Me===""&&!kt(k)&&(Me=w.style(k,L)),!_.pixelBoxStyles()&&nn.test(Me)&&br.test(L)&&(ne=Be.width,_e=Be.minWidth,we=Be.maxWidth,Be.minWidth=Be.maxWidth=Be.width=Me,Me=G.width,Be.width=ne,Be.minWidth=_e,Be.maxWidth=we)),Me!==void 0?Me+"":Me}function Qn(k,L){return{get:function(){if(k()){delete this.get;return}return(this.get=L).apply(this,arguments)}}}var Ur=["Webkit","Moz","ms"],wr=E.createElement("div").style,Bi={};function fi(k){for(var L=k[0].toUpperCase()+k.slice(1),G=Ur.length;G--;)if(k=Ur[G]+L,k in wr)return k}function ki(k){var L=w.cssProps[k]||Bi[k];return L||(k in wr?k:Bi[k]=fi(k)||k)}var na=/^(none|table(?!-c[ea]).+)/,Na={position:"absolute",visibility:"hidden",display:"block"},Oi={letterSpacing:"0",fontWeight:"400"};function ra(k,L,G){var ne=Je.exec(L);return ne?Math.max(0,ne[2]-(G||0))+(ne[3]||"px"):L}function hi(k,L,G,ne,_e,we){var Me=L==="width"?1:0,We=0,Be=0,Ye=0;if(G===(ne?"border":"content"))return 0;for(;Me<4;Me+=2)G==="margin"&&(Ye+=w.css(k,G+vt[Me],!0,_e)),ne?(G==="content"&&(Be-=w.css(k,"padding"+vt[Me],!0,_e)),G!=="margin"&&(Be-=w.css(k,"border"+vt[Me]+"Width",!0,_e))):(Be+=w.css(k,"padding"+vt[Me],!0,_e),G!=="padding"?Be+=w.css(k,"border"+vt[Me]+"Width",!0,_e):We+=w.css(k,"border"+vt[Me]+"Width",!0,_e));return!ne&&we>=0&&(Be+=Math.max(0,Math.ceil(k["offset"+L[0].toUpperCase()+L.slice(1)]-we-Be-We-.5))||0),Be+Ye}function Ie(k,L,G){var ne=On(k),_e=!_.boxSizingReliable()||G,we=_e&&w.css(k,"boxSizing",!1,ne)==="border-box",Me=we,We=Wn(k,L,ne),Be="offset"+L[0].toUpperCase()+L.slice(1);if(nn.test(We)){if(!G)return We;We="auto"}return(!_.boxSizingReliable()&&we||!_.reliableTrDimensions()&&T(k,"tr")||We==="auto"||!parseFloat(We)&&w.css(k,"display",!1,ne)==="inline")&&k.getClientRects().length&&(we=w.css(k,"boxSizing",!1,ne)==="border-box",Me=Be in k,Me&&(We=k[Be])),We=parseFloat(We)||0,We+hi(k,L,G||(we?"border":"content"),Me,ne,We)+"px"}w.extend({cssHooks:{opacity:{get:function(k,L){if(L){var G=Wn(k,"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(k,L,G,ne){if(!(!k||k.nodeType===3||k.nodeType===8||!k.style)){var _e,we,Me,We=le(L),Be=an.test(L),Ye=k.style;if(Be||(L=ki(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(k,L,_e),we="number"),G==null||G!==G)return;we==="number"&&!Be&&(G+=_e&&_e[3]||(w.cssNumber[We]?"":"px")),!_.clearCloneStyle&&G===""&&L.indexOf("background")===0&&(Ye[L]="inherit"),(!Me||!("set"in Me)||(G=Me.set(k,G,ne))!==void 0)&&(Be?Ye.setProperty(L,G):Ye[L]=G)}else return Me&&"get"in Me&&(_e=Me.get(k,!1,ne))!==void 0?_e:Ye[L]}},css:function(k,L,G,ne){var _e,we,Me,We=le(L),Be=an.test(L);return Be||(L=ki(We)),Me=w.cssHooks[L]||w.cssHooks[We],Me&&"get"in Me&&(_e=Me.get(k,!0,G)),_e===void 0&&(_e=Wn(k,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(k,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",Be=We||_e,Ye=Be&&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(k,L){if(L)return(parseFloat(Wn(k,"marginLeft"))||k.getBoundingClientRect().left-hr(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(k,L){w.cssHooks[k+L]={expand:function(G){for(var ne=0,_e={},we=typeof G=="string"?G.split(" "):[G];ne<4;ne++)_e[k+vt[ne]+L]=we[ne]||we[ne-2]||we[0];return _e}},k!=="margin"&&(w.cssHooks[k+L].set=ra)}),w.fn.extend({css:function(k,L){return me(this,function(G,ne,_e){var we,Me,We={},Be=0;if(Array.isArray(ne)){for(we=On(G),Me=ne.length;Be1)}});function je(k,L,G,ne,_e){return new je.prototype.init(k,L,G,ne,_e)}w.Tween=je,je.prototype={constructor:je,init:function(k,L,G,ne,_e,we){this.elem=k,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 k=je.propHooks[this.prop];return k&&k.get?k.get(this):je.propHooks._default.get(this)},run:function(k){var L,G=je.propHooks[this.prop];return this.options.duration?this.pos=L=w.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):this.pos=L=k,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):je.propHooks._default.set(this),this}},je.prototype.init.prototype=je.prototype,je.propHooks={_default:{get:function(k){var L;return k.elem.nodeType!==1||k.elem[k.prop]!=null&&k.elem.style[k.prop]==null?k.elem[k.prop]:(L=w.css(k.elem,k.prop,""),!L||L==="auto"?0:L)},set:function(k){w.fx.step[k.prop]?w.fx.step[k.prop](k):k.elem.nodeType===1&&(w.cssHooks[k.prop]||k.elem.style[ki(k.prop)]!=null)?w.style(k.elem,k.prop,k.now+k.unit):k.elem[k.prop]=k.now}}},je.propHooks.scrollTop=je.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&k.elem.parentNode&&(k.elem[k.prop]=k.now)}},w.easing={linear:function(k){return k},swing:function(k){return .5-Math.cos(k*Math.PI)/2},_default:"swing"},w.fx=je.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(k,L){var G,ne=0,_e={height:k};for(L=L?1:0;ne<4;ne+=2-L)G=vt[ne],_e["margin"+G]=_e["padding"+G]=k;return L&&(_e.opacity=_e.width=k),_e}function Et(k,L,G){for(var ne,_e=(on.tweeners[L]||[]).concat(on.tweeners["*"]),we=0,Me=_e.length;we1)},removeAttr:function(k){return this.each(function(){w.removeAttr(this,k)})}}),w.extend({attr:function(k,L,G){var ne,_e,we=k.nodeType;if(!(we===3||we===8||we===2)){if(typeof k.getAttribute=="undefined")return w.prop(k,L,G);if((we!==1||!w.isXMLDoc(k))&&(_e=w.attrHooks[L.toLowerCase()]||(w.expr.match.bool.test(L)?Pn:void 0)),G!==void 0){if(G===null){w.removeAttr(k,L);return}return _e&&"set"in _e&&(ne=_e.set(k,G,L))!==void 0?ne:(k.setAttribute(L,G+""),G)}return _e&&"get"in _e&&(ne=_e.get(k,L))!==null?ne:(ne=w.find.attr(k,L),ne==null?void 0:ne)}},attrHooks:{type:{set:function(k,L){if(!_.radioValue&&L==="radio"&&T(k,"input")){var G=k.value;return k.setAttribute("type",L),G&&(k.value=G),L}}}},removeAttr:function(k,L){var G,ne=0,_e=L&&L.match(q);if(_e&&k.nodeType===1)for(;G=_e[ne++];)k.removeAttribute(G)}}),Pn={set:function(k,L,G){return L===!1?w.removeAttr(k,G):k.setAttribute(G,G),G}},w.each(w.expr.match.bool.source.match(/\w+/g),function(k,L){var G=wt[L]||w.find.attr;wt[L]=function(ne,_e,we){var Me,We,Be=_e.toLowerCase();return we||(We=wt[Be],wt[Be]=Me,Me=G(ne,_e,we)!=null?Be:null,wt[Be]=We),Me}});var qn=/^(?:input|select|textarea|button)$/i,bn=/^(?:a|area)$/i;w.fn.extend({prop:function(k,L){return me(this,w.prop,k,L,arguments.length>1)},removeProp:function(k){return this.each(function(){delete this[w.propFix[k]||k]})}}),w.extend({prop:function(k,L,G){var ne,_e,we=k.nodeType;if(!(we===3||we===8||we===2))return(we!==1||!w.isXMLDoc(k))&&(L=w.propFix[L]||L,_e=w.propHooks[L]),G!==void 0?_e&&"set"in _e&&(ne=_e.set(k,G,L))!==void 0?ne:k[L]=G:_e&&"get"in _e&&(ne=_e.get(k,L))!==null?ne:k[L]},propHooks:{tabIndex:{get:function(k){var L=w.find.attr(k,"tabindex");return L?parseInt(L,10):qn.test(k.nodeName)||bn.test(k.nodeName)&&k.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(k){var L=k.parentNode;return L&&L.parentNode&&L.parentNode.selectedIndex,null},set:function(k){var L=k.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 Hn(k){var L=k.match(q)||[];return L.join(" ")}function Wr(k){return k.getAttribute&&k.getAttribute("class")||""}function jr(k){return Array.isArray(k)?k:typeof k=="string"?k.match(q)||[]:[]}w.fn.extend({addClass:function(k){var L,G,ne,_e,we,Me;return y(k)?this.each(function(We){w(this).addClass(k.call(this,We,Wr(this)))}):(L=jr(k),L.length?this.each(function(){if(ne=Wr(this),G=this.nodeType===1&&" "+Hn(ne)+" ",G){for(we=0;we-1;)G=G.replace(" "+_e+" "," ");Me=Hn(G),ne!==Me&&this.setAttribute("class",Me)}}):this):this.attr("class","")},toggleClass:function(k,L){var G,ne,_e,we,Me=typeof k,We=Me==="string"||Array.isArray(k);return y(k)?this.each(function(Be){w(this).toggleClass(k.call(this,Be,Wr(this),L),L)}):typeof L=="boolean"&&We?L?this.addClass(k):this.removeClass(k):(G=jr(k),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(k){var L,G,ne,_e=this[0];return arguments.length?(ne=y(k),this.each(function(we){var Me;this.nodeType===1&&(ne?Me=k.call(this,we,w(this).val()):Me=k,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(k){var L=w.find.attr(k,"value");return L!=null?L:Hn(w.text(k))}},select:{get:function(k){var L,G,ne,_e=k.options,we=k.selectedIndex,Me=k.type==="select-one",We=Me?null:[],Be=Me?we+1:_e.length;for(we<0?ne=Be:ne=Me?we:0;ne-1)&&(G=!0);return G||(k.selectedIndex=-1),we}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(k,L){if(Array.isArray(L))return k.checked=w.inArray(w(k).val(),L)>-1}},_.checkOn||(w.valHooks[this].get=function(k){return k.getAttribute("value")===null?"on":k.value})});var pi=t.location,mt={guid:Date.now()},Fa=/\?/;w.parseXML=function(k){var L,G;if(!k||typeof k!="string")return null;try{L=new t.DOMParser().parseFromString(k,"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(` `):k)),L};var Ru=/^(?:focusinfocus|focusoutblur)$/,Mo=function(k){k.stopPropagation()};w.extend(w.event,{trigger:function(k,L,G,ne){var _e,we,Me,We,Be,Ye,st,ut,et=[G||E],St=d.call(k,"type")?k.type:k,vn=d.call(k,"namespace")?k.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()),Be=St.indexOf(":")<0&&"on"+St,k=k[w.expando]?k:new w.Event(St,typeof k=="object"&&k),k.isTrigger=ne?2:3,k.namespace=vn.join("."),k.rnamespace=k.namespace?new RegExp("(^|\\.)"+vn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,k.result=void 0,k.target||(k.target=G),L=L==null?[k]:w.makeArray(L,[k]),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++])&&!k.isPropagationStopped();)ut=we,k.type=_e>1?We:st.bindType||St,Ye=(W.get(we,"events")||Object.create(null))[k.type]&&W.get(we,"handle"),Ye&&Ye.apply(we,L),Ye=Be&&we[Be],Ye&&Ye.apply&&B(we)&&(k.result=Ye.apply(we,L),k.result===!1&&k.preventDefault());return k.type=St,!ne&&!k.isDefaultPrevented()&&(!st._default||st._default.apply(et.pop(),L)===!1)&&B(G)&&Be&&y(G[St])&&!b(G)&&(Me=G[Be],Me&&(G[Be]=null),w.event.triggered=St,k.isPropagationStopped()&&ut.addEventListener(St,Mo),G[St](),k.isPropagationStopped()&&ut.removeEventListener(St,Mo),w.event.triggered=void 0,Me&&(G[Be]=Me)),k.result}},simulate:function(k,L,G){var ne=w.extend(new w.Event,G,{type:k,isSimulated:!0});w.event.trigger(ne,null,L)}}),w.fn.extend({trigger:function(k,L){return this.each(function(){w.event.trigger(k,L,this)})},triggerHandler:function(k,L){var G=this[0];if(G)return w.event.trigger(k,L,G,!0)}});var B_=/\[\]$/,Dh=/\r?\n/g,kh=/^(?:submit|button|image|reset|file)$/i,Lu=/^(?:input|select|textarea|keygen)/i;function Nu(k,L,G,ne){var _e;if(Array.isArray(L))w.each(L,function(we,Me){G||B_.test(k)?ne(k,Me):Nu(k+"["+(typeof Me=="object"&&Me!=null?we:"")+"]",Me,G,ne)});else if(!G&&C(L)==="object")for(_e in L)Nu(k+"["+_e+"]",L[_e],G,ne);else ne(k,L)}w.param=function(k,L){var G,ne=[],_e=function(we,Me){var We=y(Me)?Me():Me;ne[ne.length]=encodeURIComponent(we)+"="+encodeURIComponent(We==null?"":We)};if(k==null)return"";if(Array.isArray(k)||k.jquery&&!w.isPlainObject(k))w.each(k,function(){_e(this.name,this.value)});else for(G in k)Nu(G,k[G],L,_e);return ne.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=w.prop(this,"elements");return k?w.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!w(this).is(":disabled")&&Lu.test(this.nodeName)&&!kh.test(k)&&(this.checked||!Zt.test(k))}).map(function(k,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 Oh=/%20/g,U_=/#.*$/,j_=/([?&])_=[^&]*/,z_=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ph=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fu=/^(?:GET|HEAD)$/,Th=/^\/\//,od={},ld={},Sl="*/".concat("*"),ud=E.createElement("a");ud.href=pi.href;function Ah(k){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)||"*",(k[ne]=k[ne]||[]).unshift(G)):(k[ne]=k[ne]||[]).push(G)}}function cd(k,L,G,ne){var _e={},we=k===ld;function Me(We){var Be;return _e[We]=!0,w.each(k[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!(Be=ut)}),Be}return Me(L.dataTypes[0])||!_e["*"]&&Me("*")}function Io(k,L){var G,ne,_e=w.ajaxSettings.flatOptions||{};for(G in L)L[G]!==void 0&&((_e[G]?k:ne||(ne={}))[G]=L[G]);return ne&&w.extend(!0,k,ne),k}function Mh(k,L,G){for(var ne,_e,we,Me,We=k.contents,Be=k.dataTypes;Be[0]==="*";)Be.shift(),ne===void 0&&(ne=k.mimeType||L.getResponseHeader("Content-Type"));if(ne){for(_e in We)if(We[_e]&&We[_e].test(ne)){Be.unshift(_e);break}}if(Be[0]in G)we=Be[0];else{for(_e in G){if(!Be[0]||k.converters[_e+" "+Be[0]]){we=_e;break}Me||(Me=_e)}we=we||Me}if(we)return we!==Be[0]&&Be.unshift(we),G[we]}function Ih(k,L,G,ne){var _e,we,Me,We,Be,Ye={},st=k.dataTypes.slice();if(st[1])for(Me in k.converters)Ye[Me.toLowerCase()]=k.converters[Me];for(we=st.shift();we;)if(k.responseFields[we]&&(G[k.responseFields[we]]=L),!Be&&ne&&k.dataFilter&&(L=k.dataFilter(L,k.dataType)),Be=we,we=st.shift(),we){if(we==="*")we=Be;else if(Be!=="*"&&Be!==we){if(Me=Ye[Be+" "+we]||Ye["* "+we],!Me){for(_e in Ye)if(We=_e.split(" "),We[1]===we&&(Me=Ye[Be+" "+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&&k.throws)L=Me(L);else try{L=Me(L)}catch(ut){return{state:"parsererror",error:Me?ut:"No conversion from "+Be+" to "+we}}}}return{state:"success",data:L}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pi.href,type:"GET",isLocal:Ph.test(pi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Sl,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(k,L){return L?Io(Io(k,w.ajaxSettings),L):Io(w.ajaxSettings,k)},ajaxPrefilter:Ah(od),ajaxTransport:Ah(ld),ajax:function(k,L){typeof k=="object"&&(L=k,k=void 0),L=L||{};var G,ne,_e,we,Me,We,Be,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 lr;if(Be){if(!we)for(we={};lr=z_.exec(_e);)we[lr[1].toLowerCase()+" "]=(we[lr[1].toLowerCase()+" "]||[]).concat(lr[2]);lr=we[Nn.toLowerCase()+" "]}return lr==null?null:lr.join(", ")},getAllResponseHeaders:function(){return Be?_e:null},setRequestHeader:function(Nn,lr){return Be==null&&(Nn=ia[Nn.toLowerCase()]=ia[Nn.toLowerCase()]||Nn,pr[Nn]=lr),this},overrideMimeType:function(Nn){return Be==null&&(et.mimeType=Nn),this},statusCode:function(Nn){var lr;if(Nn)if(Be)Mn.always(Nn[Mn.status]);else for(lr in Nn)$r[lr]=[$r[lr],Nn[lr]];return this},abort:function(Nn){var lr=Nn||aa;return G&&G.abort(lr),eo(0,lr),this}};if($n.promise(Mn),et.url=((k||et.url||pi.href)+"").replace(Th,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),Be)return Mn;Ye=w.event&&et.global,Ye&&w.active++===0&&w.event.trigger("ajaxStart"),et.type=et.type.toUpperCase(),et.hasContent=!Fu.test(et.type),ne=et.url.replace(U_,""),et.hasContent?et.data&&et.processData&&(et.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(et.data=et.data.replace(Oh,"+")):(ut=et.url.slice(ne.length),et.data&&(et.processData||typeof et.data=="string")&&(ne+=(Fa.test(ne)?"&":"?")+et.data,delete et.data),et.cache===!1&&(ne=ne.replace(j_,"$1"),ut=(Fa.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]!=="*"?", "+Sl+"; 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||Be))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)eo(-1,"No Transport");else{if(Mn.readyState=1,Ye&&vn.trigger("ajaxSend",[Mn,et]),Be)return Mn;et.async&&et.timeout>0&&(Me=t.setTimeout(function(){Mn.abort("timeout")},et.timeout));try{Be=!1,G.send(pr,eo)}catch(Nn){if(Be)throw Nn;eo(-1,Nn)}}function eo(Nn,lr,hs,ju){var sa,Dl,oa,ps,vs,Ui=lr;Be||(Be=!0,Me&&t.clearTimeout(Me),G=void 0,_e=ju||"",Mn.readyState=Nn>0?4:0,sa=Nn>=200&&Nn<300||Nn===304,hs&&(ps=Mh(et,Mn,hs)),!sa&&w.inArray("script",et.dataTypes)>-1&&w.inArray("json",et.dataTypes)<0&&(et.converters["text script"]=function(){}),ps=Ih(et,ps,Mn,sa),sa?(et.ifModified&&(vs=Mn.getResponseHeader("Last-Modified"),vs&&(w.lastModified[ne]=vs),vs=Mn.getResponseHeader("etag"),vs&&(w.etag[ne]=vs)),Nn===204||et.type==="HEAD"?Ui="nocontent":Nn===304?Ui="notmodified":(Ui=ps.state,Dl=ps.data,oa=ps.error,sa=!oa)):(oa=Ui,(Nn||!Ui)&&(Ui="error",Nn<0&&(Nn=0))),Mn.status=Nn,Mn.statusText=(lr||Ui)+"",sa?$n.resolveWith(St,[Dl,Ui,Mn]):$n.rejectWith(St,[Mn,Ui,oa]),Mn.statusCode($r),$r=void 0,Ye&&vn.trigger(sa?"ajaxSuccess":"ajaxError",[Mn,et,sa?Dl:oa]),Sn.fireWith(St,[Mn,Ui]),Ye&&(vn.trigger("ajaxComplete",[Mn,et]),--w.active||w.event.trigger("ajaxStop")))}return Mn},getJSON:function(k,L,G){return w.get(k,L,G,"json")},getScript:function(k,L){return w.get(k,void 0,L,"script")}}),w.each(["get","post"],function(k,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(k){var L;for(L in k.headers)L.toLowerCase()==="content-type"&&(k.contentType=k.headers[L]||"")}),w._evalUrl=function(k,L,G){return w.ajax({url:k,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(k){var L;return this[0]&&(y(k)&&(k=k.call(this[0])),L=w(k,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(k){return y(k)?this.each(function(L){w(this).wrapInner(k.call(this,L))}):this.each(function(){var L=w(this),G=L.contents();G.length?G.wrapAll(k):L.append(k)})},wrap:function(k){var L=y(k);return this.each(function(G){w(this).wrapAll(L?k.call(this,G):k)})},unwrap:function(k){return this.parent(k).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(k){return!w.expr.pseudos.visible(k)},w.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var V_={0:200,1223:204},El=w.ajaxSettings.xhr();_.cors=!!El&&"withCredentials"in El,_.ajax=El=!!El,w.ajaxTransport(function(k){var L,G;if(_.cors||El&&!k.crossDomain)return{send:function(ne,_e){var we,Me=k.xhr();if(Me.open(k.type,k.url,k.async,k.username,k.password),k.xhrFields)for(we in k.xhrFields)Me[we]=k.xhrFields[we];k.mimeType&&Me.overrideMimeType&&Me.overrideMimeType(k.mimeType),!k.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(V_[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(k.hasContent&&k.data||null)}catch(We){if(L)throw We}},abort:function(){L&&L()}}}),w.ajaxPrefilter(function(k){k.crossDomain&&(k.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(k){return w.globalEval(k),k}}}),w.ajaxPrefilter("script",function(k){k.cache===void 0&&(k.cache=!1),k.crossDomain&&(k.type="GET")}),w.ajaxTransport("script",function(k){if(k.crossDomain||k.scriptAttrs){var L,G;return{send:function(ne,_e){L=w("