minidev 2.0.6 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"bugmeRRemote":"!function(){\"use strict\";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n,r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function a(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}\"function\"==typeof SuppressedError&&SuppressedError,function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var c={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}};function l(e){return!0===e||\"yes\"===e||\"YES\"===e}var d,h=/iPhone|iPad|iOS/i;function p(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}var f=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,e.addOnCloseHandler((function(){return i(r,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,x()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),this.startDebugSession=this.startDebugSession.bind(this)}return e.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();var t=new XMLHttpRequest;t.onloadend=function(){return i(e,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:try{if(w().log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").status)return this.connection.open(),this.emitDocumentUpdated(),[2]}catch(e){console.error(\"bugme check host error\",e)}return[4,x()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))},t.timeout=5e3;var n,r,o=O();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.open(\"GET\",\"\".concat(n,\"://\").concat(r,\"/bugme/channel/checkHost?id=\").concat(this.uuid)),t.send()}},e.prototype.emitDocumentUpdated=function(){this.connection.send(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e.prototype.startDebugSession=function(){var e,t=this;window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,(function(){t.connection.activate(),e=setTimeout((function(){t.connection.isSocketOpened&&t.emitDocumentUpdated()}),500)})),document.addEventListener(n.pagePause,(function(){clearTimeout(e),t.connection.inActivate(),t.resetAxmlVisitedState()})),document.addEventListener(n.resume,(function(){t.connection.activate(),t.connection.isSocketOpened||t.checkHostBeforeAgentConnect()}))},e.prototype.tryResume=function(){var e=this;if(this.connection.isActivated){var t=new XMLHttpRequest;t.timeout=5e3;var n,r,o=O();o.startsWith(\"wss\")?(n=\"https\",r=o.split(\"wss://\")[1]):o.startsWith(\"ws\")&&(n=\"http\",r=o.split(\"ws://\")[1]),t.onloadend=function(){return i(e,void 0,void 0,(function(){return s(this,(function(e){try{if(w().log(\"bugme check host response\",t.responseText),JSON.parse(t.responseText||\"{}\").success)return w().log(\"bugme resume boatman success\"),[2]}catch(e){console.error(\"bugme resume boatman error\",e)}return[2]}))}))},t.open(\"GET\",\"\".concat(n,\"://\").concat(r,\"/bugme/channel/resume\")),t.setRequestHeader(\"channel-id\",\"boat_\".concat(this.uuid)),t.send()}},e}();function g(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var v,m=function(){function e(e,t){void 0===t&&(t=\"\"),this.locale=e,this.prefix=t,this._messageBundle={}}return e.getLocaleFromNavigator=function(){var e=p();if(e.includes(\"Language\")){var t=e.match(/Language\\/([\\w-]+)/);if(t)return g(t[1])}return\"undefined\"!=typeof navigator&&navigator.language?g(navigator.language):g(\"enUS\")},e.prototype.setMessageBundle=function(e){this._messageBundle=e},Object.defineProperty(e.prototype,\"i18nMessages\",{get:function(){return this._messageBundle[g(this.locale)]},enumerable:!1,configurable:!0}),e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):\"string\"==typeof t?t:e},e.prototype.formatWithPrefix=function(e){return\"[\".concat(this.prefix,\"] \").concat(this.format(e))},e}(),y={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},b={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"};!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(v||(v={}));var _=function(){function e(){}return e.prototype.log=function(){},e.prototype.debug=function(){},e.prototype.error=function(){},e}();function w(){return window.__logger__||(window.__logger__=new _),window.__logger__}var I=w();function S(e){I.log(\"setupExitApp\"),document.addEventListener(v.DebugPanelClick,(function(t){I.log(\"DebugPanelClick\"),k(),(null==e?void 0:e.onDebugPanelClick)&&e.onDebugPanelClick()})),document.addEventListener(v.DebugMaskButtonClick,(function(){I.log(\"DebugMaskButtonClick\"),(null==e?void 0:e.onDebugMaskButtonClick)&&e.onDebugMaskButtonClick()}))}var C=!1;function k(){if(!C){var e=function(){var e=new m(m.getLocaleFromNavigator());return e.setMessageBundle({zhCN:y,enUS:b}),e}();C=!0,window.AlipayJSBridge.call(\"showRemoteDebugMask\",{hide:!0},(function(){I.log(\"showRemoteDebugMask hide\")})),window.AlipayJSBridge.call(\"alert\",{title:e.format(\"调试结束\"),button:e.format(\"callExitApp_退出\")},(function(){setTimeout((function(){window.AlipayJSBridge.call(\"exitApp\"),C=!1}),0)}))}}function E(){return i(this,void 0,void 0,(function(){return s(this,(function(e){return window.AlipayJSBridge?[2]:[2,new Promise((function(e){document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function x(e){return void 0===e&&(e=1e3),new Promise((function(t){setTimeout((function(){t()}),e)}))}function T(){var e,t;return\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__?__BUGME_EXTERNAL_CHANNEL__:null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.channelId}function N(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:e&&t?\"\".concat(O(),\"/bugme/agent/\").concat(e,\"?agentId=\").concat(t):\"\"}function O(){var e,t,n,r,o=null===(t=null===(e=window.AlipayJSBridge)||void 0===e?void 0:e.startupParams)||void 0===t?void 0:t.remoteCh,i=null===(r=null===(n=window.AlipayJSBridge)||void 0===n?void 0:n.startupParams)||void 0===r?void 0:r.channel;return null!=i?i:\"wss://\"+(c[o]||c[0]).hpmweb}function A(){return/LyraVM/i.test(p())||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function M(e){return l(e.appxRouteFramework)}var P=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),L=P.importScripts,D=P.AlipayJSBridge,R=D&&D.call;\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var B,j=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}},e.prototype.once=function(e,t){var n=this,r=this.on(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];r(),t.apply(n,e)}));return r},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._listeners.has(e)&&u([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),F=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=10485760,this.eventEmitter=new j,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(){this.eventEmitter.emit(\"close\")},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(B=WebSocket);var U=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return t(n,e),n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new B(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},n.prototype.close=function(){this.opened&&this.socket.close()},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},n.prototype.onSocketOpen=function(){var t=this;e.prototype.onSocketOpen.call(this),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[])},n.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this)},n.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),console.error(\"[DEBUG] connection onerror\",t)},n}(F);function z(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return H.bind(null,e,t,n,r)}function H(e,t,n,r,o){var i=!1;r?i=!!(o=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(o)).error:\"object\"==typeof o&&(i=\"error\"in o||\"errorMessage\"in o),i&&\"function\"==typeof t&&t(o),i||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}var q,G=3e3;function W(e,t){var n,r=function(e,t,n){var r=\"_sw_jsonp_\".concat(++G);P[r]=function(e){P[r]=null,n(e)};var o={action:e,callback:r,data:t};return JSON.stringify(o)}(e,t,(function(e){n=e})),o=function(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}(r);try{L(o)}catch(e){}return\"string\"==typeof n?function(e){try{return JSON.parse(e)}catch(e){}}(n):n}\"object\"==typeof D&&(q={call:function(e,t,n){R(e,t,n)},callSync:function(e,t){return D.callSync?D.callSync(e,t):W(e,t)}});var Z,Y,V=!1,X=[];new Promise((function(e){Y=e}));\"object\"==typeof my?(Z=my,Y()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(Z=AFAppX.bridge,Y()):function(e){if(\"undefined\"!=typeof AFAppX)e();else if(X.push(e),!V){V=!0;var t=L||P.importScripts;t?P.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(X.forEach((function(e){return e()})),X=[],P.importScripts=t)}:setTimeout((function(){X.forEach((function(e){return e()})),X=[]}),1200)}}((function(){Z=AFAppX.bridge,Y()}));var J,Q,$,K,ee,te,ne,re,oe,ie;function se(e,t){if(q){var n=t.success,r=t.fail,i=t.complete,s=o(t,[\"success\",\"fail\",\"complete\"]),a=z(n,r,i,!0);q.call(e,s,(function(e){a&&a(e)}))}else Z?Z.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}function ae(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"==typeof getApp}function ue(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp}!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(J||(J={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(Q||(Q={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}($||($={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(K||(K={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(ee||(ee={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(te||(te={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(ne||(ne={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(re||(re={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(oe||(oe={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(ie||(ie={})),Object.defineProperty.bind(Object),Object.defineProperties.bind(Object);var ce=Object.getOwnPropertyDescriptor.bind(Object);Object.freeze.bind(Object),Object.keys.bind(Object);var le=Object.prototype.hasOwnProperty;function de(e,t){return le.call(e,t)}Object.assign.bind(Object),Object.getOwnPropertyNames.bind(Object),Object.create.bind(Object),Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object),Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);var he=\"object\"==typeof console,pe=he&&console.log?console.log.bind(console):function(){};he&&console.warn&&console.warn.bind(console);var fe=he&&console.error?console.error.bind(console):function(){};ce(de,\"name\").configurable;var ge=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function ve(e,t){var n,r,i=t.param,s=t.viewId+\"\";i&&\"object\"==typeof i&&2===function(){if(d)return d;if(\"undefined\"!=typeof navigator){var e=p();d=e.indexOf(\"Android\")>-1?2:e.match(h)?1:0}else d=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return d}()?(n=i.data,i.type,r=o(i,[\"data\",\"type\"])):n=i,n?n.instanceId=s:n={instanceId:s};var a=new ge(e,n,1);if(r)try{Object.assign(a,r)}catch(e){}return a}var me=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var i=0;i<o.length;i++){if(!(0,o[i])(e))return}for(var s=0,a=r;s<a.length;s++){if(a[s].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}();var ye=new(function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,(ae()||ue())&&fe(\"EventManger is not work in\",\"isInBizContext\"),this.globalEventListener=new me(\"workerGlobal\",P),this.documentEventListeners=new me(\"document\",P&&P.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=ve(r,n),i=e.eventMap[r];i&&i.forEach((function(e){e(o)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return P&&P.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(pe(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(pe(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){pe(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(pe(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;if(!ae()&&!ue())return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)};Z.on(e,t)},e.prototype.off=function(e,t){ae()||ue()?Z.off(e,t):this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}()),be=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;ye.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return r({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){se(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}();var _e=function(e){return function(e){var t;if(ae()||ue())return Z.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:\"remote_debug\";delete e.__taskIdPrefix;var r=new be(n);return se(\"connectSocket\",r.getParam(e)),r}(e)};if(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}t(n,e),n.prototype.open=function(){var e=this;this._openInvoked||(this._openInvoked=!0,this.socketTask=_e({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)})))},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},n.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},n.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())}}(F),\"undefined\"!=typeof WebSocket&&WebSocket.OPEN)try{delete P.WebSocket}catch(e){}var we,Ie=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(f),Se=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.send(JSON.stringify({method:e,params:t}))},n.prototype.send=function(t,n){(this.isActive||n)&&e.prototype.send.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||A()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):k()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,r){e?n.send(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.send(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid json message: \",e))},n}(U);!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(we||(we={}));var Ce=function(e,t){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ce(e,t)};function ke(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)};function xe(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function Te(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function Ne(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Oe=Function.prototype.apply.call.bind(Function.prototype.apply);function Ae(e,t,n){return Oe(e,t,n)}function Me(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=Ae(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=Ae(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var Pe,Le,De,Re=\"__weak_set_key__yek_tes_kaew__\",Be=1;function je(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function Fe(){var e=\"undefined\"!=typeof Map;Pe=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function Ue(){var e;return Le||(e=\"undefined\"!=typeof WeakMap,Le=e?WeakMap:je()),new Le}function ze(){var e=\"undefined\"!=typeof WeakSet;De=e?WeakSet:function(){function e(){this.elementKey=Re+Be++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function He(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function qe(e,t,n,r,o,i){return He((s=He(He(t,e),He(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Ge(e,t,n,r,o,i,s){return qe(t&n|~t&r,e,t,o,i,s)}function We(e,t,n,r,o,i,s){return qe(t&r|n&~r,e,t,o,i,s)}function Ze(e,t,n,r,o,i,s){return qe(t^n^r,e,t,o,i,s)}function Ye(e,t,n,r,o,i,s){return qe(n^(t|~r),e,t,o,i,s)}function Ve(e,t){var n,r,o,i,s;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n<e.length;n+=16)r=a,o=u,i=c,s=l,a=Ge(a,u,c,l,e[n],7,-680876936),l=Ge(l,a,u,c,e[n+1],12,-389564586),c=Ge(c,l,a,u,e[n+2],17,606105819),u=Ge(u,c,l,a,e[n+3],22,-1044525330),a=Ge(a,u,c,l,e[n+4],7,-176418897),l=Ge(l,a,u,c,e[n+5],12,1200080426),c=Ge(c,l,a,u,e[n+6],17,-1473231341),u=Ge(u,c,l,a,e[n+7],22,-45705983),a=Ge(a,u,c,l,e[n+8],7,1770035416),l=Ge(l,a,u,c,e[n+9],12,-1958414417),c=Ge(c,l,a,u,e[n+10],17,-42063),u=Ge(u,c,l,a,e[n+11],22,-1990404162),a=Ge(a,u,c,l,e[n+12],7,1804603682),l=Ge(l,a,u,c,e[n+13],12,-40341101),c=Ge(c,l,a,u,e[n+14],17,-1502002290),a=We(a,u=Ge(u,c,l,a,e[n+15],22,1236535329),c,l,e[n+1],5,-165796510),l=We(l,a,u,c,e[n+6],9,-1069501632),c=We(c,l,a,u,e[n+11],14,643717713),u=We(u,c,l,a,e[n],20,-373897302),a=We(a,u,c,l,e[n+5],5,-701558691),l=We(l,a,u,c,e[n+10],9,38016083),c=We(c,l,a,u,e[n+15],14,-660478335),u=We(u,c,l,a,e[n+4],20,-405537848),a=We(a,u,c,l,e[n+9],5,568446438),l=We(l,a,u,c,e[n+14],9,-1019803690),c=We(c,l,a,u,e[n+3],14,-187363961),u=We(u,c,l,a,e[n+8],20,1163531501),a=We(a,u,c,l,e[n+13],5,-1444681467),l=We(l,a,u,c,e[n+2],9,-51403784),c=We(c,l,a,u,e[n+7],14,1735328473),a=Ze(a,u=We(u,c,l,a,e[n+12],20,-1926607734),c,l,e[n+5],4,-378558),l=Ze(l,a,u,c,e[n+8],11,-2022574463),c=Ze(c,l,a,u,e[n+11],16,1839030562),u=Ze(u,c,l,a,e[n+14],23,-35309556),a=Ze(a,u,c,l,e[n+1],4,-1530992060),l=Ze(l,a,u,c,e[n+4],11,1272893353),c=Ze(c,l,a,u,e[n+7],16,-155497632),u=Ze(u,c,l,a,e[n+10],23,-1094730640),a=Ze(a,u,c,l,e[n+13],4,681279174),l=Ze(l,a,u,c,e[n],11,-358537222),c=Ze(c,l,a,u,e[n+3],16,-722521979),u=Ze(u,c,l,a,e[n+6],23,76029189),a=Ze(a,u,c,l,e[n+9],4,-640364487),l=Ze(l,a,u,c,e[n+12],11,-421815835),c=Ze(c,l,a,u,e[n+15],16,530742520),a=Ye(a,u=Ze(u,c,l,a,e[n+2],23,-995338651),c,l,e[n],6,-198630844),l=Ye(l,a,u,c,e[n+7],10,1126891415),c=Ye(c,l,a,u,e[n+14],15,-1416354905),u=Ye(u,c,l,a,e[n+5],21,-57434055),a=Ye(a,u,c,l,e[n+12],6,1700485571),l=Ye(l,a,u,c,e[n+3],10,-1894986606),c=Ye(c,l,a,u,e[n+10],15,-1051523),u=Ye(u,c,l,a,e[n+1],21,-2054922799),a=Ye(a,u,c,l,e[n+8],6,1873313359),l=Ye(l,a,u,c,e[n+15],10,-30611744),c=Ye(c,l,a,u,e[n+6],15,-1560198380),u=Ye(u,c,l,a,e[n+13],21,1309151649),a=Ye(a,u,c,l,e[n+4],6,-145523070),l=Ye(l,a,u,c,e[n+11],10,-1120210379),c=Ye(c,l,a,u,e[n+2],15,718787259),u=Ye(u,c,l,a,e[n+9],21,-343485551),a=He(a,r),u=He(u,o),c=He(c,i),l=He(l,s);return[a,u,c,l]}function Xe(e){var t,n=\"\",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function Je(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function Qe(e){var t,n,r=\"0123456789abcdef\",o=\"\";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function $e(e){return unescape(encodeURIComponent(e))}function Ke(e){return function(e){return Xe(Ve(Je(e),8*e.length))}($e(e))}function et(e,t){return function(e,t){var n,r,o=Je(e),i=[],s=[];for(i[15]=s[15]=void 0,o.length>16&&(o=Ve(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=Ve(i.concat(Je(t)),512+8*t.length),Xe(Ve(s.concat(r),640))}($e(e),$e(t))}function tt(e,t,n){return t?n?et(t,e):Qe(et(t,e)):n?Ke(e):Qe(Ke(e))}Ue();var nt=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),rt=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new nt(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function ot(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}var it=function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return xe(this,(function(s){switch(s.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,Te(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,s,a,u,c,l,d,h,p,f,g;return xe(this,(function(v){switch(v.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,v.label=1;case 1:v.trys.push([1,13,14,15]),o=Te(r),i=o.next(),v.label=2;case 2:if(i.done)return[3,12];s=i.value,a=this.iterateDeepSlotBlockByOwnerId(e,t),v.label=3;case 3:if(!1!==(u=a.next()).done)return[3,9];if(!(c=u.value).node)return[3,8];if(c.provider!==s)return[3,8];l=c.node.firstChild,v.label=4;case 4:return l?(d=l).component?2!==d.component.type?[3,7]:[4,h=d.component]:[3,7]:[3,8];case 5:return v.sent(),n?[3,7]:[5,Te(this.iterateChildTargetByOwnerId(h,t))];case 6:v.sent(),v.label=7;case 7:return l=l.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return p=v.sent(),f={error:p},[3,15];case 14:try{i&&!i.done&&(g=o.return)&&g.call(o)}finally{if(f)throw f.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return xe(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,a=o.provider,((u=a.slotProviderParentContextInstance).type<2?u.option.parentTarget:u).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,Te(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,Te(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var a,u}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return xe(this,(function(o){switch(o.label){case 0:return[5,Te(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,Te(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return xe(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,Te(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=ot(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,Te(this.iterateDeepXML(r))];case 6:return o.sent(),r=ot(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}();!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Ue(),t}ke(t,e),t.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},t.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},t.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},t.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},t.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},t.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(Pe||Fe(),n=new Pe,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new rt(e.apply(this,t))),o.ref()}}(it);var st,at,ut,ct,lt,dt;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(Oe||(Oe=Function.prototype.apply.call.bind(Function.prototype.apply)),Oe(e,t,n)):e.call.apply(e,Ne([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(Oe||(Oe=Function.prototype.apply.call.bind(Function.prototype.apply)),Oe(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(st||(st={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(at||(at={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(ut||(ut={})),function(e){e[e.Info=0]=\"Info\",e[e.Warn=1]=\"Warn\",e[e.Error=2]=\"Error\"}(ct||(ct={})),function(e){e.AppxLifecycle=\"AppxLifecycle\"}(lt||(lt={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(dt||(dt={})),Ue();var ht=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=pt(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=pt(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=pt(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=pt(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function pt(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ke(t,e),t.prototype.exitProviderUpdating=function(){},t.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=pt((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},t.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(ht),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ke(t,e),t.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},t.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},t.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=pt(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(ht);var ft=function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=vt(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=yt(this._component),this._currentAnchor4Index=yt(this._component,null,Nt(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=yt(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=Tt(e,this._component),It(e,Ct(e,this._currentAnchorHead));var n=xt(e,this._component,\"c\",Nt(this._selectedBlockIndex));return this._currentAnchor4Index=n[0],e.treatErrorAsWarning+=n[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=n[1],St(e),this._currentAnchor=Tt(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,wt(e,this._currentAnchorHead,t),wt(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),wt(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=Nt(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=vt(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(mt(this._currentAnchorHead),mt(this._currentAnchor4Index),mt(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}();function gt(){}function vt(e,t,n){if(e)return e(t,n)}function mt(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function yt(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function bt(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function _t(e,t){var n=t.parent;n&&bt(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function wt(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}function It(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}function St(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}ke(t,e),t.prototype.detach=function(){this.detaching=!0},t.prototype.attach=function(){this.detaching=!1},t.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},t.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},t.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=vt(this._selectedBlockType,this._component,t)},t.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(ft);var Ct=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var kt=0;var Et=function(){return\"z:\".concat(++kt)},xt=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{if(o={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var c={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,c)}else i.appendChild(o);a=1}if(e.index++,a)for(var l=e.index,d={destroy:gt,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(l))&&e.stopReverseIndex!==e.nodes.length-l;)d.root=s,i.removeChild(d);return[o,u]};var Tt=function(e,t,n){var r,o=e.target,i={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){_t(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,_t(o,l),o.insertBefore(i,l),bt(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);i.root=u,u&&8===u.nodeType?_t(o,i):(r={destroy:gt,eType:0,nextSibling:null,parent:null,previousSibling:null,root:t.document.document.createComment(Et())},u?(_t(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?bt(o,i):o.removeChild(i)):o.appendChild(r));return r||i};function Nt(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function Ot(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Dt(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function At(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.apply(void 0,e);try{n(o,e)}catch(e){console.error(e)}return o}}function Mt(e,t,n){var r=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}return r.apply(void 0,e)}}function Pt(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Lt(e){return\"\".concat(\"b\",\":\").concat(e)}function Dt(e){return\"\".concat(\"e\",\":\").concat(e)}function Rt(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,Rt(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,Rt(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Bt=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=Rt(this.node);return Rt(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function jt(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}var Ft=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=we.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}return ke(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},t.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},t.prototype.getChildNodes=function(){return Ot(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==we.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(t.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),t.prototype.getOuterAXML=function(){return jt(this)},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},t.prototype.getPseudoElements=function(){return[]},t}(Bt),Ut=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=we.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return ke(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t.prototype.getOuterAXML=function(){return this.node.root.textContent},t}(Bt),zt=function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=we.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=Me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:Pt(r.getData()).data,nodeId:n,targetId:r.targetId}),a};var s=Me(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Pt(r.getProps()).data,targetId:r.targetId})},this.invalidate=Me(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return Ot(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Dt(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==we.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),placeholderComponentInfo:this.getPlaceholderComponentInfo(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return jt(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,function(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getPlaceholderComponentInfo=function(){if(this.componentInstance.getPlaceholderComponentInfo)return this.componentInstance.getPlaceholderComponentInfo()},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=Rt(this.beginAnchor);return Rt(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},e}(),Ht=function(){function e(e,t,n,r,o){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=r,this.znode=o,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,r,o=this.node,i=0,s=0,a=o.childNodes;s<a.length;s++){var u=a[s];if(1===u.nodeType||3===u.nodeType){var c=this.devtool.getDOMNodeDebugInfo(u,null,this.nodeId);if(c.znode){if(!r){var l=c.znode.shadowSlotNodeId;r={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=r.distributedNodes;d||(d=r.distributedNodes=[]),d.push({backendNodeId:c.znode.nodeId,nodeName:c.znode.nodeName,nodeType:u.nodeType});continue}r&&(e>0&&(n||(n=[]),n.push(r)),i++),r=null,e>0&&(n||(n=[]),n.push(c.serialize(e-1,t))),i++}}r&&(e>0&&(n||(n=[]),n.push(r)),i++);for(var h=[],p=0,f=o.attributes;p<f.length;p++){var g=f[p];h.push(g.name,g.value)}var v={attributes:h,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:o.nodeName.toLowerCase(),nodeId:this.nodeId,nodeName:o.nodeName,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=v),v},e.prototype.checkAttributesModified=function(e,t){for(var n=this,r=new Map,o=0;o<e.length-1;o+=2)r.set(e[o],e[o+1]);for(o=0;o<t.length-1;o+=2){var i=t[o],s=t[o+1];if(r.has(i)){var a=r.get(i);r.delete(i),a!==s&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:s})}r.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;qt(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var r=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:r?r.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var r=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};qt(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),r,r)}else{var o=n.devtool.nodeId2DOMNode.get(e.nodeId);o&&1===o.nodeType&&o.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function qt(e,t,n,r,o,i){var s=t.slice();e.forEach((function(e){var t=-1;s.some((function(r,o){if(n(e,r))return t=o,!0})),t>-1?(i&&i(e,s[t]),s.splice(t,1)):o(e)})),s.forEach(r)}var Gt=function(){function e(e,t,n,r){this.devtool=e,this.node=t,this.nodeId=n,this.znode=r,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),Wt=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getZNodeDebugInfo=function(e){if(!e._debug)if(1===e.eType){var t=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===t.indexOf(\"unknown\")&&(t=e.tagName||e.externalElementName||t);var n=this.dependecyFactory.createZNodeElement(this,t.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(n.nodeId,n),this.shadowRootNodeId2ZNode.set(n.shadowRootNodeId,n),e._debug=n}else if(2===e.eType){var r=new Ut(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new zt(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(!e._debug)if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var o=new Gt(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(o.nodeId,o),e._debug=o}return e._debug},e.prototype.getDocumentNode=function(){var e=this.rootNodeId;try{var t=[],n=this.getZNodeDebugInfo(this.option.clientProxy.renderer.documentInstance);n.setParentNodeId(e),t.push(n.serialize(1));var r=this.option.clientProxy.renderer.tabBarInstance;if(r){var o=this.getZNodeDebugInfo(r);if(o.setParentNodeId(e),o&&o.serialize(1).children){var i=o.serialize(1).children[0];i&&(i.nodeName=\"tab-bar\",i.attributes=[],t.push(i))}}return{backendNodeId:e,childNodeCount:1,children:t,localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(t){console.warn(\"getDocumentRoot error\",t);var s=\"page-not-found\";return{backendNodeId:e,childNodeCount:1,children:[{attributes:[],backendNodeId:e+1,childNodeCount:0,localName:s,nodeId:2,nodeName:s,nodeType:1,nodeValue:\"\",parentId:e}],localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===we.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),Zt=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=Ue(),this.rootZTargetToLocation=Ue(),this.zInstanceToLocation=Ue(),this.zTargetToLocation=Ue(),this.zInstanceLocationStack=[],this.locationVisited=(De||ze(),new De),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:r};4&o&&(s.blockType=\"each\"),this.zInstanceLocationStack.push(s)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==we.Text;){if(n.nodeType===we.Element){var r=n.node;if(r.document)break;var o=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:o,element:r,type:\"Element\"})}else if(n.nodeType===we.Component){o=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:o,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===we.Element){var r=t.getClassName();\"string\"==typeof r&&(n=r.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var r=e,o=[];r&&r.nodeType!==we.Text;){var i=void 0;if(r.nodeType===we.Element){var s=r.node;s.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(s),element:s})}else if(r.nodeType===we.Component){if(r===e)i={index:-1,componentIs:r.getComponentInstance().componentIs}}if(i){for(var a=r,u=void 0;a;){var c=void 0;if(a.nodeType===we.Element?(c=this.zInstanceToLocation.get(a.node),u=this.rootZInstanceToLocation.get(a.node)):a.nodeType===we.Component&&(c=this.zTargetToLocation.get(a.getComponentInstance()),u=this.rootZTargetToLocation.get(a.getComponentInstance())),c===n&&(i.index+=1,u))break;a=a.getPreviousElementOrTextSibling()}if(o.unshift(i),u)return{location:u,offsets:o}}r=r.getParentNode()}return{location:void 0,offsets:o}},e}();var Yt=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r),i=getComputedStyle(n,o).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var s=e.pseudoNodeType2Id[r];s||(s=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(s,new Yt(s,r,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:s,childNodeCount:0,localName:o,nodeId:s,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Ft),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(r){var o=\"::\".concat(r);if(\"none\"!==getComputedStyle(n,o).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[r];i||(i=e.pseudoNodeType2Id[r]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new Yt(i,r,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:o,nodeId:i,nodeName:o,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:r})}})),t},t}(Ht);function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function Qt(e,t){return e(t={exports:{}},t.exports),t.exports}var $t=Qt((function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,r=/^data:.+\\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var s,a=t.isAbsolute(n),u=n.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(n=u.join(\"/\"))&&(n=a?\"/\":\".\"),r?(r.path=n,i(r)):n}function a(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=o(t),a=o(e);if(a&&(e=a.path||\"/\"),n&&!n.scheme)return a&&(n.scheme=a.scheme),i(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,i(a)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=s,t.join=a,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var r=e.lastIndexOf(\"/\");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var u=!(\"__proto__\"in Object.create(null));function c(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?\"$\"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var r=o(n);if(!r)throw new Error(\"sourceMapURL could not be parsed\");if(r.path){var u=r.path.lastIndexOf(\"/\");u>=0&&(r.path=r.path.substring(0,u+1))}t=a(i(r),t)}return s(t)}},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(10)),o=s(n(11)),i=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new r.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=typeof i;\"parent\"===o&&\"object\"===s?n&&(r[o]=n):\"source\"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):(\"object\"===s&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new o.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)\"\\n\"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=function(e,t){new o.default(t).stringify(e)};t.default=i,e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];\".\"===o?e.splice(r,1):\"..\"===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t=\"\",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(t=s+\"/\"+t,o=\"/\"===s.charAt(0))}return(o?\"/\":\"\")+(t=n(r(t.split(\"/\"),(function(e){return!!e})),!o).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),s=\"/\"===o(e,-1);return(e=n(r(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&s&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split(\"/\")),i=r(n.split(\"/\")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push(\"..\");return(c=c.concat(i.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var o=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(40)),o=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw e}return i.root};t.default=s,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=n(2))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(1)),o=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,i;function a(){return e.apply(this,arguments)||this}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var u,c=a.prototype;return c.push=function(e){return e.parent=this,this.nodes.push(e),this},c.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},c.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+o.input.from+\":\"+o.start.line+\":\"+o.start.column+\"$&\")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},c.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"decl\"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if(\"decl\"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},c.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"rule\"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if(\"rule\"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},c.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if(\"atrule\"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if(\"atrule\"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},c.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},c.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r],s=this.normalize(i,this.last),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;this.nodes.push(l)}}return this},c.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var s;if(o){if(i>=r.length)break;s=r[i++]}else{if((i=r.next()).done)break;s=i.value}var a=s,u=this.normalize(a,this.first,\"prepend\").reverse(),c=u,l=Array.isArray(c),d=0;for(c=l?c:c[Symbol.iterator]();;){var h;if(l){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var p=h;this.nodes.unshift(p)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}return this},c.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},c.insertBefore=function(e,t){var n,r=0===(e=this.index(e))&&\"prepend\",o=this.normalize(t,this.nodes[e],r).reverse(),i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var c=u;this.nodes.splice(e,0,c)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this},c.insertAfter=function(e,t){e=this.index(e);var n,r=this.normalize(t,this.nodes[e]).reverse(),o=r,i=Array.isArray(o),s=0;for(o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if((s=o.next()).done)break;a=s.value}var u=a;this.nodes.splice(e+1,0,u)}for(var c in this.indexes)e<(n=this.indexes[c])&&(this.indexes[c]=n+r.length);return this},c.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},c.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},c.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},c.every=function(e){return this.nodes.every(e)},c.some=function(e){return this.nodes.some(e)},c.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},c.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var s=e=e.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var c;if(a){if(u>=s.length)break;c=s[u++]}else{if((u=s.next()).done)break;c=u.value}var l=c;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),h=Array.isArray(d),p=0;for(d=h?d:d[Symbol.iterator]();;){var f;if(h){if(p>=d.length)break;f=d[p++]}else{if((p=d.next()).done)break;f=p.value}var g=f;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new r.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new o.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(u=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&s(a.prototype,u),a}(i(n(2)).default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=i(n(8)),o=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){var t,n,r;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(r=[{key:\"selectors\",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&s(i.prototype,r),i}(r.default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(22)),o=s(n(23)),i=s(n(24));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=\"function\"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function u(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function s(t,n,r,o,i,a){var u;return(u=e.call(this,t)||this).name=\"CssSyntaxError\",u.reason=t,i&&(u.file=i),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==r&&(u.line=n,u.column=r),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(u),s),u}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},a.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var s=n.split(/\\r?\\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;function l(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return s.slice(a,u).map((function(e,n){var r=a+1+n,o=\" \"+(\" \"+r).slice(-c)+\" | \";if(r===t.line){var i=d(o.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(o)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(o)+e})).join(\"\\n\")},a.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},s}(a(Error));t.default=h,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),r=e.prop+n+this.rawValue(e,\"value\");e.important&&(r+=e.raws.important||\" !important\"),t&&(r+=\";\"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,r=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=\" \"),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,\"before\");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+r+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return r[n];var s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var a,u=\"raw\"+((a=n)[0].toUpperCase()+a.slice(1));return this[u]?o=this[u](s,e):s.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),s.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split(\"\\n\");return t=(t=o[o.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var r=e.parent,o=0;r&&\"root\"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new o.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;if(s.postcss&&(s=s.postcss),\"object\"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(\"function\"==typeof s)t.push(s);else if(\"object\"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=a(n(25)),o=a(n(3)),i=(a(n(37)),a(n(38))),s=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var l=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)o=n;else if(n instanceof e||n instanceof i.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=s.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new i.default(t,o,r)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,c(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(c(this.run(o)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=o.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new r.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&u(e.prototype,t),e}();t.default=l,e.exports=t.default},function(e,t,n){(function(e){var r=n(27),o=n(28),i=n(29);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(r||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,n,r):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!u.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|f(t,n),o=(e=a(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if(\"Buffer\"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return U(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return z(e).length;default:if(r)return U(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return N(this,t,n);case\"utf8\":case\"utf-8\":return E(this,t,n);case\"ascii\":return x(this,t,n);case\"latin1\":case\"binary\":return T(this,t,n);case\"base64\":return k(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return O(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var d=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return H(z(t),e,n,r)}function C(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function x(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=F(e[i]);return o}function O(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function M(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function R(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?\"string\"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?E(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),d=0;d<a;++d)if(c[d]!==l[d]){i=c[d],s=l[d];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return _(this,e,t,n);case\"ascii\":return w(this,e,t,n);case\"latin1\":case\"binary\":return I(this,e,t,n);case\"base64\":return S(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return C(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!u.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var j=/[^+\\/0-9A-Za-z-_]/g;function F(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(j,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var r=n(17),o=n(0),i=n(18).ArraySet,s=n(31).MappingList;function a(e){e||(e={}),this._file=o.getArg(e,\"file\",null),this._sourceRoot=o.getArg(e,\"sourceRoot\",null),this._skipValidation=o.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(r);null!=s&&n.setSourceContent(r,s)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,\"generated\"),n=o.getArg(e,\"original\",null),r=o.getArg(e,\"source\",null),i=o.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=o.relative(s,r));var a=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=s&&(t.source=o.relative(s,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=s&&(t=o.relative(s,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,i,s=0,a=1,u=0,c=0,l=0,d=0,h=\"\",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e=\"\",(t=p[f]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=\",\"}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},function(e,t,n){var r=n(30);t.encode=function(e){var t,n=\"\",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);n.value=(a=(s=c)>>1,1==(1&s)?-a:a),n.rest=t}},function(e,t,n){var r=n(0),o=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},s.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=i?e:r.toSetString(e),s=i?this.has(e):o.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(i?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},s.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},s.prototype.toArray=function(){return this._array.slice()},t.ArraySet=s},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={split:function(e,t,n){for(var r=[],o=\"\",i=!1,s=0,a=!1,u=!1,c=0;c<e.length;c++){var l=e[c];a?u?u=!1:\"\\\\\"===l?u=!0:l===a&&(a=!1):'\"'===l||\"'\"===l?a=l:\"(\"===l?s+=1:\")\"===l?s>0&&(s-=1):0===s&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==o&&r.push(o.trim()),o=\"\",i=!1):o+=l}return(n||\"\"!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return r.split(e,[\",\"],!0)}},o=r;t.default=o,e.exports=t.default},function(e,t,n){var r;t.__esModule=!0,t.default=void 0;var o=function(e){var t,r;function o(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=o.prototype;return i.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,s=Array.isArray(i),a=0;for(i=s?i:i[Symbol.iterator]();;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}u.raws.before=n.raws.before}}return o},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},o}(((r=n(8))&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=p(n(1)),o=p(n(12)),i=p(n(3)),s=p(n(6)),a=p(n(7)),u=p(n(45)),c=p(n(5)),l=p(n(19)),d=p(n(9)),h=p(n(20));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,\"postcss\",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=i.default,f.parse=c.default,f.vendor=u.default,f.list=l.default,f.comment=function(e){return new s.default(e)},f.atRule=function(e){return new a.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new h.default(e)};var g=f;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=s(n(15)),i=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var s=r,a=this.relative(s.file),u=s.root||i.default.dirname(s.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new o.default.SourceMapConsumer(s.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map((function(){return null}))):c=s.consumer(),this.map.applySourceMap(c,a,this.relative(u))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,s,a){if(e.css+=o,s&&\"end\"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\\n/g))?(r+=t.length,n=o.lastIndexOf(\"\\n\"),i=o.length-n):i+=o.length,s&&\"start\"!==a){var u=s.parent||{raws:{}};(\"decl\"!==s.type||s!==u.last||u.raws.semicolon)&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:r,column:i-2},original:{line:s.source.end.line,column:s.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=a,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,d=0;d<l;d+=4)t=o[e.charCodeAt(d)]<<18|o[e.charCodeAt(d+1)]<<12|o[e.charCodeAt(d+2)]<<6|o[e.charCodeAt(d+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(d)]<<2|o[e.charCodeAt(d+1)]>>4,a[u++]=255&t),1===s&&(t=o[e.charCodeAt(d)]<<10|o[e.charCodeAt(d+1)]<<4|o[e.charCodeAt(d+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+\"==\")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+\"=\")),i.join(\"\")};for(var r=[],o=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join(\"\")}o[\"-\".charCodeAt(0)]=62,o[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+d>=1?h/u:h*Math.pow(2,1-d))*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(0);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,s,a;n=e,o=(t=this._last).generatedLine,i=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,i>o||i==o&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(0),o=n(33),i=n(18).ArraySet,s=n(17),a=n(34).quickSort;function u(e,t){var n=e;return\"string\"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sources\"),a=r.getArg(n,\"names\",[]),u=r.getArg(n,\"sourceRoot\",null),c=r.getArg(n,\"sourcesContent\",null),l=r.getArg(n,\"mappings\"),d=r.getArg(n,\"file\",null);if(o!=this._version)throw new Error(\"Unsupported version: \"+o);u&&(u=r.normalize(u)),s=s.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(a.map(String),!0),this._sources=i.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,\"version\"),s=r.getArg(n,\"sections\");if(o!=this._version)throw new Error(\"Unsupported version: \"+o);this._sources=new i,this._names=new i;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=r.getArg(e,\"offset\"),o=r.getArg(n,\"line\"),i=r.getArg(n,\"column\");if(o<a.line||o===a.line&&i<a.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new u(r.getArg(e,\"map\"),t)}}))}u.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||u.GENERATED_ORDER){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(s,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},u.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,\"line\"),n={source:r.getArg(e,\"source\"),originalLine:t,originalColumn:r.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)i.push({line:r.getArg(a,\"generatedLine\",null),column:r.getArg(a,\"generatedColumn\",null),lastColumn:r.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return i},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),s=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var u=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,f=u.length;p<f;p++){var g=u[p],v=new l;v.generatedLine=g.generatedLine,v.generatedColumn=g.generatedColumn,g.source&&(v.source=s.indexOf(g.source),v.originalLine=g.originalLine,v.originalColumn=g.originalColumn,g.name&&(v.name=o.indexOf(g.name)),h.push(v)),d.push(v)}return a(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,u,c,d=1,h=0,p=0,f=0,g=0,v=0,m=e.length,y=0,b={},_={},w=[],I=[];y<m;)if(\";\"===e.charAt(y))d++,y++,h=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,u=y;u<m&&!this._charIsMappingSeparator(e,u);u++);if(i=b[o=e.slice(y,u)])y+=o.length;else{for(i=[];y<u;)s.decode(e,y,_),c=_.value,y=_.rest,i.push(c);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=v+i[4],v+=i[4])),I.push(n),\"number\"==typeof n.originalLine&&w.push(n)}a(I,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=I,a(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,i,s){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[r]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[r]);return o.search(e,t,i,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",r.compareByGeneratedPositionsDeflated,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,\"source\",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=r.getArg(o,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:i,line:r.getArg(o,\"originalLine\",null),column:r.getArg(o,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var s=i.replace(/^file:\\/\\//,\"\");if(\"file\"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||\"/\"==o.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,\"line\"),originalColumn:r.getArg(e,\"column\")},o=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",r.compareByOriginalPositions,r.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,\"generatedLine\",null),column:r.getArg(i,\"generatedColumn\",null),lastColumn:r.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(u.prototype),d.prototype.constructor=u,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,\"line\"),generatedColumn:r.getArg(e,\"column\")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,\"source\"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var u=i[s],c=o.consumer._sources.at(u.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=o.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var d={source:c,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,o){if(0===n.length)return-1;var i=function e(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?e(u,r,o,i,s,a):a==t.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?e(n,u,o,i,s,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o<i){var s=o-1;n(e,(l=o,d=i,Math.round(l+Math.random()*(d-l))),i);for(var a=e[i],u=o;u<i;u++)t(e[u],a)<=0&&n(e,s+=1,u);n(e,s+1,u);var c=s+1;r(e,t,o,c-1),r(e,t,c+1,i)}var l,d}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(16).SourceMapGenerator,o=n(0),i=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(i),u=0,c=function(){return e()+(e()||\"\");function e(){return u<s.length?s[u++]:void 0}},l=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=s[u]||\"\").substr(0,e.generatedColumn-d);return s[u]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,c()),l++,d=0}for(;l<e.generatedLine;)r.add(c()),l++;if(d<e.generatedColumn){var n=s[u]||\"\";r.add(n.substr(0,e.generatedColumn)),s[u]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),u<s.length&&(h&&p(h,c()),r.add(s.splice(u).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,i,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new r(e),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&s===r.line&&a===r.column&&u===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,s=r.line,a=r.column,u=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},function(e,t){var n,r,o=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){r[e]||(r[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var r={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(39))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&i(e.prototype,t),e}();t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(1)),o=c(n(41)),i=c(n(6)),s=c(n(7)),a=c(n(20)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new a.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var r=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new u.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=[],a=e;a;){if(n=a[0],s.push(a),\"(\"===n||\"[\"===n)o||(o=a),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(r)return void this.decl(s);break}if(\"{\"===n)return void this.rule(s);if(\"}\"===n){this.tokenizer.back(s.pop()),t=!0;break}\":\"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;s.length&&(\"space\"===(a=s[s.length-1][0])||\"comment\"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},t.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(\";\"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if(\"!important\"===(n=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);\" !important\"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if(\"important\"===n[1].toLowerCase()){for(var u=e.slice(0),c=\"\",l=s;l>0;l--){var d=u[l][0];if(0===c.trim().indexOf(\"!\")&&\"space\"!==d)break;c=u.pop()[1]+c}0===c.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=c,e=u)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new s.default;r.name=e[1].slice(1),\"\"===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,a=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(a.length>0){for(t=a[n=a.length-1];t&&\"space\"===t[0];)t=a[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,\"params\",a),o&&(e=a[a.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between=\"\")):(r.raws.afterName=\"\",r.params=\"\"),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,s,a=n.length,u=\"\",c=!0,l=/^([.|#])?([\\w])+/i,d=0;d<a;d+=1)\"comment\"!==(o=(r=n[d])[0])||\"rule\"!==e.type?\"comment\"===o||\"space\"===o&&d===a-1?c=!1:u+=r[1]:(s=n[d-1],i=n[d+1],\"space\"!==s[0]&&\"space\"!==i[0]&&l.test(s[1])&&l.test(i[1])?u+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:u,raw:h}}e[t]=u},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(o+=1),\")\"===n&&(o-=1),0===o&&\":\"===n){if(r){if(\"word\"===r[0]&&\"progid\"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&(\"space\"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,E,x,T,N,O,A,M,P,L,D,R,B,j,F=e.css.valueOf(),U=t.ignoreErrors,z=F.length,H=-1,q=1,G=0,W=[],Z=[];function Y(t){throw e.error(\"Unclosed \"+t,q,G-H)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(!(G>=z)){var t=!!e&&e.ignoreUnclosed;switch(((n=F.charCodeAt(G))===a||n===c||n===d&&F.charCodeAt(G+1)!==a)&&(H=G,q+=1),n){case a:case u:case l:case d:case c:E=G;do{E+=1,(n=F.charCodeAt(E))===a&&(H=E,q+=1)}while(n===u||n===a||n===l||n===d||n===c);j=[\"space\",F.slice(G,E)],G=E-1;break;case h:case p:case v:case m:case _:case y:case g:var V=String.fromCharCode(n);j=[V,V,q,G-H];break;case f:if(R=W.length?W.pop()[1]:\"\",B=F.charCodeAt(G+1),\"url\"===R&&B!==r&&B!==o&&B!==u&&B!==a&&B!==l&&B!==c&&B!==d){E=G;do{if(L=!1,-1===(E=F.indexOf(\")\",E+1))){if(U||t){E=G;break}Y(\"bracket\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);j=[\"brackets\",F.slice(G,E+1),q,G-H,q,E-H],G=E}else E=F.indexOf(\")\",G+1),O=F.slice(G,E+1),-1===E||C.test(O)?j=[\"(\",\"(\",q,G-H]:(j=[\"brackets\",O,q,G-H,q,E-H],G=E);break;case r:case o:x=n===r?\"'\":'\"',E=G;do{if(L=!1,-1===(E=F.indexOf(x,E+1))){if(U||t){E=G+1;break}Y(\"string\")}for(D=E;F.charCodeAt(D-1)===i;)D-=1,L=!L}while(L);O=F.slice(G,E+1),T=O.split(\"\\n\"),(N=T.length-1)>0?(M=q+N,P=E-T[N].length):(M=q,P=H),j=[\"string\",F.slice(G,E+1),q,G-H,M,E-P],H=P,q=M,G=E;break;case w:I.lastIndex=G+1,I.test(F),E=0===I.lastIndex?F.length-1:I.lastIndex-2,j=[\"at-word\",F.slice(G,E+1),q,G-H,q,E-H],G=E;break;case i:for(E=G,A=!0;F.charCodeAt(E+1)===i;)E+=1,A=!A;if(n=F.charCodeAt(E+1),A&&n!==s&&n!==u&&n!==a&&n!==l&&n!==d&&n!==c&&(E+=1,k.test(F.charAt(E)))){for(;k.test(F.charAt(E+1));)E+=1;F.charCodeAt(E+1)===u&&(E+=1)}j=[\"word\",F.slice(G,E+1),q,G-H,q,E-H],G=E;break;default:n===s&&F.charCodeAt(G+1)===b?(0===(E=F.indexOf(\"*/\",G+2)+1)&&(U||t?E=F.length:Y(\"comment\")),O=F.slice(G,E+1),T=O.split(\"\\n\"),(N=T.length-1)>0?(M=q+N,P=E-T[N].length):(M=q,P=H),j=[\"comment\",O,q,G-H,M,E-P],H=P,q=M,G=E):(S.lastIndex=G+1,S.test(F),E=0===S.lastIndex?F.length-1:S.lastIndex-2,j=[\"word\",F.slice(G,E+1),q,G-H,q,E-H],W.push(j),G=E)}return G++,j}},endOfFile:function(){return 0===Z.length&&G>=z},position:function(){return G}}};var r=\"'\".charCodeAt(0),o='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),s=\"/\".charCodeAt(0),a=\"\\n\".charCodeAt(0),u=\" \".charCodeAt(0),c=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),h=\"[\".charCodeAt(0),p=\"]\".charCodeAt(0),f=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),v=\"{\".charCodeAt(0),m=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),_=\":\".charCodeAt(0),w=\"@\".charCodeAt(0),I=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,S=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,C=/.[\\\\/(\"'\\n]/,k=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var r=s(n(4)),o=s(n(10)),i=s(n(43));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=0,c=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"￾\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(u+=1,this.id=\"<input css \"+u+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,r){var i;void 0===r&&(r={});var s=this.origin(t,n);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&a(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(r){t.__esModule=!0,t.default=void 0;var o=a(n(15)),i=a(n(4)),s=a(n(44));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,\"base64\").toString():window.atob(t);var o=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0;var r={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}};t.default=r,e.exports=t.default}])})),Kt=Jt($t);$t.postcss;var en=Qt((function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",r=!1,o=0;o<6&&void 0!==t[o];o++){var i=t.charCodeAt(o);if(r=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[o]}if(0!==n.length){var s=parseInt(n,16);return s>=55296&&s<=57343||0===s||s>1114111?[\"�\",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t=\"\",o=0;o<e.length;o++)if(\"\\\\\"!==e[o])t+=e[o];else{var i=n(e.slice(o+1,o+7));if(void 0!==i){t+=i[0],o+=i[1];continue}if(\"\\\\\"===e[o+1]){t+=\"\\\\\",o++;continue}e.length===o+1&&(t+=e[o])}return t};var r=/\\\\/;e.exports=t.default}));Jt(en);var tn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default}));Jt(tn);var nn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default}));Jt(nn);var rn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),r=0;for(;n>=0;){t+=e.slice(r,n);var o=e.indexOf(\"*/\",n+2);if(o<0)return t;r=o+2,n=e.indexOf(\"/*\",r)}return t+=e.slice(r)},e.exports=t.default}));Jt(rn);var on=Qt((function(e,t){t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var n=s(en);t.unesc=n.default;var r=s(tn);t.getProp=r.default;var o=s(nn);t.ensureObject=o.default;var i=s(rn);function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=i.default}));Jt(on),on.stripComments,on.ensureObject,on.getProp,on.unesc;var sn=Qt((function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.__esModule=!0,t.default=void 0;var r=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];\"parent\"===o&&\"object\"===typeof i?n&&(r[o]=n):r[o]=i instanceof Array?i.map((function(t){return e(t,r)})):e(i,r)}return r},o=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,o,i,s=e.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(e){void 0===e&&(e={});var t=r(this);for(var n in e)t[n]=e[n];return t},s.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var r=this[e],o=this.raws[e];this[e]=r+t,o||n!==t?this.raws[e]=(o||r)+n:delete this.raws[e]},s.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},s.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},s.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},s.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},s.valueToString=function(){return String(this.stringifyProperty(\"value\"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(o=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,on.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,on.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&n(t.prototype,o),i&&n(t,i),e}();t.default=o,e.exports=t.default}));Jt(sn);var an=Qt((function(e,t){t.__esModule=!0,t.UNIVERSAL=t.ATTRIBUTE=t.CLASS=t.COMBINATOR=t.COMMENT=t.ID=t.NESTING=t.PSEUDO=t.ROOT=t.SELECTOR=t.STRING=t.TAG=void 0;t.TAG=\"tag\";t.STRING=\"string\";t.SELECTOR=\"selector\";t.ROOT=\"root\";t.PSEUDO=\"pseudo\";t.NESTING=\"nesting\";t.ID=\"id\";t.COMMENT=\"comment\";t.COMBINATOR=\"combinator\";t.CLASS=\"class\";t.ATTRIBUTE=\"attribute\";t.UNIVERSAL=\"universal\"}));Jt(an),an.UNIVERSAL,an.ATTRIBUTE,an.CLASS,an.COMBINATOR,an.COMMENT,an.ID,an.NESTING,an.PSEUDO,an.ROOT,an.SELECTOR,an.STRING,an.TAG;var un=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=sn)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(an);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}return(n=e[Symbol.iterator]()).next.bind(n)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i,a,l,d=r.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=s(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[o])&&(this.indexes[o]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var o in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[o])<=r&&(this.indexes[o]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var o=r.atPosition(e,t);if(o)return n=o,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(r=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},d.walk=function(e){return this.each((function(t,n){var r=e(t,n);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===o.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===o.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===o.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===o.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===o.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===o.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(r,o,i){var s=e.call(t,o);return n.push(o),s?(r.push(n),n=[]):i===t.length-1&&r.push(n),r}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=r,(a=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&u(i.prototype,a),l&&u(i,l),r}(r.default);t.default=l,e.exports=t.default}));Jt(un);var cn=Qt((function(e,t){var n;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}t.__esModule=!0,t.default=void 0;var i=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).type=an.ROOT,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s,a,u,c=i.prototype;return c.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},c.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=i,(a=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&r(s.prototype,a),u&&r(s,u),i}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=i,e.exports=t.default}));Jt(cn);var ln=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(ln);var dn={}.hasOwnProperty,hn=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,pn=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,fn=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,gn=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var r in t)n[r]=dn.call(e,r)?e[r]:t[r];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var r=\"double\"==n.quotes?'\"':\"'\",o=n.isIdentifier,i=t.charAt(0),s=\"\",a=0,u=t.length;a<u;){var c=t.charAt(a++),l=c.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?hn.test(c)?\"\\\\\"+c:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(c)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==c||!o&&('\"'==c&&r==c||\"'\"==c&&r==c)||o&&pn.test(c)?\"\\\\\"+c:c;s+=d}return o&&(/^-[-\\d]/.test(s)?s=\"\\\\-\"+s.slice(1):/\\d/.test(i)&&(s=\"\\\\3\"+i+\" \"+s.slice(1))),s=s.replace(fn,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!o&&n.wrap?r+s+r:s};gn.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},gn.version=\"3.0.0\";var vn=gn,mn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(vn);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r,s,a,u;function c(t){var n;return(n=e.call(this,t)||this).type=an.CLASS,n._constructed=!0,n}return r=e,(t=c).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),c.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},s=c,(a=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,on.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}])&&o(s.prototype,a),u&&o(s,u),c}(r(sn).default);t.default=s,e.exports=t.default}));Jt(mn);var yn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(yn);var bn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(bn);var _n=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n=r(vn);function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r);var a,u,c,l=s.prototype;return l.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},l.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},a=s,u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,on.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}],u&&o(a.prototype,u),c&&o(a,c),s}(r(sn).default);t.default=s,e.exports=t.default}));Jt(_n);var wn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=_n)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(wn);var In=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(In);var Sn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(((n=un)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Sn);var Cn=function(e,t){if(kn(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(kn(\"throwDeprecation\"))throw new Error(t);kn(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function kn(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}var En=Qt((function(e,t){t.__esModule=!0,t.unescapeValue=p,t.default=void 0;var n,r=s(vn),o=s(en),i=s(_n);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var c=/^('|\")(.*)\\1$/,l=Cn((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),d=Cn((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=Cn((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function p(e){var t=!1,n=null,r=e,i=r.match(c);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var f=function(e){var t,n;function o(t){var n;return void 0===t&&(t={}),n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=p(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}(t))||this,n.type=an.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:Cn((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:Cn((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,c,f=o.prototype;return f.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),n=g[t];return(0,r.default)(this._value,n)},f._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},f.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},f.smartQuoteMark=function(e){var t=this.value,n=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(n+i===0){var s=(0,r.default)(t,{isIdentifier:!0});if(s===t)return o.NO_QUOTE;var a=this.preferredQuoteMark(e);if(a===o.NO_QUOTE){var u=this.quoteMark||e.quoteMark||o.DOUBLE_QUOTE,c=g[u];if((0,r.default)(t,c).length<s.length)return u}return a}return i===n?this.preferredQuoteMark(e):i<n?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},f.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=o.DOUBLE_QUOTE),t},f._syncRawValue=function(){var e=(0,r.default)(this._value,g[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},f._handleEscapes=function(e,t){if(this._constructed){var n=(0,r.default)(t,{isIdentifier:!0});n!==t?this.raws[e]=n:delete this.raws[e]}},f._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},f._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},f.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var r=this._spacesFor(\"operator\");t+=r.before.length;var o=this.stringifyProperty(\"operator\");if(\"operator\"===e)return o?t:-1;t+=o.length,t+=r.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var s=this.stringifyProperty(\"value\");return\"value\"===e?s?t:-1:(t+=s.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},f.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},i=o,(s=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){d()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=p(e),n=t.deprecatedUsage,r=t.unescaped,o=t.quoteMark;if(n&&l(),r===this._value&&o===this._quoteMark)return;this._value=r,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}])&&a(i.prototype,s),c&&a(i,c),o}(i.default);t.default=f,f.NO_QUOTE=null,f.SINGLE_QUOTE=\"'\",f.DOUBLE_QUOTE='\"';var g=((n={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},n);function v(e,t){return\"\"+t.before+e+t.after}}));Jt(En),En.unescapeValue;var xn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=_n)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(xn);var Tn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Tn);var Nn=Qt((function(e,t){var n;function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}t.__esModule=!0,t.default=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=an.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o}(((n=sn)&&n.__esModule?n:{default:n}).default);t.default=o,e.exports=t.default}));Jt(Nn);var On=Qt((function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}));Jt(On);var An=Qt((function(e,t){t.__esModule=!0,t.combinator=t.word=t.comment=t.str=t.tab=t.newline=t.feed=t.cr=t.backslash=t.bang=t.slash=t.doubleQuote=t.singleQuote=t.space=t.greaterThan=t.pipe=t.equals=t.plus=t.caret=t.tilde=t.dollar=t.closeSquare=t.openSquare=t.closeParenthesis=t.openParenthesis=t.semicolon=t.colon=t.comma=t.at=t.asterisk=t.ampersand=void 0;t.ampersand=38;t.asterisk=42;t.at=64;t.comma=44;t.colon=58;t.semicolon=59;t.openParenthesis=40;t.closeParenthesis=41;t.openSquare=91;t.closeSquare=93;t.dollar=36;t.tilde=126;t.caret=94;t.plus=43;t.equals=61;t.pipe=124;t.greaterThan=62;t.space=32;t.singleQuote=39;t.doubleQuote=34;t.slash=47;t.bang=33;t.backslash=92;t.cr=13;t.feed=12;t.newline=10;t.tab=9;t.str=39;t.comment=-1;t.word=-2;t.combinator=-3}));Jt(An),An.combinator,An.word,An.comment,An.str,An.tab,An.newline,An.feed,An.cr,An.backslash,An.bang,An.slash,An.doubleQuote,An.singleQuote,An.space,An.greaterThan,An.pipe,An.equals,An.plus,An.caret,An.tilde,An.dollar,An.closeSquare,An.openSquare,An.closeParenthesis,An.openParenthesis,An.semicolon,An.colon,An.comma,An.at,An.asterisk,An.ampersand;var Mn=Qt((function(e,t){t.__esModule=!0,t.default=function(e){var t,n,r,i,s,a,u,c,l,h,p,f,g=[],v=e.css.valueOf(),m=v,y=m.length,b=-1,_=1,w=0,I=0;function S(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,_,w-b,w);c=(v+=n).length-1}for(;w<y;){switch((t=v.charCodeAt(w))===o.newline&&(b=w,_+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:c=w;do{c+=1,(t=v.charCodeAt(c))===o.newline&&(b=c,_+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);f=o.space,r=_,n=c-b-1,I=c;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:c=w;do{c+=1,t=v.charCodeAt(c)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);f=o.combinator,r=_,n=w-b,I=c;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:f=t,r=_,n=w-b,I=(c=w)+1;break;case o.singleQuote:case o.doubleQuote:p=t===o.singleQuote?\"'\":'\"',c=w;do{for(i=!1,-1===(c=v.indexOf(p,c+1))&&S(\"quote\",p),s=c;v.charCodeAt(s-1)===o.backslash;)s-=1,i=!i}while(i);f=o.str,r=_,n=w-b,I=c+1;break;default:t===o.slash&&v.charCodeAt(w+1)===o.asterisk?(0===(c=v.indexOf(\"*/\",w+2)+1)&&S(\"comment\",\"*/\"),(a=(u=v.slice(w,c+1).split(\"\\n\")).length-1)>0?(l=_+a,h=c-u[a].length):(l=_,h=b),f=o.comment,_=l,r=l,n=c-h):t===o.slash?(f=t,r=_,n=w-b,I=(c=w)+1):(c=d(v,w),f=o.word,r=_,n=c-b),I=c+1}g.push([f,_,w-b,r,n,w,I]),h&&(b=h,h=null),w=I}return g},t.FIELDS=void 0;var n,r,o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(An);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}for(var s=((n={})[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n),a=((r={})[o.space]=!0,r[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r[o.ampersand]=!0,r[o.asterisk]=!0,r[o.bang]=!0,r[o.comma]=!0,r[o.colon]=!0,r[o.semicolon]=!0,r[o.openParenthesis]=!0,r[o.closeParenthesis]=!0,r[o.openSquare]=!0,r[o.closeSquare]=!0,r[o.singleQuote]=!0,r[o.doubleQuote]=!0,r[o.plus]=!0,r[o.pipe]=!0,r[o.tilde]=!0,r[o.greaterThan]=!0,r[o.equals]=!0,r[o.dollar]=!0,r[o.caret]=!0,r[o.slash]=!0,r),u={},c=\"0123456789abcdefABCDEF\",l=0;l<22;l++)u[c.charCodeAt(l)]=!0;function d(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=h(e,r)+1:r++}while(r<e.length);return r-1}function h(e,t){var n=t,r=e.charCodeAt(n+1);if(s[r]);else if(u[r]){var i=0;do{n++,i++,r=e.charCodeAt(n+1)}while(u[r]&&i<6);i<6&&r===o.space&&n++}else n++;return n}t.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}));Jt(Mn),Mn.FIELDS;var Pn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r,o=I(cn),i=I(ln),s=I(mn),a=I(yn),u=I(bn),c=I(wn),l=I(In),d=I(Sn),h=w(En),p=I(xn),f=I(Tn),g=I(Nn),v=I(On),m=w(Mn),y=w(An),b=w(an);function _(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function w(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function I(e){return e&&e.__esModule?e:{default:e}}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),k=Object.assign({},C,((r={})[y.comment]=!0,r));function E(e){return{line:e[m.FIELDS.START_LINE],column:e[m.FIELDS.START_COL]}}function x(e){return{line:e[m.FIELDS.END_LINE],column:e[m.FIELDS.END_COL]}}function T(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function N(e){return T(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function O(e,t){if(e)return T(e[m.FIELDS.START_LINE],e[m.FIELDS.START_COL],t[m.FIELDS.END_LINE],t[m.FIELDS.END_COL])}function A(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,on.ensureObject)(e,\"raws\"),e[t]=(0,on.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function M(e,t){for(var n=-1,r=[];-1!==(n=e.indexOf(t,n+1));)r.push(n);return r}var P=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=O(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new o.default({source:n}),this.root.errorGenerator=this._errorGenerator();var r=new i.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t,n,r,_=e.prototype;return _._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},_.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[m.FIELDS.START_POS]);var n=e.length,r={source:T(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[m.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][m.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][m.FIELDS.START_POS]);for(var o=0,i=\"\",s=\"\",a=null,u=!1;o<n;){var c=e[o],l=this.content(c),d=e[o+1];switch(c[m.FIELDS.TYPE]){case y.space:if(u=!0,this.options.lossy)break;if(a){(0,on.ensureObject)(r,\"spaces\",a);var p=r.spaces[a].after||\"\";r.spaces[a].after=p+l;var f=(0,on.getProp)(r,\"raws\",\"spaces\",a,\"after\")||null;f&&(r.raws.spaces[a].after=f+l)}else i+=l,s+=l;break;case y.asterisk:if(d[m.FIELDS.TYPE]===y.equals)r.operator=l,a=\"operator\";else if((!r.namespace||\"namespace\"===a&&!u)&&d){i&&((0,on.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=i,s=\"\"),r.namespace=(r.namespace||\"\")+l,((0,on.getProp)(r,\"raws\",\"namespace\")||null)&&(r.raws.namespace+=l),a=\"namespace\"}u=!1;break;case y.dollar:if(\"value\"===a){var g=(0,on.getProp)(r,\"raws\",\"value\");r.value+=\"$\",g&&(r.raws.value=g+\"$\");break}case y.caret:d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),u=!1;break;case y.combinator:if(\"~\"===l&&d[m.FIELDS.TYPE]===y.equals&&(r.operator=l,a=\"operator\"),\"|\"!==l){u=!1;break}d[m.FIELDS.TYPE]===y.equals?(r.operator=l,a=\"operator\"):r.namespace||r.attribute||(r.namespace=!0),u=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[o+2]&&e[o+2][m.FIELDS.TYPE]!==y.equals&&!r.operator&&!r.namespace)r.namespace=l,a=\"namespace\";else if(!r.attribute||\"attribute\"===a&&!u){i&&((0,on.ensureObject)(r,\"spaces\",\"attribute\"),r.spaces.attribute.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"attribute\"),r.raws.spaces.attribute.before=s,s=\"\"),r.attribute=(r.attribute||\"\")+l,((0,on.getProp)(r,\"raws\",\"attribute\")||null)&&(r.raws.attribute+=l),a=\"attribute\"}else if(!r.value&&\"\"!==r.value||\"value\"===a&&!u){var v=(0,on.unesc)(l),b=(0,on.getProp)(r,\"raws\",\"value\")||\"\",_=r.value||\"\";r.value=_+v,r.quoteMark=null,(v!==l||b)&&((0,on.ensureObject)(r,\"raws\"),r.raws.value=(b||_)+l),a=\"value\"}else{var w=\"i\"===l||\"I\"===l;!r.value&&\"\"!==r.value||!r.quoteMark&&!u?(r.value||\"\"===r.value)&&(a=\"value\",r.value+=l,r.raws.value&&(r.raws.value+=l)):(r.insensitive=w,w&&\"I\"!==l||((0,on.ensureObject)(r,\"raws\"),r.raws.insensitiveFlag=l),a=\"insensitive\",i&&((0,on.ensureObject)(r,\"spaces\",\"insensitive\"),r.spaces.insensitive.before=i,i=\"\"),s&&((0,on.ensureObject)(r,\"raws\",\"spaces\",\"insensitive\"),r.raws.spaces.insensitive.before=s,s=\"\"))}u=!1;break;case y.str:if(!r.attribute||!r.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:c[m.FIELDS.START_POS]});var I=(0,h.unescapeValue)(l),S=I.unescaped,C=I.quoteMark;r.value=S,r.quoteMark=C,a=\"value\",(0,on.ensureObject)(r,\"raws\"),r.raws.value=l,u=!1;break;case y.equals:if(!r.attribute)return this.expected(\"attribute\",c[m.FIELDS.START_POS],l);if(r.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:c[m.FIELDS.START_POS]});r.operator=r.operator?r.operator+l:l,a=\"operator\",u=!1;break;case y.comment:if(a)if(u||d&&d[m.FIELDS.TYPE]===y.space||\"insensitive\"===a){var k=(0,on.getProp)(r,\"spaces\",a,\"after\")||\"\",E=(0,on.getProp)(r,\"raws\",\"spaces\",a,\"after\")||k;(0,on.ensureObject)(r,\"raws\",\"spaces\",a),r.raws.spaces[a].after=E+l}else{var x=r[a]||\"\",N=(0,on.getProp)(r,\"raws\",a)||x;(0,on.ensureObject)(r,\"raws\"),r.raws[a]=N+l}else s+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:c[m.FIELDS.START_POS]})}o++}A(r,\"attribute\"),A(r,\"namespace\"),this.newNode(new h.default(r)),this.position++},_.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=\"\",o=void 0;do{if(C[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[m.FIELDS.TYPE]===y.comment){var i={};r&&(i.before=r,r=\"\"),o=new a.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:i}),n.push(o)}}while(++this.position<e);if(r)if(o)o.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],u=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:T(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],u[m.FIELDS.END_LINE],u[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS],spaces:{before:r,after:\"\"}}))}return n},_.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var r=\"\",o=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),s=n.lossySpace(e.rawSpaceBefore,t);r+=i+n.lossySpace(e.spaces.after,t&&0===i.length),o+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===s.length)})),o===r&&(o=void 0),{space:r,rawSpace:o}},_.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][m.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][m.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][m.FIELDS.TYPE]===y.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,on.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var r=new f.default({value:\"/\"+t+\"/\",source:T(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:n});return this.position=this.position+3,r}this.unexpected()},_.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][m.FIELDS.TYPE]===y.comma)){var n,r=this.currToken,o=void 0;if(t>this.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===y.combinator?(n=new f.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):C[this.currToken[m.FIELDS.TYPE]]||o||this.unexpected(),n){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;n.spaces.before=s,n.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var d={},h={spaces:{}};c.endsWith(\" \")&&l.endsWith(\" \")?(d.before=c.slice(0,c.length-1),h.spaces.before=l.slice(0,l.length-1)):c.startsWith(\" \")&&l.startsWith(\" \")?(d.after=c.slice(1),h.spaces.after=l.slice(1)):h.value=l,n=new f.default({value:\" \",source:O(r,this.tokens[this.position-1]),sourceIndex:r[m.FIELDS.START_POS],spaces:d,raws:h})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var p=this.parseWhitespaceEquivalentTokens(t);if(p.length>0){var g=this.current.last;if(g){var v=this.convertWhitespaceNodesToSpace(p),b=v.space,_=v.rawSpace;void 0!==_&&(g.rawSpaceAfter+=_),g.spaces.after+=b}else p.forEach((function(t){return e.newNode(t)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:E(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},_.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.error=function(e,t){throw this.root.error(e,t)},_.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[m.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[m.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[m.FIELDS.START_POS])},_.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[m.FIELDS.START_POS])},_.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[m.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[m.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void 0},_.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:E(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=x(this.currToken),this.current.parent.source.end=x(this.currToken),this.position++);this.current=r}else{for(var o,s=this.currToken,a=\"(\";this.position<this.tokens.length&&t;)this.currToken[m.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[m.FIELDS.TYPE]===y.closeParenthesis&&t--,o=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",a,a):this.newNode(new l.default({value:a,source:T(s[m.FIELDS.START_LINE],s[m.FIELDS.START_COL],o[m.FIELDS.END_LINE],o[m.FIELDS.END_COL]),sourceIndex:s[m.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[m.FIELDS.START_POS])},_.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[m.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[m.FIELDS.START_POS]):void this.splitWord(!1,(function(r,o){t+=r,e.newNode(new d.default({value:t,source:O(n,e.currToken),sourceIndex:n[m.FIELDS.START_POS]})),o>1&&e.nextToken&&e.nextToken[m.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[m.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},_.space=function(){var e=this.content();0===this.position||this.prevToken[m.FIELDS.TYPE]===y.comma||this.prevToken[m.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===y.comma||this.nextToken[m.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},_.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:N(e),sourceIndex:e[m.FIELDS.START_POS]})),this.position++},_.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new p.default({value:this.content(),source:N(n),sourceIndex:n[m.FIELDS.START_POS]}),e),this.position++},_.splitWord=function(e,t){for(var n=this,r=this.nextToken,o=this.content();r&&~[y.dollar,y.caret,y.equals,y.word].indexOf(r[m.FIELDS.TYPE]);){this.position++;var i=this.content();if(o+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var a=this.nextToken;a&&a[m.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var l=M(o,\".\").filter((function(e){return\"\\\\\"!==o[e-1]})),d=M(o,\"#\").filter((function(e){return\"\\\\\"!==o[e-1]})),h=M(o,\"#{\");h.length&&(d=d.filter((function(e){return!~h.indexOf(e)})));var p=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));p.forEach((function(r,i){var a,h=p[i+1]||o.length,f=o.slice(r,h);if(0===i&&t)return t.call(n,f,p.length);var g=n.currToken,v=g[m.FIELDS.START_POS]+p[i],y=T(g[1],g[2]+r,g[3],g[2]+(h-1));if(~l.indexOf(r)){var b={value:f.slice(1),source:y,sourceIndex:v};a=new s.default(A(b,\"value\"))}else if(~d.indexOf(r)){var _={value:f.slice(1),source:y,sourceIndex:v};a=new u.default(A(_,\"value\"))}else{var w={value:f,source:y,sourceIndex:v};A(w,\"value\"),a=new c.default(w)}n.newNode(a,e),e=null})),this.position++},_.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(e){switch(this.currToken[m.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(\", \")+\" or \"+r}var o=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+o+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+o+\" \"+e+\".\",{index:t})},_.requiredSpace=function(e){return this.options.lossy?\" \":e},_.optionalSpace=function(e){return this.options.lossy?\"\":e},_.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},_.parseParenthesisToken=function(e){var t=this.content(e);return e[m.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},_.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,A(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},_.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[m.FIELDS.START_POS],e[m.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!k[this.tokens[t][m.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&S(t.prototype,n),r&&S(t,r),e}();t.default=P,e.exports=t.default}));Jt(Pn);var Ln=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Pn)&&n.__esModule?n:{default:n};var o=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new r.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(r,o){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(r){var o=void 0;return n._shouldUpdateSelector(e,t)&&(o=i.toString(),e.selector=o),{transform:r,root:i,string:o}})).then(r,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&\"function\"==typeof r.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var o=void 0;return t.updateSelector&&\"string\"!=typeof e&&(o=n.toString(),e.selector=o),{transform:r,root:n,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=o,e.exports=t.default}));Jt(Ln);var Dn=Qt((function(e,t){t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(En),r=f(mn),o=f(Tn),i=f(yn),s=f(bn),a=f(Nn),u=f(Sn),c=f(cn),l=f(ln),d=f(In),h=f(wn),p=f(xn);function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)};t.className=function(e){return new r.default(e)};t.combinator=function(e){return new o.default(e)};t.comment=function(e){return new i.default(e)};t.id=function(e){return new s.default(e)};t.nesting=function(e){return new a.default(e)};t.pseudo=function(e){return new u.default(e)};t.root=function(e){return new c.default(e)};t.selector=function(e){return new l.default(e)};t.string=function(e){return new d.default(e)};t.tag=function(e){return new h.default(e)};t.universal=function(e){return new p.default(e)}}));Jt(Dn),Dn.universal,Dn.tag,Dn.string,Dn.selector,Dn.root,Dn.pseudo,Dn.nesting,Dn.id,Dn.comment,Dn.combinator,Dn.className,Dn.attribute;var Rn=Qt((function(e,t){var n;t.__esModule=!0,t.isNode=o,t.isPseudoElement=y,t.isPseudoClass=function(e){return h(e)&&!y(e)},t.isContainer=function(e){return!(!o(e)||!e.walk)},t.isNamespace=function(e){return s(e)||v(e)},t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=t.isPseudo=t.isNesting=t.isIdentifier=t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0;var r=((n={})[an.ATTRIBUTE]=!0,n[an.CLASS]=!0,n[an.COMBINATOR]=!0,n[an.COMMENT]=!0,n[an.ID]=!0,n[an.NESTING]=!0,n[an.PSEUDO]=!0,n[an.ROOT]=!0,n[an.SELECTOR]=!0,n[an.STRING]=!0,n[an.TAG]=!0,n[an.UNIVERSAL]=!0,n);function o(e){return\"object\"==typeof e&&r[e.type]}function i(e,t){return o(t)&&t.type===e}var s=i.bind(null,an.ATTRIBUTE);t.isAttribute=s;var a=i.bind(null,an.CLASS);t.isClassName=a;var u=i.bind(null,an.COMBINATOR);t.isCombinator=u;var c=i.bind(null,an.COMMENT);t.isComment=c;var l=i.bind(null,an.ID);t.isIdentifier=l;var d=i.bind(null,an.NESTING);t.isNesting=d;var h=i.bind(null,an.PSEUDO);t.isPseudo=h;var p=i.bind(null,an.ROOT);t.isRoot=p;var f=i.bind(null,an.SELECTOR);t.isSelector=f;var g=i.bind(null,an.STRING);t.isString=g;var v=i.bind(null,an.TAG);t.isTag=v;var m=i.bind(null,an.UNIVERSAL);function y(e){return h(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase())}t.isUniversal=m}));Jt(Rn),Rn.isNode,Rn.isPseudoElement,Rn.isPseudoClass,Rn.isContainer,Rn.isNamespace,Rn.isUniversal,Rn.isTag,Rn.isString,Rn.isSelector,Rn.isRoot,Rn.isPseudo,Rn.isNesting,Rn.isIdentifier,Rn.isComment,Rn.isCombinator,Rn.isClassName,Rn.isAttribute;var Bn=Qt((function(e,t){t.__esModule=!0,Object.keys(an).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===an[e]||(t[e]=an[e]))})),Object.keys(Dn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Dn[e]||(t[e]=Dn[e]))})),Object.keys(Rn).forEach((function(e){\"default\"!==e&&\"__esModule\"!==e&&(e in t&&t[e]===Rn[e]||(t[e]=Rn[e]))}))}));Jt(Bn);var jn,Fn=Qt((function(e,t){t.__esModule=!0,t.default=void 0;var n,r=(n=Ln)&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(Bn);function i(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var s=function(e){return new r.default(e)};Object.assign(s,o),delete s.__esModule;var a=s;t.default=a,e.exports=t.default})),Un=Jt(Fn);function zn(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function Hn(e){return Ne([],e,!0).sort((function(e,t){return qn(e)-qn(t)}))}function qn(e){return 1===e.matchingSelectors.length?Wn(e.rule.selectorList.selectors[0].text):er(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(jn||(jn={}));var Gn={};function Wn(e){if(\"string\"==typeof e&&Gn[e])return Gn[e];var t,n=0;return\"string\"==typeof e&&Un((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=Kn(n,function(e){switch(e.type){case\"id\":return jn.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return er(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return Kn(jn.ClassB,e.nodes?er(e.nodes):0);case\"before\":case\"after\":return jn.ClassC}return jn.ClassB;case\"class\":case\"attribute\":return jn.ClassB;case\"tag\":return jn.ClassC}return 0}(e))})),\"string\"==typeof e&&(Gn[e]=n),n}var Zn,Yn=16711680,Vn=65280,Xn=255;function Jn(e){return e&Yn}function Qn(e){return e&Vn}function $n(e){return e&Xn}function Kn(e,t){var n=e,r=Jn(t);!function(e){return e&~Yn}(Jn(n)+r)?n+=r:n=function(e){return e|Yn}(n);var o=Qn(t);!function(e){return e&~Vn}(Qn(n)+o)?n+=o:n=function(e){return e|Vn}(n);var i=$n(t);return!function(e){return e&~Xn}($n(n)+i)?n+=i:n=function(e){return e|Xn}(n),n}function er(e){return Math.max.apply(Math,e.map((function(e){return Wn(e)})))}function tr(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:nr(e)};else if(\"comment\"===e.type){var r=void 0;try{var o=Kt.parse(e.text);o.first&&\"decl\"===o.first.type&&(r=o.first)}catch(e){}if(!r)return;n={disabled:!0,name:r.prop,value:nr(r)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function nr(e){return e.important?\"\".concat(e.value).concat(e.raws.important||\" !important\"):e.value}function rr(e,t){var n=e.nodes,r=void 0===n?[]:n,o=e.first,i=e.last,s=r[0],a=0;s&&s.raws.before&&(a=s.raws.before.split(\"\\n\").length-1);var u=[];r.forEach((function(e){var n=tr(e,t);n&&u.push(n)}));var c={cssProperties:u,shorthandEntries:[]};return t&&(c.styleSheetId=t,c.cssText=Kt.root({nodes:r,raws:{semicolon:e.raws.semicolon}}).toString(),c.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:a?0:o?o.source.start.column-1:0,startLine:o?o.source.start.line-1-a:0}),c}function or(e,t){var n;try{n=Kt.parse(e)}catch(e){return void console.warn(e)}var r=[];(n.nodes||[]).forEach((function(e){var n=tr(e,t);n&&r.push(n)}));var o={cssProperties:r,shorthandEntries:[]};return t&&(o.styleSheetId=t,o.cssText=e,o.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),o}function ir(e,t,n,r){var o=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(r?r.test(e)&&zn(t,e.replace(r,\"\")):zn(t,e))&&o.push(n)})):o.push(0),{matchingSelectors:o,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:rr(e,n),styleSheetId:n}}}var sr,ar=new Map,ur=new Map,cr=/::?before\\b/,lr=/::?after\\b/;function dr(e){for(var t=new Map,n=function(){for(var e=[],t=0,n=Array.from(document.styleSheets);t<n.length;t++){var r=n[t];if(!r.href&&r.ownerNode){var o=r.ownerNode.hasAttribute(\"data-page-path\"),i=r.ownerNode.hasAttribute(\"data-exter-class\");if(o||i){var s=tt(r.ownerNode.textContent);e.push({hash:\"\".concat(o,\"-\").concat(s.slice(0,8)),node:r})}}}return{usedStylesSheets:e}}().usedStylesSheets,r=0;r<n.length;r++){var o=n[r];try{var i=o.node,s=o.hash;if(!ar.has(s)||e){var a=i.ownerNode.textContent,u=Kt.parse(a),c=i.ownerNode.getAttribute(\"data-stylesheet-id\");c||(c=\"1000.\".concat(ar.size)),ar.set(s,{ownerNode:i.ownerNode,postCSSRoot:u,styleSheetId:c,hash:s}),i.ownerNode.setAttribute(\"data-stylesheet-id\",c),ur.set(c,s)}t.set(s,ar.get(s))}catch(e){console.warn(e)}}return t}function hr(e){var t=ur.get(e);if(t)return ar.get(t)}function pr(e){var t=hr(e);if(t&&t.ownerNode){var n=t.ownerNode,r=t.hash;try{ar.set(e,{ownerNode:n,postCSSRoot:Kt.parse(n.textContent),styleSheetId:e,hash:r})}catch(t){ar.set(e,{ownerNode:n,postCSSRoot:Kt.parse(\"\"),styleSheetId:e,hash:r}),console.warn(t)}}}function fr(e){var t=e.postCSSRoot,n=e.ownerNode,r=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:r,title:\"\"}}function gr(e){dr().forEach((function(t){var n=t.postCSSRoot,r=t.styleSheetId;(n.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,r)}))}))}function vr(e){return or(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}function mr(e){sr||(sr=document.createElement(\"div\"));var t={};try{sr.innerHTML=\"<div \".concat(e,\"></div>\");for(var n=sr.firstChild.attributes,r=0,o=Array.from(n);r<o.length;r++){var i=o[r];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function yr(e,t,n){var r,o,i,s,a,u=hr(e);if(u){var c;try{c=Kt.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var l=t.startLine,d=t.startColumn,h=((null===(o=null===(r=c.first)||void 0===r?void 0:r.raws)||void 0===o?void 0:o.before)||\"\").split(\"\\n\").length-1;h&&(l+=h,d=(null===(a=null===(s=null===(i=c.first)||void 0===i?void 0:i.source)||void 0===s?void 0:s.start)||void 0===a?void 0:a.column)||1);var p,f=u.postCSSRoot,g=u.ownerNode;return(f.nodes||[]).some((function(t,n){var r;if(\"rule\"!==t.type)return!1;var o=null===(r=t.first)||void 0===r?void 0:r.source;if(o&&o.start.line===l&&o.start.column===d){try{t.nodes=c.nodes,t.raws.semicolon=c.raws.semicolon,br(g,f.toString()),pr(e);var i=(hr(e)||{}).postCSSRoot;p=rr(i.nodes[n],e)}catch(e){console.warn(e)}return!0}})),p}}function br(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function _r(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=function(e){var t=e.node.getAttribute(\"style\");if(t)return or(t)}(e);o&&(t.inlineStyle=o);var i=e.node,s=function(e,o){var s=e.selector;zn(i,s)?t.matchedCSSRules.push(ir(e,i,o)):(cr.test(s)&&zn(i,s.replace(cr,\"\"))&&n.push(ir(e,i,o,cr)),lr.test(s)&&zn(i,s.replace(lr,\"\"))&&r.push(ir(e,i,o,lr)))};Zn&&(Zn.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&s(e,void 0)})),gr((function(e,t){s(e,t)}));try{t.matchedCSSRules=Hn(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Hn(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Hn(r),pseudoType:\"after\"})}catch(e){}return t}var wr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),a={matchedCSSRules:[]};o&&o.nodeType===we.Element?a=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],r=[],o=vr(e);if(o&&(t.inlineStyle=o),e.dom){var i=e.dom.node;gr((function(e,o){var s=e.selector;zn(i,s)?t.matchedCSSRules.push(ir(e,i,o)):(cr.test(s)&&zn(i,s.replace(cr,\"\"))&&n.push(ir(e,i,o,cr)),lr.test(s)&&zn(i,s.replace(lr,\"\"))&&r.push(ir(e,i,o,lr)))}))}try{t.matchedCSSRules=Hn(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Hn(n),pseudoType:\"before\"}),r.length&&t.pseudoElements.push({matches:Hn(r),pseudoType:\"after\"})}catch(e){}return t}(o):i&&1===i.nodeType?a=_r(i):s&&(a=function(e,t){var n={matchedCSSRules:[]},r=new RegExp(\"::?\".concat(t,\"\\\\b\"));gr((function(t,o){r.test(t.selector)&&zn(e,t.selector.replace(r,\"\"))&&n.matchedCSSRules.push(ir(t,e,o,r))}));try{n.matchedCSSRules=Hn(n.matchedCSSRules)}catch(e){}return n}(s.root,s.pseudoType)),n(null,a)},setStyleTexts:function(e,t,n){var r=[];t.edits.forEach((function(t){var n=t.styleSheetId,o=\"2000.\";if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.nodeId2ZNode.get(i);if(s&&s.nodeType===we.Element){s.updateInlineStyle(t.text);var a=vr(s);a&&r.push(a),e.getZRuntimeHelper().X(s.node,s.getLinkedContext(),s.getClassName()||\"\",!1,s.getInlineStyle(),!0,s.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=yr(n,t.range,t.text);u&&r.push(u)}})),n(null,{styles:r})},getComputedStyleForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),u=[];if(i&&i.nodeType===we.Element){var c=i.getPlatformRootDOM();c.nodeType===Node.ELEMENT_NODE&&(r=getComputedStyle(c))}else s&&1===s.nodeType?r=getComputedStyle(s.node):a&&(r=getComputedStyle(a.root,a.pseudoType));r&&(u=Array.from(r).map((function(e){return{name:e,value:r[e]}}))),n(null,{computedStyle:u})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.nodeId2ZNode.get(o);i&&i.nodeType===we.Element&&(r=vr(i)),r?n(null,{inlineStyle:r}):n(-32e3)},getStyleSheetText:function(e,t,n){var r=\"\",o=hr(t.styleSheetId);o&&(r=o.ownerNode.textContent),n(null,{text:r})}}),Ir=function(e,t,n){n(null,{nodeIds:t.backendNodeIds})},Sr=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r),i=e.shadowRootNodeId2ZNode.get(r),s=e.nodeId2DOMNode.get(r);if(o){var a=o.serialize(1);a.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:a.children,parentId:t.nodeId})}else if(i)if(i.nodeType===we.Element){var u=i.getShadowRootDebugNode().serialize(0);u&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[u],parentId:r})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:r});else if(s){var c=s.serialize(1);c.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:c.children,parentId:r})}n(null,{})};var Cr=Object.freeze({__proto__:null,pushNodesByBackendIdsToFrontend:Ir,requestChildNodes:Sr,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){!function(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}(e,0,n),dr().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:fr(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(r){var o=br(n,r),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),pr(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:fr(t)}),o},configurable:!0})}))},markUndoableState:function(e,t,n){n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setAttributesAsText:function(e,t,n){var r,o=t.nodeId,i=t.text,s=t.name,a=e.nodeId2ZNode.get(o);if(a&&a.nodeType===we.Element){var u=a,c=mr(i),l=u.getClassName(),d=!1,h=u.getInlineStyle(),p=!1;if(\"class\"===s&&c.class!==l&&(l=c.class,d=!0,u.updateClassName(l)),\"style\"===s&&c.style!==h&&(h=c.style,p=!0,u.updateInlineStyle(h)),d||p)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),l||\"\",d,h||\"\",p,u.getProperties(),{},3),void e.flushUpdatedQueue();var f=\"data-\";if(0===s.indexOf(f)){var g=s.replace(f,\"\"),v=u.getDataset().get(g),m=c[s];switch(typeof v){case\"number\":isNaN(Number(m))||(m=Number(m));break;case\"boolean\":\"true\"===m?m=!0:\"false\"===m&&(m=!1)}if(m!==v){var y=((r={})[g]=m,r);a.node.updateDatasetPartial(y),u.updateDataset(y)}}u.invalidate()}n(null,{})},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.nodeId2ZNode.get(r);if(i&&i.nodeType===we.Text)return i.dom.node.textContent=o,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})},getOuterHTML:function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);o?n(null,{outerHTML:o.getOuterAXML()}):n(-32e3,{message:\"node with nodeId(\".concat(r,\") not found\")})}});var kr=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig,i=t.selector,s=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r);if(i)n(null,{});else{if(s){if(s.nodeType===we.Element)(u=s.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s.getPlatformRootDOM(),o);else if(s.nodeType===we.Component){var u,c=s.getChildNodes();if(1===c.length&&c[0].nodeType===we.Element)(u=c[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(u,o)}}else a?1===a.nodeType&&e.getOverlayManager().highlightNode(a.node,o):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(null,{})}}),Er=function(e,t,n){var r=t.nodeId,o=e.nodeId2ZNode.get(r);if(o&&o.nodeType===we.Component)return e.activatedCustomComponentId=o.nodeId,void n(void 0,{data:Pt(o.getData()).data,props:Pt(o.getProps()).data,targetId:o.targetId});e.activatedCustomComponentId=void 0,n(void 0,{})},xr=Object.freeze({__proto__:null,getComponentData:Er}),Tr=Object.freeze({__proto__:null,Elements:xr}),Nr=Object.freeze({__proto__:null,CSS:wr,DOM:Cr,Overlay:kr,Tiny:Tr});function Or(e,t){if(\"rgb\"===t){var n=e[0],r=e[1],o=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*r).toFixed(),\" \").concat((255*o).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var s=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=Math.max(t,n,r),s=Math.min(t,n,r),a=i-s,u=i+s,c=.5*u;return[s===i?0:t===i?(1/6*(n-r)/a+1)%1:n===i?1/6*(r-t)/a+1/3:1/6*(t-n)/a+2/3,0===c||1===c?0:c<=.5?a/u:a/(2-u),c,o]}(e),a=s[0],u=s[1],c=s[2];i=s[3];return\"hsl(\".concat(Math.round(360*a),\"deg \").concat(Math.round(100*u),\" \").concat(Math.round(100*c)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function Ar(e,t,n){return e<t?e=t:e>n&&(e=n),e}function Mr(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function Pr(e,t){var n,r,o,i,s,a=function(){s&&(s.innerHTML=\"\")};function u(e,t){var n=Dr(\"div\",\"element-info\"),r=Hr(n,\"div\",\"element-info-header\"),o=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(e);o&&Hr(r,\"div\",\"element-layout-type \".concat(o));var i=Hr(r,\"div\",\"element-description monospace\");Hr(i,\"span\",\"material-tag-name\").textContent=e.tagName;var s=Hr(i,\"span\",\"material-node-id\");s.textContent=e.idValue?\"#\"+qr(e.idValue,80):\"\",s.classList.toggle(\"hidden\",!e.idValue);var a=Hr(i,\"span\",\"material-class-name\");s.textContent.length<80&&(a.textContent=qr(e.className||\"\",80-s.textContent.length)),a.classList.toggle(\"hidden\",!e.className);var u=Hr(r,\"div\",\"dimensions\");Hr(u,\"span\",\"material-node-width\").textContent=String(Math.round(100*e.nodeWidth)/100),Gr(u,\"×\"),Hr(u,\"span\",\"material-node-height\").textContent=String(Math.round(100*e.nodeHeight)/100);var c,l=e.style||{},d=l.color;d&&\"#00000000\"!==d&&b(\"Color\",d,t);var h=l[\"font-family\"],p=l[\"font-size\"];h&&\"0px\"!==p&&y(\"Font\",\"\".concat(p,\" \").concat(h));var f=l[\"background-color\"];f&&\"#00000000\"!==f&&b(\"Background\",f,t);var g=l.margin;g&&\"0px\"!==g&&y(\"Margin\",g);var v=l.padding;function m(e,t,r){c||(c=Hr(n,\"div\",\"element-info-body\"));var o=Hr(c,\"div\",\"element-info-row\");return t&&o.classList.add(t),Hr(o,\"div\",\"element-info-name\").textContent=e,Hr(o,\"div\",\"element-info-gap\"),Hr(o,\"div\",r||\"\")}function y(e,t){Gr(m(e,\"\",\"element-info-value-text\"),t)}function b(e,t,n){var r=m(e,\"\",\"element-info-value-color\"),o=Hr(r,\"div\",\"color-swatch\");Hr(o,\"div\",\"color-swatch-inner\").style.backgroundColor=t,Gr(r,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return Or(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(t,n))}return v&&\"0px\"!==v&&y(\"Padding\",v),n}var c=function(e){var t,n,r,o;if(a(),!e.elementInfo||0!==Object.keys(e.elementInfo).length){e.platform&&s.classList.add(\"platform-\".concat(e.platform));var i=null!==(t=e.elementInfo.nodeLeft)&&void 0!==t?t:Number.MAX_VALUE,c=null!==(n=e.elementInfo.nodeTop)&&void 0!==n?n:Number.MAX_VALUE,l=null!==(r=e.elementInfo.nodeLeft+e.elementInfo.nodeWidth)&&void 0!==r?r:-Number.MAX_VALUE,d=null!==(o=e.elementInfo.nodeTop+e.elementInfo.nodeHeight)&&void 0!==o?o:-Number.MAX_VALUE,h=Hr(s,\"div\"),p=Hr(h,\"div\",\"tooltip-content\"),f=u(e.elementInfo,e.colorFormat);p.appendChild(f);var g,v=Mr(document.documentElement.clientWidth,4),m=Mr(document.documentElement.clientHeight,4),y=p.offsetWidth,b=p.offsetHeight,_=10,w=v-2-_-16;if(l-i<36)g=.5*(i+l)-8;else{var I=i+_;g=I>12&&I<w?I:Ar(12,I,l-_-16)}var S=g<12||g>w,C=g-_;C=Ar(C,2,v-y-2);var k=function(){var e=0,t=0,n=getComputedStyle(s),r=n.getPropertyValue(\"--sat\");if(r){var o=Number(r.slice(0,-2));isNaN(o)||(e=o)}var i=n.getPropertyValue(\"--sab\");i&&(o=Number(i.slice(0,-2)),isNaN(o)||(t=o));return{safeAreaTop:e,safeAreaBottom:t}}(),E=k.safeAreaTop,x=k.safeAreaBottom,T=c-8-b,N=!0;T<E?(T=Math.min(m-b,d+8),N=!1):c>m&&(T=m-8-b-x);var O=C>=i&&C+y<=l&&T>=c&&T+b<=d;!(C<l&&C+y>i&&T<d&&T+b>c)||O?(p.style.top=T+\"px\",p.style.left=C+\"px\",p.style.setProperty(\"--arrow-visibility\",S||O?\"hidden\":\"visible\"),S||(p.style.setProperty(\"--arrow\",N?\"var(--arrow-down)\":\"var(--arrow-up)\"),p.style.setProperty(\"--shadow-direction\",N?\"var(--shadow-up)\":\"var(--shadow-down)\"),p.style.setProperty(\"--arrow-top\",(N?b-2:-8)+\"px\"),p.style.setProperty(\"--arrow-left\",g-C+\"px\"))):p.style.display=\"none\"}};return{c:function(){n=Dr(\"div\"),r=Dr(\"div\"),o=Dr(\"div\"),i=Dr(\"div\"),(s=Dr(\"div\")).id=\"tinybugme-tooltip-container\",this.h()},h:function(){Rr(i,\"background-color\",t.content.color),Rr(i,\"box-sizing\",\"border-box\"),Rr(i,\"height\",\"100%\"),Rr(i,\"width\",\"100%\"),Rr(o,\"border-color\",t.padding.color),Rr(o,\"border-bottom-width\",t.padding.bottom),Rr(o,\"border-left-width\",t.padding.left),Rr(o,\"border-right-width\",t.padding.right),Rr(o,\"border-top-width\",t.padding.top),Rr(o,\"border-style\",\"solid\"),Rr(o,\"box-sizing\",\"border-box\"),Rr(o,\"height\",\"100%\"),Rr(o,\"width\",\"100%\"),Rr(r,\"border-color\",t.border.color),Rr(r,\"border-bottom-width\",t.border.bottom),Rr(r,\"border-left-width\",t.border.left),Rr(r,\"border-right-width\",t.border.right),Rr(r,\"border-top-width\",t.border.top),Rr(r,\"border-style\",\"solid\"),Rr(r,\"box-sizing\",\"border-box\"),Rr(r,\"height\",t.rect.height),Rr(r,\"width\",t.rect.width),Rr(n,\"border-color\",t.margin.color),Rr(n,\"border-bottom-width\",t.margin.bottom),Rr(n,\"border-left-width\",t.margin.left),Rr(n,\"border-right-width\",t.margin.right),Rr(n,\"border-top-width\",t.margin.top),Rr(n,\"border-style\",\"solid\"),Rr(n,\"box-sizing\",\"border-box\"),Rr(n,\"left\",t.rect.left),Rr(n,\"position\",\"fixed\"),Rr(n,\"top\",t.rect.top),Rr(n,\"z-index\",\"999999\"),Rr(n,\"display\",t.show?\"block\":\"none\"),Rr(n,\"pointer-events\",\"none\"),c(t)},m:function(e,t){Br(n,e,t),jr(r,n),jr(o,r),jr(i,o),Br(s,e,t)},p:function(e,t){e.content&&Rr(i,\"background-color\",t.content.color),e.padding&&(Rr(o,\"border-color\",t.padding.color),Rr(o,\"border-bottom-width\",t.padding.bottom),Rr(o,\"border-left-width\",t.padding.left),Rr(o,\"border-right-width\",t.padding.right),Rr(o,\"border-top-width\",t.padding.top)),e.border&&(Rr(r,\"border-color\",t.border.color),Rr(r,\"border-bottom-width\",t.border.bottom),Rr(r,\"border-left-width\",t.border.left),Rr(r,\"border-right-width\",t.border.right),Rr(r,\"border-top-width\",t.border.top)),e.rect&&(Rr(r,\"height\",t.rect.height),Rr(r,\"width\",t.rect.width)),e.margin&&(Rr(n,\"border-color\",t.margin.color),Rr(n,\"border-bottom-width\",t.margin.bottom),Rr(n,\"border-left-width\",t.margin.left),Rr(n,\"border-right-width\",t.margin.right),Rr(n,\"border-top-width\",t.margin.top)),e.rect&&(Rr(n,\"left\",t.rect.left),Rr(n,\"top\",t.rect.top)),e.elementInfo&&c(t),e.show&&(Rr(n,\"display\",t.show?\"block\":\"none\"),t.show||a())},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:Fr}}var Lr=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this._state=Ur({},e.data),this._fragment=Pr(0,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n pointer-events: none;\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n}\\n#tinybugme-tooltip-container.platform-android {\\n font-family: Roboto, Ubuntu, Arial, sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ios {\\n color: rgb(48 57 66);\\n font-family: \"-apple-system-font\", \"Helvetica Neue\", \"Lucida Grande\", sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container.platform-ide {\\n font-family: \"Helvetica Neue\", \"Lucida Grande\", \"Segoe UI\", Tahoma, sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n#tinybugme-tooltip-container.platform-android .tooltip-content {\\n max-width: 100%;\\n}\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n'];t<n.length;t++){r=n[t],o=void 0,(o=document.createElement(\"style\")).innerHTML=r,document.head.appendChild(o)}var r,o}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=Fr,this.fire(\"destroy\"),this.set=this.get=Fr,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r<n.length;r+=1){var o=n[r];o.__calling||(o.__calling=!0,o.call(this,t),o.__calling=!1)}},e.prototype.observe=function(e,t,n){var r=t.bind(this);return n&&!1===n.init||r(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&r(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(Ur({},e)),this.root._lock||(this.root._lock=!0,zr(this.root._beforecreate),zr(this.root._oncreate),zr(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},r=!1;for(var o in e)this._differs(e[o],t[o])&&(n[o]=r=!0);r&&(this._state=Ur(Ur({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function Dr(e,t){var n=document.createElement(e);return t&&(n.className=t),n}function Rr(e,t,n){e.style.setProperty(t,n)}function Br(e,t,n){t.insertBefore(e,n)}function jr(e,t){t.appendChild(e)}function Fr(){}function Ur(e,t){for(var n in t)e[n]=t[n];return e}function zr(e){for(;e&&e.length;)e.shift()()}function Hr(e,t,n){var r=Dr(t,n);return r.addEventListener(\"click\",(function(e){e.stopPropagation()}),!1),e.appendChild(r),r}function qr(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function Gr(e,t){var n=document.createTextNode(t);return e.appendChild(n),n}function Wr(e){if(e&&e.nodeType===Node.ELEMENT_NODE){var t=function(e){if(e)return e.__zInstance__||e.__zComposite__}(e);if(t)return t}}function Zr(e){for(var t=0;e&&t<5;){var n=Wr(e);if(n)return n;e=e.parentNode,t++}}var Yr={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},Vr=!1;function Xr(e){Vr&&e.stopImmediatePropagation()}var Jr=function(){function e(){var e=this;this.inspectModeHighlightConfig=Yr,this.onWindowScroll=function(){e.currentFocusNode&&e.doHighlightNode(e.currentFocusNode,e.highlightConfig)},this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=Me(this.handleInspectMouseOver.bind(this),150,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this),window.addEventListener(\"scroll\",Me(this.onWindowScroll,16,setTimeout,clearTimeout),!0)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",Xr,!0),window.addEventListener(\"mousedown\",Xr,!0),window.addEventListener(\"touchstart\",Xr,!0),window.addEventListener(\"touchend\",Xr,!0)},e.prototype.bindBridge=function(e){this.bridge=e},e.prototype.highlightNode=function(e,t){void 0===t&&(t={}),this.highlightConfig=t,this.currentFocusNode=e;var n=e.getBoundingClientRect();n.height||n.width?this.doHighlightNode(e,t):this.hidehighlight()},e.prototype.hidehighlight=function(){this.highlightConfig=void 0,this.currentFocusNode=void 0,this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.addEventListener(\"mouseout\",this.hidehighlight,!0),document.addEventListener(\"click\",this.handleInspectClick,!0),Vr=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.removeEventListener(\"mouseout\",this.hidehighlight,!0),document.removeEventListener(\"click\",this.handleInspectClick,!0),Vr=!1,this.inspectModeHighlightConfig=Yr},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e.prototype.doHighlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect(),r={},o=Zr(e),i=\"unknown\";try{var s=this.bridge.getClientProxy().getClientInfo();i=s.isIDE?\"ide\":s.isIOS?\"ios\":\"android\"}catch(e){}if(t.showInfo&&o){var a=o._debug;if(a){if(r.tagName=a.nodeName.toLowerCase(),a.attrClass){var u=a.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");u.length>0&&(r.className=\".\".concat(u))}r.idValue=a.attributes.get(\"id\")}r.nodeHeight=Mr(n.height,4),r.nodeWidth=Mr(n.width,4),r.nodeLeft=Mr(n.left,4),r.nodeTop=Mr(n.top,4);var c=window.getComputedStyle(e);r.style=c}var l=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),d=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},h={border:Ee(Ee({},l.border),{color:d(t.borderColor)}),content:{color:d(t.contentColor)},elementInfo:r,margin:Ee(Ee({},l.margin),{color:d(t.marginColor)}),padding:Ee(Ee({},l.padding),{color:d(t.paddingColor)}),platform:i,rect:{height:\"\".concat(n.height,\"px\"),left:\"\".concat(n.left-Number(l.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(n.top-Number(l.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(n.width,\"px\")},show:!0};this.overlayComponent?this.overlayComponent.set(h):this.overlayComponent=new Lr({data:h,target:document.body})},e}();var Qr,$r=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return ke(t,e),t.prototype.highlightNode=function(t,n){if(t.nodeType===Node.ELEMENT_NODE){var r=Zr(t);r&&this.bridge.getZNodeDebugInfo(r),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){this.highlightNode(n,this.inspectModeHighlightConfig);var r=Zr(n);if(r){var o=this.bridge.getZNodeDebugInfo(r);if(!o.activated){for(var i=[],s=o.getParentNode();s&&!s.activated;)i.unshift(s),s=s.getParentNode();s&&i.unshift(s),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}o.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:o.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=Zr(t);if(n){var r=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r.nodeId})}}},t}(Jr),Kr=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,r){var o=e.split(\".\"),i=n.getMessageHandler(o);i&&i(n,t,r)})),n}return ke(t,e),t.prototype.getClientProxy=function(){return this.option.clientProxy},t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new $r,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!Zn){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,r=Array.from(e);n<r.length;n++){var o=r[n];if(/af-appx\\.min\\.css$/.test(o.href)){t=o.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Kt.parse(i.responseText);Zn={ownerNode:null,postCSSRoot:e,styleSheetId:void 0,hash:\"\"}}catch(e){console.warn(e)}else console.warn(\"failed to request \".concat(t))},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=Nr,n=0,r=e;n<r.length;n++){if(!(t=t[r[n]]))break}return t},t}(Wt);function eo(e,t,n){var r=new Kr({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,r,o){return new Xt(e,t,n,r,o)},createZNodeElement:function(e,t,n,r,o,i){return new Vt(e,t,n,r,o,i)}}});return function(e){var t=e.getZRuntimeHelper();function n(t,n,r,o,i,s){var a=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),a.nodeType===we.Element&&(a.setLinkedContext(n),r&&a.updateClassName(r),o&&a.updateInlineStyle(t.cachedNormalizedStyleString||o),a.updateProperties(i))}function r(t,n){var r=e.getZNodeDebugInfo(t);r.nodeType===we.Element&&(r.updateDataset(n),r.invalidate())}function o(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===we.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var r=n.pseudoNodeType2Id;r&&Object.keys(r).forEach((function(t){e.nodeId2PseudoElement.delete(r[t])}))}delete t._debug}}function i(t,n,r){var o=e.getZNodeDebugInfo(n),i=o.getParentNode();if(1===i.getParentNodeId())e.sendMessage(\"DOM.setChildNodes\",{nodes:i.getChildNodes().map((function(e){return e.serialize(0)})),parentId:i.nodeId}),e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId});else if(i.activated)if(i.childrenActivated){var s=0,a=o.getPreviousElementOrTextSibling();a&&(s=a.nodeId),e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:o.nodeId,parentNodeId:i.nodeId}),e.sendMessage(\"DOM.childNodeInserted\",{node:o.serialize(0),parentNodeId:i.nodeId,previousNodeId:s})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId})}if(At(t,\"x\",(function(e,t){n.apply(void 0,t)})),At(t,\"xp\",(function(e,t){n.apply(void 0,t)})),At(t,\"xa\",(function(e,t){n.apply(void 0,t)})),At(t,\"xi\",(function(e,t){n.apply(void 0,t)})),At(t,\"xai\",(function(e,t){n.apply(void 0,t)})),At(t,\"W\",(function(e,t){n.apply(void 0,t)})),At(t,\"X\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=n[5],u=n[6],c=e.getZNodeDebugInfo(r);c.nodeType===we.Element&&(i&&c.updateClassName(o),a&&c.updateInlineStyle(r.cachedNormalizedStyleString||s),c.updateProperties(u),c.invalidate())})),At(t,\"y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===we.Element&&(i&&a.updateClassName(o),a.updateProperties(s),a.invalidate())})),At(t,\"Y\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=n[3],s=n[4],a=e.getZNodeDebugInfo(r);a.nodeType===we.Element&&(i&&a.updateInlineStyle(r.cachedNormalizedStyleString||o),a.updateProperties(s),a.invalidate())})),At(t,\"w\",(function(t,n){var r=n[0],o=(n[1],n[2]),i=e.getZNodeDebugInfo(r);i.nodeType===we.Element&&(i.updateProperties(o),i.invalidate())})),At(t,\"ea\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=e.getZNodeDebugInfo(r);s.nodeType===we.Element&&(s.updateAttribute(o,i),s.invalidate())})),At(t,\"g\",(function(e,t){r.apply(void 0,t)})),At(t,\"Q\",(function(e,t){r.apply(void 0,t)})),At(t,\"G\",(function(e,t){r.apply(void 0,t)})),At(t,\"n\",(function(t,n){var r=n[0],o=n[1];if(r.firstChild){var i=r.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})}else{var s={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:r,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:o};s.root&&(r.firstChild=r.lastChild=s)}})),At(t,\"N\",(function(t,n){var r=n[0],o=n[1],i=r._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:i.nodeId})})),Mt(t,\"r\",(function(e){o(e[0])})),Mt(t,\"R\",(function(e){o(e[0])})),At(t,\"i\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),At(t,\"a\",(function(e,t){t[0],i(0,t[1])})),At(t,\"I\",(function(e,t){t[0];var n=t[1];t[2],i(0,n)})),At(t,\"A\",(function(e,t){t[0],i(0,t[1])})),At(t,\"t\",(function(t,n){var r=n[0];e.getZNodeDebugInfo(t).setLinkedContext(r)})),At(t,\"p\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.getTargetId();if(e.componentTargetId2ZNode.has(s)){var a=e.componentTargetId2ZNode.get(s);a.activated&&(a.updateProperties(o,i),a.invalidate())}})),Mt(t,\"m\",(function(t){var n=t[0],r=t[1],o=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(Lt(n.getTargetId()));n._anchor4Head=i,r.insertBefore(i,o)})),At(t,\"m\",(function(t,n){var r=n[0],o=n[1],i=n[2],s=r.root.document.createComment(Dt(r.getTargetId()));r._anchor4Tail=s,o.insertBefore(s,i);var a=e.getZNodeComponentDebugInfo(r.getTargetId()),u=a.getParentNode();if(u&&u.activated)if(u.childrenActivated){var c=a.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:a.serialize(0),parentNodeId:u.nodeId,previousNodeId:c?c.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:u.getChildNodeCount(),nodeId:u.nodeId})})),Mt(t,\"q\",(function(e){var t=e[0],n=e[1],r=Tt(t,n),o=r.root.textContent;\"b\"===o[0]&&(r.root.textContent=\"e\"+o.slice(1)),It(t,Ct(t,r)),n._anchor4Head=r})),At(t,\"q\",(function(t,n){var r=n[0],o=n[1],i=o.getTargetId();St(r);var s=o._anchor4Head,a=o._anchor4Tail=Tt(r,o,s);s.root.textContent=Lt(i),a.root.textContent=Dt(i),e.componentTargetId2LinkedInstance.set(i,o),e.componentTargetId2ZNode.delete(o.targetId)})),At(t,\"o\",(function(t,n){var r=n[0],o=r._anchor4Head;o&&(o.parent.removeChild(o),r._anchor4Head=null);var i=r._anchor4Tail;i&&(i.parent.removeChild(i),r._anchor4Tail=null);var s=e.componentTargetId2ZNode.get(r.targetId);s&&s.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:s.nodeId,parentNodeId:s.getParentNodeId()}),e.componentTargetId2ZNode.delete(r.targetId),e.componentTargetId2LinkedInstance.delete(r.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var s=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=s.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),r}}}(r),function(e,t){var n=t.h,r=window.$ZElementLocationResolver=new Zt(e,t);t.L||(t.L=function(){}),Mt(t,\"L\",r.overwriteLocation),At(n,\"e\",r.bindZElement),Mt(n,\"c\",r.bindZComponent)}(r,t.getZRuntime()),r}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(Qr||(Qr={}));var to,no,ro=Function.prototype.apply.call.bind(Function.prototype.apply);function oo(e,t,n){return ro(e,t,n)}function io(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=oo(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=oo(e,null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}function so(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function ao(){var e=\"undefined\"!=typeof Map;to=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,r=n.indexOf(e);if(-1===r){var o=n.push(e)-1;this.valueList[o]=t}else this.valueList[r]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),r=t.length,o=0;o<r;o++){var i=t[o];e(n[o],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function uo(){var e;return no||(e=\"undefined\"!=typeof WeakMap,no=e?WeakMap:so()),new no}uo();var co=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),lo=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new co(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function ho(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=uo(),t}t(n,e),n.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},n.prototype.iterateChildTargetByOwnerId=function(t,n,r){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,r])},n.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},n.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},n.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},n.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(to||ao(),n=new to,this.cache.set(e,n));var r=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),o=n.get(r);return o||(o=new lo(e.apply(this,t))),o.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,r,o,i;return s(this,(function(s){switch(s.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];r=n.node,s.label=1;case 1:return r?(o=r).component&&2===o.component.type?[4,i=o.component]:[3,4]:[3,5];case 2:return s.sent(),[5,a(this.iterateChildTargetByOwnerId(i,t))];case 3:s.sent(),s.label=4;case 4:return r=r.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var r,o,i,u,c,l,d,h,p,f,g,v,m;return s(this,(function(s){switch(s.label){case 0:if(!e.slotProviders)return[2,null];r=e.slotProviders,s.label=1;case 1:s.trys.push([1,13,14,15]),o=a(r),i=o.next(),s.label=2;case 2:if(i.done)return[3,12];u=i.value,c=this.iterateDeepSlotBlockByOwnerId(e,t),s.label=3;case 3:if(!1!==(l=c.next()).done)return[3,9];if(!(d=l.value).node)return[3,8];if(d.provider!==u)return[3,8];h=d.node.firstChild,s.label=4;case 4:return h?(p=h).component?2!==p.component.type?[3,7]:[4,f=p.component]:[3,7]:[3,8];case 5:return s.sent(),n?[3,7]:[5,a(this.iterateChildTargetByOwnerId(f,t))];case 6:s.sent(),s.label=7;case 7:return h=h.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=o.next(),[3,2];case 12:return[3,15];case 13:return g=s.sent(),v={error:g},[3,15];case 14:try{i&&!i.done&&(m=o.return)&&m.call(o)}finally{if(v)throw v.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,r,o,i;return s(this,(function(s){switch(s.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,s.label=1;case 1:return n?(r=n).component&&1===r.component.type?(o=r.component,u=o.provider,((c=u.slotProviderParentContextInstance).type<2?c.option.parentTarget:c).targetId!==t?[3,3]:[4,o]):[3,6]:[3,9];case 2:return s.sent(),[3,5];case 3:return[5,a(this.iterateDeepSlotBlockByOwnerId(o,t))];case 4:s.sent(),s.label=5;case 5:return[3,8];case 6:return r.component&&2===r.component.type&&(i=r.component).slotProviders?[5,a(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:s.sent(),s.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var u,c}))},e.prototype.iterateTargetDeep=function(e,t){var n,r;return s(this,(function(o){switch(o.label){case 0:return[5,a(this.iterateDeepXML(e))];case 1:o.sent(),n=this.iterateChildTargetByOwnerId(e,t),o.label=2;case 2:return!1!==(r=n.next()).done?[3,5]:[4,r.value];case 3:return o.sent(),[5,a(this.iterateDeepXML(r.value))];case 4:return o.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,r;return s(this,(function(o){switch(o.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,o.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return o.sent(),[5,a(this.iterateTargetDeep(n,e.targetId))];case 3:o.sent(),r=ho(n),o.label=4;case 4:return r?[4,r]:[3,7];case 5:return o.sent(),[5,a(this.iterateDeepXML(r))];case 6:return o.sent(),r=ho(r),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,o.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());var po,fo,go,vo,mo,yo;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT,\"undefined\"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return\"function\"==typeof e?(ro||(ro=Function.prototype.apply.call.bind(Function.prototype.apply)),ro(e,t,n)):e.call.apply(e,u([t],n,!1))}),\"undefined\"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(e,t,n){return\"function\"==typeof e?(ro||(ro=Function.prototype.apply.call.bind(Function.prototype.apply)),ro(e,t,n)):e.apply(t,n)}),function(e){e.CanvasContext=\"CanvasContext\"}(po||(po={})),function(e){e[e.PLUGIN=1]=\"PLUGIN\",e[e.SUB_PACKAGE=2]=\"SUB_PACKAGE\"}(fo||(fo={})),function(e){e.PLUGIN=\"plugin\",e.SUB_PACKAGE=\"subpackage\"}(go||(go={})),function(e){e[e.Info=0]=\"Info\",e[e.Warn=1]=\"Warn\",e[e.Error=2]=\"Error\"}(vo||(vo={})),function(e){e.AppxLifecycle=\"AppxLifecycle\"}(mo||(mo={})),\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(e){e.version_added=\"v\",e.const=\"c\",e.android=\"a\",e.ios=\"i\",e.default=\"d\"}(yo||(yo={})),uo();var bo=function(){function e(e,t,n,r,o){this.bindLinkNode=o,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=r}return e.prototype.createBlockWithScope=function(e,t){var n,r,o=this.scopeId;return e&&o?(n=_o(e,this.currentData,o),(r=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,r=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),r.bType=1,r},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,r,o,i){if(t._name===e){var s=this.scopeId;if(n&&s){var a=_o(n,this.currentData,s),u=Object.create(this.updatingDiff);u[s]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(u,a,r,o)}else t.updateFallbackContext(r,o)}else{var c=void 0;c=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,c,r,o)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,r){var o=this.scopeId;if(t&&o){var i=_o(t,this.currentData,o),s=Object.create(this.updatingDiff);s[o]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(s,i,n,r)}else e.updateFallbackContext(n,r)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var r=_o(t,this.currentData,n),o=Object.create(this.updatingDiff);o[n]=!0,e.__scopeContext__=t,e.u(o,r)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var r=n[t],o=1===r.__slotType__?this.scopedBlocks:this.unscopedBlocks;r.__slotIndex__=o.push(r)-1,r.d(!0)}}},e.prototype.createBlock=function(e,t,n,r){var o,i,s;if(r?(i=1,o=this.scopedBlocks.length,s=this.scopedBlocks):(i=0,o=this.unscopedBlocks.length,s=this.unscopedBlocks),this.detaching){var a=this.detachedBlocks;if(a){var u=a.shift();if(u)return s.push(u),u.__slotIndex__=o,u.__slotType__=i,u}}var c=this.factory(e,n);return this.bindLinkNode&&(c=this.bindLinkNode(c,this)),c.d=this.destroyBlock.bind(this,c,c.d),s.push(c),c.__slotIndex__=o,c.__slotType__=i,c},e.prototype.destroyBlock=function(e,t,n){var r=e.__slotIndex__;if(r>=0){if(!this.disposing){var o=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=o.length-1,s=o[i];s.__slotIndex__=r,o[r]=s,o.length=i}if(this.detaching){var a=this.detachedBlocks;a||(a=this.detachedBlocks=[]),a.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function _o(e,t,n){var r=Object.create(t);return r[n]=e[0],e.length>1&&(r[n+\"d\"]=e[1],r[n+\"n\"]=e[2]),r}function wo(){}function Io(e,t,n){if(e)return e(t,n)}function So(e){if(e){var t=e.parent;t&&t.removeChild(e)}}function Co(e,t,n){return t?e.document.cloneComment(t):e.document.createComment(n)}function ko(e,t){var n=t.nextSibling,r=t.previousSibling;n?(n.previousSibling=r,t.nextSibling=null):e.lastChild=r,r?(r.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function Eo(e,t){var n=t.parent;n&&ko(n,t),t.parent=e;var r=e.lastChild;r?(t.previousSibling=r,r.nextSibling=t):e.firstChild=t,e.lastChild=t}function xo(e,t,n){e.insertBefore(t,n||null),t.parent||(t.parent=e)}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.exitProviderUpdating=function(){},n.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u,c=_o((u=a[s]).__scopeContext__,t,n);u.u(i,c)}}},n.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].d(e)}this.unscopedBlocks=[]}}(bo),function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){o[r].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,s=this.scopedBlocks;i<s.length;i++){s[i].__slotUpdating__=!0}},n.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},n.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,r=0,o=this.unscopedBlocks;r<o.length;r++){(u=o[r]).__slotUpdating__&&(u.__slotUpdating__=!1,u.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var s=0,a=this.scopedBlocks;s<a.length;s++){var u;if((u=a[s]).__slotUpdating__){u.__slotUpdating__=!1;var c=_o(u.__scopeContext__,t,n);u.u(i,c)}}}this.updatingDiff=null}}(bo),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.detaching=!1,t}t(n,e),n.prototype.detach=function(){this.detaching=!0},n.prototype.attach=function(){this.detaching=!1},n.prototype.c=function(){if(this.detaching){var t=this._bc[5];return this._currentBlock&&(t&=this._currentBlock.c()),t}return e.prototype.c.call(this)},n.prototype.m=function(t,n){if(!this.detaching)return e.prototype.m.call(this,t,n);this._currentBlock&&this._currentBlock.m(this._currentTarget,this._currentAnchor)},n.prototype.resetCurrentBranch=function(e,t){this._component=e;var n=this._bc[3],r=this._bc[4],o=this._bc[0];this._selectedBlockIndex=n?n(this._component,t):1,this._selectedBlockType=r?r(this._selectedBlockIndex):o(this._component,t),this._currentBlock=Io(this._selectedBlockType,this._component,t)},n.prototype.d=function(t){if(!this.detaching)return e.prototype.d.call(this,t);this._currentBlock&&(this._currentBlock.d(t),this._currentBlock=null)}}(function(){function e(e,t,n){this._bc=e,this._component=t;var r=e[3],o=e[4],i=e[0];this._selectedBlockIndex=r?r(t,n):1,this._selectedBlockType=o?o(this._selectedBlockIndex):i(t,n),this._currentBlock=Io(this._selectedBlockType,t,n)}return e.prototype.a=function(){return this._currentAnchorHead},e.prototype.c=function(){var e=this._bc[5];return this._currentAnchorHead=Co(this._component),this._currentAnchor4Index=Co(this._component,null,Po(this._selectedBlockIndex)),this._currentBlock&&(e&=this._currentBlock.c()),this._currentAnchor=Co(this._component,this._currentAnchorHead),e},e.prototype.l=function(e){var t=this._bc[5];this._currentAnchorHead=Mo(e,this._component),function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(e,To(e,this._currentAnchorHead));var n,r=Ao(e,this._component,\"c\",Po(this._selectedBlockIndex));return this._currentAnchor4Index=r[0],e.treatErrorAsWarning+=r[1],this._currentBlock&&(t&=this._currentBlock.l(e)),e.treatErrorAsWarning-=r[1],(n=e).stopReverseIndexStack.pop(),n.stopReverseIndex=n.stopReverseIndexStack[n.stopReverseIndexStack.length-1]||0,this._currentAnchor=Mo(e,this._component,this._currentAnchorHead),this._currentTarget=e.target,t},e.prototype.m=function(e,t){this._currentTarget=e,xo(e,this._currentAnchorHead,t),xo(e,this._currentAnchor4Index,t),this._currentBlock&&this._currentBlock.m(e,t),xo(e,this._currentAnchor,t)},e.prototype.u=function(e,t){var n=this._bc[5],r=this._bc[3],o=this._bc[4],i=this._bc[0],s=r?r(this._component,t):1,a=o?o(s):i(this._component,t);if(this._selectedBlockType!==a){this._selectedBlockIndex=s,this._selectedBlockType=a;var u=this._currentAnchor4Index.root;u&&(u.textContent=Po(this._selectedBlockIndex)),this._currentBlock&&this._currentBlock.d(!0),this._currentBlock=Io(this._selectedBlockType,this._component,t),this._currentBlock&&(n&=this._currentBlock.c(),this._currentBlock.m(this._currentTarget,this._currentAnchor))}else this._currentBlock&&(n&=this._currentBlock.u(e,t));return n},e.prototype.d=function(e){this._currentBlock&&(this._currentBlock.d(e),this._currentBlock=null),e&&(So(this._currentAnchorHead),So(this._currentAnchor4Index),So(this._currentAnchor),this._currentAnchorHead=null,this._currentAnchor4Index=null,this._currentAnchor=null)},e}());var To=function(e,t){var n,r=t.root.textContent,o=e.index,i=e.nodes.length;for(;o<i&&(n=e.nodes.item(o))&&(8!==n.nodeType||n.textContent!==r);)o++;return i-o};var No=0;var Oo=function(){return\"z:\".concat(++No)},Ao=function(e,t,n,r){var o,i=e.target,s=e.nodes.item(e.index),a=0,u=0;if(s&&8===s.nodeType&&s.textContent[0]===n)s.textContent===r?o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s}:(s.textContent=r,o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s},a=1,u=1);else{if(o={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:t.document.document.createComment(r)},s){var c={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:s};i.insertBefore(o,c)}else i.appendChild(o);a=1}if(e.index++,a)for(var l=e.index,d={destroy:wo,eType:0,nextSibling:null,parent:i,previousSibling:null,root:null};(s=e.nodes.item(l))&&e.stopReverseIndex!==e.nodes.length-l;)d.root=s,i.removeChild(d);return[o,u]};var Mo=function(e,t,n){var r,o=e.target,i={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var s=n.root.textContent,a=e.index,u=void 0;;){if(!(u=e.nodes.item(a))){var c=t.document.document.createComment(s);i.root=c,o.appendChild(i);break}if(i.root=u,8===u.nodeType&&u.textContent===s){Eo(o,i);break}if(e.stopReverseIndex===e.nodes.length-a){var l={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:u};c=t.document.document.createComment(s);i.root=c,Eo(o,l),o.insertBefore(i,l),ko(o,l);break}o.removeChild(i)}return e.index++,i}u=e.nodes.item(e.index++);i.root=u,u&&8===u.nodeType?Eo(o,i):(r={destroy:wo,eType:0,nextSibling:null,parent:null,previousSibling:null,root:t.document.document.createComment(Oo())},u?(Eo(o,i),o.insertBefore(r,i),e.stopReverseIndex===e.nodes.length-e.index?ko(o,i):o.removeChild(i)):o.appendChild(r));return r||i};function Po(e){return\"\".concat(\"c\",\":\").concat(e||\"\")}function Lo(e,t,n){for(var r=[],o=e,i=null;o&&!t(o);){switch(o.eType){case 1:case 2:null===i&&r.push(n.getZNodeDebugInfo(o));break;case 0:var s=o.root.textContent;null===i&&\"b\"===s[0]?i=parseInt(s.slice(2),10):null!==i&&s===Bo(i)&&(r.push(n.getZNodeComponentDebugInfo(i)),i=null)}o=o.nextSibling}return r}function Do(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function Ro(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function Bo(e){return\"\".concat(\"e\",\":\").concat(e)}function jo(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var r=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])r++;else if(\"b\"===t.root.textContent[0]){if(0===r){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}r--}}else{if(1===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}if(2===t.eType&&0===r){n.push.apply(n,jo(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var Fo,Uo=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=jo(this.node);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function zo(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];r&&o&&t.push(\"\".concat(r,'=\"').concat(o,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var r=function(e){if(e&&0!==e.length){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return r&&t.push(r),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}function Ho(e,t){for(var n=e.child;n&&(n.tag===Fo.HostComponent||n.tag===Fo.HostPortal||n.tag===Fo.HostRoot);)n=n.child;if(n){var r=function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n);r.forEach((function(e){Zo(e)?t(e):Ho(e,t)}))}}function qo(e){var t=Go(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function Go(e){var t,n=e.type,r=\"\";return\"string\"==typeof n?r=n:n&&\"string\"==typeof n.displayName?(r=n.displayName,Wo(e)&&(r=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||r)):n&&\"string\"==typeof n.name&&(r=n.name),r||\"Anonymous\"}function Wo(e){var t=e.tag,n=e.type;return(t===Fo.ClassComponent||t===Fo.FunctionComponent)&&!(!n||!n.isCustomComponent)}function Zo(e){return e.tag===Fo.HostText||(!!qo(e)||!!Wo(e))}function Yo(e){var t=e.tag;return t===Fo.HostComponent||t===Fo.HostText?e:e.child?Yo(e.child):void 0}function Vo(e){var t=Yo(e);if(t)return t.stateNode}function Xo(e){for(var t=e.return;t;){if(Zo(t))return t;t=t.return}}function Jo(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function Qo(e){var t=r({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function $o(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,Do(\"className\",e.memoizedProps.className));var n=Qo(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,Do(e,n[e]))}))}return t}function Ko(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),r=0;return t.return&&(r=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:r}}function ei(e,t,n){var r,o,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var s=e.getFiberId(e.getPrimaryFiber(t)),a=Go(t);a=a.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var u,c,l,d=0;if(Ho(t,(function(t){if(c||(c=t),n>0){u||(u=[]);var r=ti(e,t,n-1);r&&u.push(r)}d+=1})),!u&&1===d&&c&&c.tag===Fo.HostText){u||(u=[]);var h=ti(e,c,n-1);h&&u.push(h)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){u||(u=[]);for(var p=t.child;p&&p.child;)p=p.child;if((null===(i=null===(o=null===(r=null==p?void 0:p.stateNode)||void 0===r?void 0:r.childNodes)||void 0===o?void 0:o[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var f=p.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:f,tag:Fo.HostText,type:null};e.recordMount(g),u.push(Ko(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}u&&u.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var v=0;return t.return&&(v=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:$o(t),backendNodeId:s,childNodeCount:d,children:u,localName:a,nodeId:s,nodeName:a,nodeType:1,nodeValue:\"\",parentId:v,shadowRoots:void 0}}function ti(e,t,n){var r;switch(void 0===n&&(n=0),t.tag){case Fo.FunctionComponent:case Fo.ClassComponent:case Fo.HostComponent:r=ei(e,t,n);break;case Fo.HostText:r=Ko(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return r}!function(e){function n(t,n,r,o,i,s){var a=e.call(this,t,r)||this;return a.devtool=t,a.nodeName=n,a.node=r,a.nodeId=o,a.shadowRootNodeId=i,a.shadowSlotNodeId=s,a.nodeType=Qr.Element,a.activated=!1,a.childrenActivated=!1,a.pendingAttributes=[],a.dataset=new Map,a.properties=new Map,a.attributes=new Map,a.inlineStyleSheetId=\"2000.\".concat(o),a.updateClassName(r.classNameExp),a.updateInlineStyle(r.inlineStyleExp),a.updateDataset(r.getDataset()),a}t(n,e),Object.defineProperty(n.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},n.prototype.getClassName=function(){return this.attrClass},n.prototype.getInlineStyle=function(){return this.attrStyle},n.prototype.getDataset=function(){return this.dataset},n.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},n.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},n.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},n.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},n.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([o,\"\".concat(e[o])]))}},n.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o]!==t.get(o)&&(t.set(o,e[o]),this.activated&&this.pendingAttributes.push([\"data-\".concat(o),\"\".concat(e[o])]))}},n.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},n.prototype.getChildNodes=function(){return Lo(this.node.firstChild,(function(){return!1}),this.devtool)},n.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&r&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Qr.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(n.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),n.prototype.getOuterAXML=function(){return zo(this)},n.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},n.prototype.getChildNodeCount=function(){return this.getChildNodes().length},n.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},n.prototype.getPseudoElements=function(){return[]}}(Uo),function(e){function n(t,n,r,o){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=r,i.shadowSlotNodeId=o,i.nodeType=Qr.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}t(n,e),n.prototype.getPlatformRootDOM=function(){return this.node.root},n.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},n.prototype.getOuterAXML=function(){return this.node.root.textContent}}(Uo),function(){function e(e,t,n){var r=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=Qr.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var o=io(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var a=i.apply(r.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&o(\"Tiny.Elements.componentDataChanged\",{data:Ro(r.getData()).data,nodeId:n,targetId:r.targetId}),a};var s=io(e.sendMessage.bind(e),500,setTimeout,clearTimeout),a=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];a.apply(r.componentInstance,t),e.activatedCustomComponentId===n&&s(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Ro(r.getProps()).data,targetId:r.targetId})},this.invalidate=io(this.invalidate.bind(this),500,setTimeout,clearTimeout)}e.prototype.getChildNodes=function(){var e=this;return Lo(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Bo(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),r=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==r||n[0].nodeType!==Qr.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),placeholderComponentInfo:this.getPlaceholderComponentInfo(),backendNodeId:this.nodeId,childNodeCount:r,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return zo(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var r=[\"is\",n];return this.componentInstance.externalClasses&&r.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){r.push.apply(r,Do(t,e.componentInstance._state[t]))})),r},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getPlaceholderComponentInfo=function(){if(this.componentInstance.getPlaceholderComponentInfo)return this.componentInstance.getPlaceholderComponentInfo()},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=jo(this.beginAnchor);return jo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,r=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===r.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(r){t[r]&&n.pendingAttributes.push([r,\"\".concat(e[r])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,r=this.pendingAttributes;n<r.length;n++){var o=r[n],i=o[0],s=o[1];t[i]=s}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})}}(),function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(Fo||(Fo={}));var ni=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var r=e.getPageComponent();if(r){var o=ti(e,r,1);o.localName=o.nodeName=\"page\",o.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[o],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{var i=\"page-not-found\";n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:i,nodeId:2,nodeName:i,nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}dr().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:fr(t)})}))},markUndoableState:function(e,t,n){n(void 0,{})},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);if(o){var i=ti(e,o,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:r})}else console.warn(\"requestChildNodes node not exists\",r);n(void 0,{})},setAttributesAsText:function(e,t,n){var r=t.nodeId,o=t.text,i=t.name,s=e.getFiberNodeById(r);if(s&&s.memoizedProps){var a=mr(o);if(\"class\"===i){if((h=Yo(s))&&h.stateNode&&h.stateNode.classList){var u=h.stateNode,c=h.memoizedProps.className||\"\";u.className=c;var l=s.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\".concat(l))}var d=a.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){u.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:d})}}else if(\"style\"===i){var h;if((h=Yo(s))&&h.stateNode&&h.stateNode.nodeType===Node.ELEMENT_NODE)h.stateNode.setAttribute(i,a.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:r,value:a.style})}}n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var r=t.nodeId,o=t.value,i=e.getFiberNodeById(r);if(i&&i.tag===Fo.HostText)return i.stateNode.textContent=o,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:o,nodeId:r});n(-32e3,{})}});function ri(e,t){if(e&&qo(e)){var n=Vo(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return vr({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\".concat(t)})}}var oi=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getComputedStyleForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i=[];if(o&&qo(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){var a=getComputedStyle(s);i=Array.from(a).map((function(e){return{name:e,value:a[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var r,o=t.nodeId,i=e.getFiberNodeById(o);if(i&&qo(i)){var s=Vo(i);if(s&&s.nodeType===Node.ELEMENT_NODE){r={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\".concat(o)};var a=ri(i,o);a&&(r=a)}}r?n(void 0,{inlineStyle:r}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r),i={matchedCSSRules:[]};if(o&&qo(o)){var s=Vo(o);if(s&&s.nodeType===Node.ELEMENT_NODE){gr((function(e,t){zn(s,e.selector)&&i.matchedCSSRules.push(ir(e,s,t))}));var a=ri(o,r);a&&(i.inlineStyle=a)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=Hn(i.matchedCSSRules)}catch(e){}n(void 0,i)},getStyleSheetText:function(e,t,n){var r=\"\",o=hr(t.styleSheetId);o&&(r=o.ownerNode.textContent||\"\"),n(void 0,{text:r})},setStyleTexts:function(e,t,n){var r=[],o=\"2000.\";t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(o)){var i=Number(n.replace(o,\"\")),s=e.getFiberNodeById(i);if(s){var a=Vo(s);if(a&&a.nodeType===Node.ELEMENT_NODE){a.setAttribute(\"style\",t.text);var u=ri(s,i);u&&r.push(u)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var c=yr(n,t.range,t.text);c&&r.push(c)}})),n(void 0,{styles:r})}});var ii=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var r=t.nodeId,o=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(r);if(i){var s=Vo(i);s&&s.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(s,o)}n(void 0,{})}},setInspectMode:function(e,t,n){var r=t.mode,o=t.highlightConfig;\"none\"===r?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(o),n(void 0,{})}});var si=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var r=t.nodeId,o=e.getFiberNodeById(r);o&&Wo(o)?(e.activatedCustomComponentId=r,n(void 0,{data:Ro(o.memoizedState&&o.memoizedState.data||{}).data,props:Ro(Qo(o.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),ai=Object.freeze({__proto__:null,Elements:si}),ui=Object.freeze({__proto__:null,CSS:oi,DOM:ni,Overlay:ii,Tiny:ai});function ci(e,t,n,r,o){var i,s,a=null,u=0;o||(o={});var c=function(){u=!1===o.leading?0:Date.now(),a=null,s=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=Date.now();u||!1!==o.leading||(u=h);var p=t-(h-u);return i=l,p<=0||p>t?(r(a),a=null,u=h,s=e.apply(null,i),i=null):a||!1===o.trailing||(a=n(c,p)),s}}var li=1,di=4;function hi(e,t){var n=t.current,r=n.alternate;if(r){var o=null!=r.memoizedState&&null!=r.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!o&&i?vi(e,n):o&&i&&mi(e,n,r)}else vi(e,n);!function(e){fi.forEach((function(t){var n=t.nodeId,r=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:r})})),fi.clear(),gi.forEach((function(t){var n=Xo(t);if(n&&Jo(n)){var r=e.getFiberId(n),o=0;if(Ho(n,(function(){o+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=Xo(e);if(!t)return null;var n=null,r=null;return Ho(t,(function(t){t===e&&(r=n),n=t})),r}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:ti(e,t),parentNodeId:r,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:o,nodeId:r})}})),gi.clear()}(e)}var pi,fi=new Set,gi=new Set;function vi(e,t){Zo(t)&&e.recordMount(t);for(var n=t.child;n;)vi(e,n),n=n.sibling}function mi(e,t,n){if(Zo(t)){var r=n?e.getFiberId(n):0,o=e.getFiberId(t);if(n&&r&&!o){if(e.recordMount(t),Jo(n)&&((t.effectTag&di)===di||(t.effectTag&li)===li)){var i=e.activatedCustomComponentId===r;t.memoizedProps&&n.memoizedProps&&t.memoizedProps!==n.memoizedProps&&\"object\"==typeof t.memoizedProps&&Object.keys(t.memoizedProps).forEach((function(o){if(\"children\"!==o&&t.memoizedProps[o]!==n.memoizedProps[o]){var s=Do(o,t.memoizedProps[o]);2===s.length&&e.sendMessage(\"DOM.attributeModified\",{name:s[0],nodeId:r,value:s[1]}),i&&(pi||(pi=ci(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),pi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,targetId:-1,props:Ro(Qo(t.memoizedProps||{})).data}))}})),i&&t.memoizedState&&n.memoizedState&&t.memoizedState.data!==n.memoizedState.data&&(pi||(pi=ci(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),pi(\"Tiny.Elements.componentDataChanged\",{nodeId:r,data:Ro(t.memoizedState.data||{}).data,targetId:-1}))}}else r||o||(vi(e,t),gi.add(t))}for(var s=t.child;s;)mi(e,s,s.alternate),s=s.sibling}function yi(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},r={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,r.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var o=n.current,i=e.getFiberRoot()===n,s=null==o.memoizedState||null==o.memoizedState.element;i||s?i&&s&&e.setFiberRoot():e.setFiberRoot(n),r.wasCommited||(r.wasCommited=!0,r.emit(\"first-commit\"));try{hi(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){if(Zo(t)){var n=Array.from(fi).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}));n||fi.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(Xo(t))})}}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var r=n[e];if(r){var o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length||delete n[e]}},emit:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n[e];o&&o.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=r}var bi=function(e){function n(){var t,n=this;return(n=e.call(this)||this).fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var r=this.fiberRenderer.findFiberByHostInstance(n);if(r){var o=Xo(r);if(o){if(!this.bridge.getFiberId(o)&&this.bridge.getFiberId(o.alternate)&&(o=o.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!Jo(o)){for(var i=[],s=Xo(o);s&&!Jo(s);)i.unshift(s),s=Xo(s);s&&i.unshift(s),i.forEach((function(e){var n=ti(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var a=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));a&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:a})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var r=Xo(n);if(r){var o=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));o&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o})}}}},n}(Jr),_i=2;var wi,Ii,Si,Ci,ki,Ei=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,r){for(var o=e.split(\".\"),i=ui,s=0,a=o;s<a.length;s++){if(!(i=i[a[s]]))break}i?i(t,n,r):console.warn(\"unhandled protocol\",e)})),yi(this)}return e.prototype.getClientProxy=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZRuntimeHelper=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeComponentDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getDOMNodeDebugInfo=function(e,t,n){throw new Error(\"Method not implemented.\")},e.prototype.getDocumentNode=function(){throw new Error(\"Method not implemented.\")},e.prototype.flushUpdatedQueue=function(){throw new Error(\"Method not implemented.\")},e.prototype.resetZNodeActivatedState=function(){throw new Error(\"Method not implemented.\")},e.prototype.enableShadowRootElements=function(){throw new Error(\"Method not implemented.\")},e.prototype.getNextNodeId=function(){throw new Error(\"Method not implemented.\")},e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var r=_i++;this.fiberToIdMap.set(e,r),this.idToFiberMap.set(r,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new bi,this.overlayManager.bindBridge(this)),this.overlayManager},e}();function xi(){Si=new Se,ki=new Ei(Si),function(){i(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,E()];case 1:return t.sent(),M(window.AlipayJSBridge.startupParams||{})?[2]:(Ii=String(window.APVIEWID),wi=T(),(e=N(wi,Ii))?(Si.setUrl(e),S({onDebugPanelClick:function(){Si.close()},onDebugMaskButtonClick:function(){Ci.tryResume()}}),(Ci=new Ie(Si,wi,Ii)).setup(),Ci.resetAxmlVisitedState=function(){ki&&ki.resetFiberSerializedState()},[2]):[2])}}))}))}(),bi.initGlobalEventListener()}var Ti,Ni,Oi,Ai,Mi,Pi,Li=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},n.prototype.startDebugSession=function(){var t=this;if(e.prototype.startDebugSession.call(this),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var n=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){n.call(t.clientProxy.platform),t.checkHostBeforeAgentConnect()}}},n}(f),Di=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeHandler=[],t.isActive=!0,t.onCloseHandlerSet=new Set,t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.sendMessage=function(e,t,n){this.send(JSON.stringify({method:e,params:t}),n)},n.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},n.prototype.send=function(t,n){(this.isActive||n)&&e.prototype.send.call(this,t)},n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||A()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):k()},n.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler(t.method,t.params,(function(e,r){e?n.send(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.send(JSON.stringify({id:t.id,result:r}),!0)})):console.warn(\"invalid message: \",e))},n}(U);function Ri(){Oi=new Di,window.__APPXNG_DEVTOOL_HOOK__={init:Bi,connection:Oi},S({onDebugPanelClick:function(){Oi.close()},onDebugMaskButtonClick:function(){Ai.tryResume()}})}function Bi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mi=e[0],Pi=eo.apply(null,e),function(){var e;i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,E()];case 1:return n.sent(),Ni=String(window.APVIEWID),Ti=T(),(t=N(Ti,Ni))?(Oi.setUrl(t),(Ai=new Li(Oi,Ti,Ni)).setupWithClientProxy(Mi),Ai.resetAxmlVisitedState=function(){Pi&&Pi.resetZNodeActivatedState()},Pi&&window.AlipayJSBridge&&l(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&Pi.enableShadowRootElements(),[2]):[2]}}))}))}(),Pi}try{window.__BUGME_ON__||(window.__BUGME_ON__=!0,function(){var e=w(),t=\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0;if(t){var n=M(t);n?Ri():xi(),e.debug(\"[IDE] uniweb - isNg: \".concat(n))}else Ri(),xi(),e.debug(\"[DEBUG] uniweb - concurrent\")}())}catch(fe){console.error(fe)}}();","bugmeRPreview":"","bugmeWRemote":"(function(){\"use strict\";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var weakset,hasRequiredWeakset;function requireWeakset(){if(hasRequiredWeakset)return weakset;hasRequiredWeakset=1;var e=Date.now()%1e9;function t(t){this.name=\"__st\"+(1e9*Math.random()>>>0)+e+++\"__\",t&&t.forEach&&t.forEach(this.add,this)}var n=t.prototype;return n.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},n.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},n.has=function(e){return!!e[this.name]},weakset=t}var workerGlobal=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),globalImportScripts=workerGlobal.importScripts,globalAlipayJSBridge=workerGlobal.AlipayJSBridge,globalAlipayJSBridgeCall=globalAlipayJSBridge&&globalAlipayJSBridge.call,evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){},EPanelStatus,Debugger,DebuggerEvent,Runtime,RuntimeEvent,Page,Target,TargetEvent,EDevtoolProtocolErrorCode,EDevtoolProtocolTypePausedReason;!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(EPanelStatus||(EPanelStatus={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(Debugger||(Debugger={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}(DebuggerEvent||(DebuggerEvent={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(Runtime||(Runtime={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(RuntimeEvent||(RuntimeEvent={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(Page||(Page={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(Target||(Target={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(TargetEvent||(TargetEvent={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(EDevtoolProtocolErrorCode||(EDevtoolProtocolErrorCode={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(EDevtoolProtocolTypePausedReason||(EDevtoolProtocolTypePausedReason={}));var defineProperty=Object.defineProperty.bind(Object),defineProperties=Object.defineProperties.bind(Object),getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor.bind(Object),freeze=Object.freeze.bind(Object),objectKeys=Object.keys.bind(Object),__hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwnProperty(e,t){return __hasOwnProperty.call(e,t)}function __assign$1(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];for(var r in n)hasOwnProperty(n,r)&&(e[r]=n[r])}return e}var assignObject=Object.assign.bind(Object)||__assign$1,getOwnPropertyNames=Object.getOwnPropertyNames.bind(Object),createObject=Object.create.bind(Object),__setPrototypeOf=Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object);function setPrototypeOf(e,t){__setPrototypeOf?__setPrototypeOf(e,t):e.__proto__=t}var __getPrototypeOf=Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);function getPrototypeOf(e){return __getPrototypeOf?__getPrototypeOf(e):e.__proto__}var hasConsoleObject=\"object\"==typeof console,log=hasConsoleObject&&console.log?console.log.bind(console):function(){},warn=hasConsoleObject&&console.warn?console.warn.bind(console):function(){},error$1=hasConsoleObject&&console.error?console.error.bind(console):function(){},isFunctionNameConfigurable=getOwnPropertyDescriptor(hasOwnProperty,\"name\").configurable,HostAPI=Object.freeze({__proto__:null,assignObject:assignObject,createObject:createObject,defineProperties:defineProperties,defineProperty:defineProperty,error:error$1,freeze:freeze,getOwnPropertyDescriptor:getOwnPropertyDescriptor,getOwnPropertyNames:getOwnPropertyNames,getPrototypeOf:getPrototypeOf,hasOwnProperty:hasOwnProperty,isFunctionNameConfigurable:isFunctionNameConfigurable,log:log,objectKeys:objectKeys,setPrototypeOf:setPrototypeOf,warn:warn});function noop(){}var DEBUG_TAG=\"[boatman]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];error$1.apply(HostAPI,[DEBUG_TAG].concat(e))}var debug=noop,isAppXImportHooked$1=!1,appxLoadedCallbacks$1=[];function runAfterAppx(e){if(void 0!==workerGlobal.AFAppX)e();else if(appxLoadedCallbacks$1.push(e),!isAppXImportHooked$1){isAppXImportHooked$1=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[]}),1200)}}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var a=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var a=o.callback;if(a&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)}),o.pageInfo){var i=o.pageInfo.init;i&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>2e7?void debug(\"abort send websocket message due to size:\",t.length,t.slice(0,1e3)):t}function createWeakSet$1(){return\"undefined\"==typeof WeakSet?new(requireWeakset()):new WeakSet}var getCircularReplacer$1=function(){var e=createWeakSet$1();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError(\"Generator is already executing.\");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}\"function\"==typeof SuppressedError&&SuppressedError;var FunctionApply=Function.prototype.apply.call.bind(Function.prototype.apply);function functionApply(e,t,n){return FunctionApply(e,t,n)}function throttle$1(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=functionApply(e,null,a),a=null};return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=l,f<=0||f>t?(r(s),s=null,c=g,i=functionApply(e,null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}var weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakMapKlass,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapPolyfillConstructor(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function r(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+a()+\".\"+a()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function o(t,r){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(r+\" method called on incompatible receiver \"+typeof t)}function a(){return Math.random().toString().substring(2)}return t(r.prototype,\"delete\",(function(e){if(o(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(r.prototype,\"get\",(function(e){if(o(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(r.prototype,\"has\",(function(e){if(o(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(r.prototype,\"set\",(function(e,r){if(o(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var a=e[this._id];return a&&a[0]===e?(a[1]=r,this):(t(e,this._id,[e,r]),this)})),t(r,\"_polyfill\",!0),r}function getWeakMapConstructorMayBePolyfill$1(){var e=\"undefined\"!=typeof WeakMap;WeakMapKlass=e?WeakMap:getWeakMapPolyfillConstructor()}function createWeakMap(){return WeakMapKlass||getWeakMapConstructorMayBePolyfill$1(),new WeakMapKlass}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}createWeakMap();var InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle$1((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName$1(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:i,result:r,bTime:p,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,a=t.option,i=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:a,startTime:i,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0],onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,a={aTime:o,args:n,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,a),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],p=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:p,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:i})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo$1(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}function extractBridgeCallback(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return handleCallbackUnion.bind(null,e,t,n,r)}function handleCallbackUnion(e,t,n,r,o){var a=!1;r?a=!!(o=normalizeErrorCode(o)).error:\"object\"==typeof o&&(a=\"error\"in o||\"errorMessage\"in o),a&&\"function\"==typeof t&&t(o),a||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}function normalizeErrorCode(e){return\"string\"==typeof e.error&&(e.error=parseInt(e.error,10)),0===e.error&&(delete e.error,delete e.errorMessage),e}var sharedRequestSyncIdBase=3e3,alipayBridge;function normalizeRemoteBridgeCallSyncPayload(e,t,n){var r=\"_sw_jsonp_\".concat(++sharedRequestSyncIdBase);workerGlobal[r]=function(e){workerGlobal[r]=null,n(e)};var o={action:e,callback:r,data:t};return JSON.stringify(o)}function normalizeRemoteBridgeCallUrl(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}function safeParseJSON(e){try{return JSON.parse(e)}catch(e){}}function invokeHostBridgeCallSync4KylinBridge(e,t){var n,r=normalizeRemoteBridgeCallUrl(normalizeRemoteBridgeCallSyncPayload(e,t,(function(e){n=e})));try{globalImportScripts(r)}catch(e){}return\"string\"==typeof n?safeParseJSON(n):n}\"object\"==typeof globalAlipayJSBridge&&(alipayBridge={call:function(e,t,n){globalAlipayJSBridgeCall(e,t,n)},callSync:function(e,t){return globalAlipayJSBridge.callSync?globalAlipayJSBridge.callSync(e,t):invokeHostBridgeCallSync4KylinBridge(e,t)}});var isAppXImportHooked=!1,appxLoadedCallbacks=[],appxBridge,appxBridgeReadyResolve;function callAfterAFAppX(e){if(\"undefined\"!=typeof AFAppX)e();else if(appxLoadedCallbacks.push(e),!isAppXImportHooked){isAppXImportHooked=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[]}),1200)}}var appxBridgeReadyPromise=new Promise((function(e){appxBridgeReadyResolve=e}));\"object\"==typeof my?(appxBridge=my,appxBridgeReadyResolve()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(appxBridge=AFAppX.bridge,appxBridgeReadyResolve()):callAfterAFAppX((function(){appxBridge=AFAppX.bridge,appxBridgeReadyResolve()}));var bootstraped=!1;function ensureAppxBootstrap(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return bootstraped?[3,2]:[4,appxBridgeReadyPromise];case 1:return e.sent(),[2,new Promise((function(e){var t=function(){appxBridge.call(\"getStartupParams\"),bootstraped=!0,e()};try{t()}catch(e){setTimeout(t,600)}}))];case 2:return[2]}}))}))}function call(e,t){if(alipayBridge){var n=t.success,r=t.fail,o=t.complete,a=__rest(t,[\"success\",\"fail\",\"complete\"]),i=extractBridgeCallback(n,r,o,!0);alipayBridge.call(e,a,(function(e){i&&i(e)}))}else appxBridge?appxBridge.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}function isInPluginContext(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"==typeof getApp}function isInBizContext(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp}var reiOS=/iPhone|iPad|iOS/i,finalPlatformType;function getUserAgent(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function getPlatformType(){if(finalPlatformType)return finalPlatformType;if(\"undefined\"!=typeof navigator){var e=getUserAgent();finalPlatformType=e.indexOf(\"Android\")>-1?2:e.match(reiOS)?1:0}else finalPlatformType=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return finalPlatformType}function isIOS(){return 1===getPlatformType()}function isLyra(){return/LyraVM/i.test(getUserAgent())}var Event=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function createEvent4WebEngine(e,t){var n,r,o=t.param,a=t.viewId+\"\";o&&\"object\"==typeof o&&2===getPlatformType()?(n=o.data,o.type,r=__rest(o,[\"data\",\"type\"])):n=o,n?n.instanceId=a:n={instanceId:a};var i=new Event(e,n,1);if(r)try{Object.assign(i,r)}catch(e){}return i}var EventListener=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var a=0;a<o.length;a++){if(!(0,o[a])(e))return}for(var i=0,s=r;i<s.length;i++){if(s[i].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}(),EventManger=function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,(isInPluginContext()||isInBizContext())&&error$1(\"EventManger is not work in\",\"isInBizContext\"),this.globalEventListener=new EventListener(\"workerGlobal\",workerGlobal),this.documentEventListeners=new EventListener(\"document\",workerGlobal&&workerGlobal.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=createEvent4WebEngine(r,n),a=e.eventMap[r];a&&a.forEach((function(e){e(o)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return workerGlobal&&workerGlobal.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(log(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(log(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){log(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(log(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;if(!isInPluginContext()&&!isInBizContext())return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)};appxBridge.on(e,t)},e.prototype.off=function(e,t){isInPluginContext()||isInBizContext()?appxBridge.off(e,t):this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}(),eventManager$1=new EventManger;function getEventManager(){return eventManager$1}var eventManager=getEventManager(),BridgeWebSocketTask=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;eventManager.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return __assign({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){call(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}(),EWorkerAppEvent$1;function connectSocket(e){var t;if(isInPluginContext()||isInBizContext())return appxBridge.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:\"remote_debug\";delete e.__taskIdPrefix;var r=new BridgeWebSocketTask(n);return call(\"connectSocket\",r.getParam(e)),r}!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(EWorkerAppEvent$1||(EWorkerAppEvent$1={}));var abridge={callSync:function(e,t){return alipayBridge?alipayBridge.callSync(e,t):appxBridge?appxBridge.callSync(e,t):void 0},showRemoteDebugMask:function(e){return alipayBridge?alipayBridge.call(\"showRemoteDebugMask\",e,(function(){})):appxBridge?appxBridge.call(\"showRemoteDebugMask\",e):void 0},getStartupParams:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,ensureAppxBootstrap()];case 1:return e.sent(),[2,new Promise((function(e){appxBridge.call(\"getStartupParams\",{success:function(t){e(t)}})}))]}}))}))},getStartupParamsSync:function(){return alipayBridge&&alipayBridge.callSync?alipayBridge.callSync(\"getStartupParams\"):appxBridge&&appxBridge.callSync?appxBridge.callSync(\"getStartupParams\"):{}},connectSocket:function(e){return connectSocket(e)},alert:function(e){alert(e)}};function getStartupParamsFromGlobal(){return\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0}function getStartupParamsSync(){var e=getStartupParamsFromGlobal();if(e)return e;try{return abridge.getStartupParamsSync()}catch(e){return{}}}var AgentContext=function(){this.channelConfigKey=\"0\",this.userAgent=getUserAgent(),this.isIOS=isIOS(),this.isLyra=isLyra(),this.startupParams=getStartupParamsSync(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,hasPostData:!!e.postBody||void 0,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,a=getTimestamp(),i=a-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:i,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,a-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Network.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,a=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:a||-1,sslStart:a-o||-1,sslEnd:a||-1,sendStart:a?-1:1e-4,sendEnd:a?-1:1e-4,receiveHeadersEnd:a+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e}(),globalInjector,Injector=function(){function e(){this.isApplogEnabled=!1}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),EWorkerAppEvent,EBugmePanelId;function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg$1(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function throttle(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var p=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var g=Date.now();c||!1!==o.leading||(c=g);var f=t-(g-c);return a=l,f<=0||f>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(p,f)),i}}function debounce(e,t,n,r){var o;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r(o),o=n((function(){e.apply(null,a)}),t)}}!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var throttledEmitDataChangedEvent=throttle((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1}),EUnserializableValue;function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName(e.args[0]);if(!n)return;sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(e.args[0]),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg$1(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}function isArrayBuffer(e){return\"[object ArrayBuffer]\"===Object.prototype.toString.call(e)}function isArrayBufferInstance(e){return e instanceof ArrayBuffer}function isNegativeZero(e){return 0===e&&1/e==-1/0}!function(e){e[1/0]=\"Infinity\",e[-1/0]=\"-Infinity\",e.NaN=\"NaN\",e[\"-0\"]=\"-0\"}(EUnserializableValue||(EUnserializableValue={}));var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():isArrayBufferInstance(e)?this.mapArrayBuffer(e,\"table\"===t):this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapArrayBuffer=function(e,t){var n=this,r={byteLength:e.byteLength},o=Object.keys(r),a=e.byteLength,i=this.objectStore.save(e),s=e.constructor?e.constructor.name:\"Object\",c=o.length>5&&!t,p=\"arraybuffer\",l=\"\".concat(s,\"(\").concat(a,\")\"),u={type:\"object\",className:s,description:l,objectId:i,preview:{type:\"object\",description:l,overflow:c,properties:(c?o.slice(0,5):o).map((function(e){return n.getPropertyPreview4AnyValue(e,r[e],t)})).filter(Boolean)}};return u.subtype=p,u.preview&&(u.preview.subtype=p),l&&(u.description=l,u.preview&&(u.preview.description=l)),u},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){var t,n;isNaN(e)?n=EUnserializableValue.NaN:e===1/0?n=EUnserializableValue.Infinity:e===-1/0?n=EUnserializableValue[-1/0]:isNegativeZero(e)?n=EUnserializableValue[\"-0\"]:t=e;var r={type:\"number\",value:t,description:String(e)};return n&&(r.unserializableValue=n),r},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,a=getObjectOwnPropertyDescriptors(e),i=Object.keys(a),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=i.length>5&&!t,l={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:p,properties:(p?i.slice(0,5):i).map((function(e){return o.getPropertyPreview4ObjectProperty(e,a[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(l.subtype=n,l.preview&&(l.preview.subtype=n)),r&&(l.description=r,l.preview&&(l.preview.description=r)),l},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\".concat(e.length,\")\");return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\".concat(t.length,\")\")};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\".concat(e.length,\")\"),overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'.concat(injectedScriptId,',\"id\":').concat(this.id,\"}\")},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);if(t){var n=Boolean(e.ownProperties),r={result:this.mapObject(t,n,Boolean(e.accessorPropertiesOnly))};return n&&this.hasInternalProperties(t)&&(r.internalProperties=this.getInternalProperties(t)),r}return{result:[]}},e.prototype.getInternalProperties=function(e){return isArrayBufferInstance(e)?[this.mapInternalProperties(\"[[ArrayBufferByteLength]]\",e.byteLength)]:[]},e.prototype.hasInternalProperties=function(e){return isArrayBuffer(e)},e.prototype.shouldSkipProto=function(e){return isArrayBuffer(e)},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),a=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return this.shouldSkipProto(e)||e.__proto__&&a.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],s={},c=e,p=!1,l=!0,u=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&i.push(r.mapResultOne(t,o,l))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,i.push(g.mapResultOne(\"__proto__\",t,l)))}c=c.__proto__,l=!1},g=this;c;)u();return i},e.prototype.mapInternalProperties=function(e,t){return{name:String(e),value:this.objectMapper.mapFromOne(t)}},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrides;function initConsoleOverrides(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrides=new ConsoleOverrides).overrideConsole()}function getConsoleOverrides(){return globalConsoleOverrides}var ConsoleOverrides=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMessage({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMessage({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{if(\"string\"==typeof t[0]&&/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/.test(t[0]))return r.apply(null,t);var o=new Error;o.stack&&e.sendMessage(e.parser.consoleAPICalled(n,o.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMessage=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessages(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessages=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessages())}),1e3)}},e}(),requirePluginName=\"requirePlugin\";function hookRequirePlugin(){var e=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);if(!e||e.configurable){var t;e&&(t=workerGlobal.requirePlugin);var n,r={get:function(e,t,n){return\"async\"===t?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e[t];if(\"function\"==typeof o){var a=Date.now();return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCall\",params:{aTime:a,context:{apiName:requirePluginName+\".async\",option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}}),o.apply(void 0,n).then((function(e){return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:e?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===a?a+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e})).catch((function(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===a?a+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e}))}return o}:e[t]},apply:function(e,t,n){var r=Date.now();sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:r,context:{apiName:requirePluginName,option:{arguments:n}}},ext:{origin:EBugmePanelId.AppLog}});try{var o=e.apply(void 0,n);return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:o?void 0:[{error:1,errorMessage:\"未找到对应插件\"}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),o}catch(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===r?r+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}};try{t&&(n=new Proxy(t,r))}catch(e){}Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return n||t},set:function(e){n=(t=e)?new Proxy(t,r):void 0},enumerable:!0,configurable:!0})}}var channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},1:{openchannel:\"miniprogram.alipay.com\",hpmweb:\"hpmweb.alipay.com\"},2:{openchannel:\"openchannel-pre.alipay.com\",hpmweb:\"hpmweb-pre.alipay.com\"}},EventEmitter=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}},e.prototype.once=function(e,t){var n=this,r=this.on(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];r(),t.apply(n,e)}));return r},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._listeners.has(e)&&__spreadArray([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),WebSocketBaseImpl=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=10485760,this.eventEmitter=new EventEmitter,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(){this.eventEmitter.emit(\"close\")},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):console.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.opened&&this.socket.close()},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketOpen=function(){var t=this;e.prototype.onSocketOpen.call(this),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this)},t.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),console.error(\"[DEBUG] connection onerror\",t)},t}(WebSocketBaseImpl),WebSocketNativeImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}return __extends(t,e),t.prototype.open=function(){var e=this;this._openInvoked||(this._openInvoked=!0,this.socketTask=abridge.connectSocket({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)})))},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength||(this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(WebSocketBaseImpl),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var SocketTaskImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl;function enable$3(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}var network=Object.freeze({__proto__:null,enable:enable$3,getResponseBody:getResponseBody});function enable$2(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrides();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrides();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function evaluate(payload){var consoleOverrides=getConsoleOverrides();if(consoleOverrides){var parser=consoleOverrides.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=\"\".concat(e.name,\": \").concat(e.message),getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,compileScript:compileScript,enable:enable$2,evaluate:evaluate,getProperties:getProperties}),stringify$1={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n}(stringify$1,stringify$1.exports);var stringifyExports=stringify$1.exports,stringify=getDefaultExportFromCjs(stringifyExports),sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&AFAppX.getCurrentPages?(sharedGetCurrentPages=AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var a=getInjector().getRuntime();t=null==a?callGetCurrentPages().filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0]:a.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0],t&&o&&t.setData(o)}function setComponentData(e){var t=e.params||{},n=t.targetId,r=t.data;if(-1!==n){var o=getInjector().getRuntime().getNav().getTopInstance().getComponentLogicInstance(n,!0);o&&o.publicInstance.setData(r)}}var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setComponentData:setComponentData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){AFAppX.bridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){AFAppX.bridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(e){AFAppX.bridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&AFAppX.bridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,clearStorage:clearStorage,getStorageInfo:getStorageInfo,removeStorage:removeStorage,setStorage:setStorage});function enable$1(){var e=getInjector();e.setApplogEnabled(!0),e.getMessageQueue().sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable$1});function getLoadManager(){var e=getInjector().getRuntime();if(\"object\"==typeof e){var t=\"function\"==typeof e.getControllableLoadManager&&e.getControllableLoadManager();if(t.addLoadHook)return t}}function enable(e){getLoadManager()?getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}}):getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,error:\"not supported\"})}function startInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.start(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function stopInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.stop(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function getAllSubPackages(e){var t;getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{roots:(null===(t=getLoadManager())||void 0===t?void 0:t.getAllSubPackages())||[]}})}function continueLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.continueLoadSubPackage(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function failLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.simulationSubPackageLoadFailed(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}var loadManager=Object.freeze({__proto__:null,continueLoadSubPackage:continueLoadSubPackage,enable:enable,failLoadSubPackage:failLoadSubPackage,getAllSubPackages:getAllSubPackages,startInterception:startInterception,stopInterception:stopInterception});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){AFAppX.bridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams(e){var t=getStartupParamsSync();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Applog:applog,Data:data,LoadManager:loadManager,Storage:storage,getStartupParams:getStartupParams,getSystemInfo:getSystemInfo,ping:ping});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Page:page,Runtime:runtime,Tiny:index}),WorkerSocket=function(){function e(e,t){var n=this;this.isMessageReceived=!1,this.messageBeforeReceived=[],this.socket=t||new SocketTaskImpl(e,{taskIdPrefix:\"remote_debug_tbwr\"}),this.socket.on(\"open\",(function(){n.socket.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()})),this.socket.on(\"message\",(function(e){var t;n.isMessageReceived||(n.isMessageReceived=!0,n.messageBeforeReceived.forEach((function(e){n.socket.send(e)})),n.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:LEAVE\"===e&&n.close())}var r=getProtocolHandler(t.method);r?r(t):n.socket.send({id:t.id,error:{code:-32e3,message:\"unsupported\"}})}))}return e.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.socket.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},e.prototype.open=function(){this.socket.open()},e.prototype.close=function(){this.socket.close()},e.prototype.send=function(e){this.socket.send(e)},e}();function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/(tyro\\/agent|bugme\\/channel\\/paused|bugme\\/channel\\/resume)$/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};e.data&&Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.onSubpackageLoaded=function(e){\"success\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageLoaded\",params:{root:e.rootName}}):\"loading\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageRequested\",params:{root:e.rootName}}):\"fail\"===e.status&&getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageFailed\",params:{root:e.rootName}})},e.prototype.listenDebugEvent4IOS=function(){var e,t=this,n=AFAppX.bridge;n.on(EWorkerAppEvent.DebugNetworkRequest,(function(e){t.onNetworkRequest(e.data)})),n.on(EWorkerAppEvent.DebugNetworkResponse,(function(e){t.onNetworkResponse(e.data)})),n.on(EWorkerAppEvent.DebugNetworkError,(function(e){t.onNetworkError(e.data)})),n.on(EWorkerAppEvent.DebugStorageChanged,(function(e){t.onStorageChanged(e.data)})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e.prototype.listenDebugEvent=function(){var e,t=this;AFAppX.bridge.on(EWorkerAppEvent.DebugConsole,(function(e){var n,r=e.data,o=r.type,a=r.content;try{n=JSON.parse(a)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:t.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:t.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:t.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:t.onStorageChanged(n)}})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;var e=AFAppX.bridge;if(/^1\\./.test(e.SDKVersion)){var t=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);e.on(EWorkerAppEvent.PageResume,t),e.on(EWorkerAppEvent.PagePause,t)}e.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),e.on(EWorkerAppEvent.DebugMaskButtonClick,this.onDebugMaskButtonClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.close()},e.prototype.onDebugMaskButtonClick=function(){},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).hpmweb;return\"\".concat(e,\"/bugme/client_w/\").concat(r)}var DebugAgent=function(){function e(){}return e.prototype.init=function(e){getGlobalWorkerEventListener().setup(),this.makeConnection(e)},e.prototype.makeConnection=function(e){var t=getInjector(),n=getChannelUrl(),r=new WorkerSocket(n,null==e?void 0:e.socketTaskImpl);t.setWorkerSocket(r),t.getAgentContext().isIOS?r.open():setTimeout((function(){r.open()}),1200)},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function getStaticPlugins(){var e=getStartupParamsSync().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));try{var n=getInjector().getRuntime().getMeta().getAppMeta().plugins||{};Object.entries(n).forEach((function(n){var r=n[0],o=n[1];o.lazy&&!e[r]&&t.push({plugin_id:\"\".concat(o.provider,\"(lazy)\"),deploy_version:\"Not Load\"})}))}catch(e){}return t}function printStaticPlugins(){var e=getStaticPlugins();e.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(e))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function getExtensionVersions(){var e=getInjector().getRuntime().getMiniExtensionManager();if(e.extensionVersions)return e.extensionVersions;if(e.getInitedMiniExtensionInfo){var t=e.getInitedMiniExtensionInfo(),n=new Map;return t.forEach((function(e){n.set(e.id,e.version||\"-\")})),n}return new Map}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getExtensionVersions();setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta();if(t){var n=void 0;if(\"function\"==typeof t.getAppMeta?n=t.getAppMeta():void 0!==t.meta&&(n=t.meta),n)return\"object\"==typeof n.plugins&&0!==Object.keys(n.plugins).length||n.useDynamicPlugins}return!1}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParamsSync())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager(),r=[];if(n.extensionVersions)n.extensionVersions.forEach((function(e,n){void 0===t[n]&&r.push({plugin_id:n,deploy_version:e})}));else if(n.getInitedMiniExtensionInfo){n.getInitedMiniExtensionInfo().forEach((function(e){if(void 0===t[e.id]){var n={plugin_id:e.id,deploy_version:e.version||\"-\"};r.push(n)}}))}console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}function main(e){if(!(\"object\"==typeof AFAppX&&AFAppX.Plugin||workerGlobal.__BUGME_ON__)){workerGlobal.__BUGME_ON__=!0;try{registerAppxHook(),initConsoleOverrides(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}}try{main()}catch(e){error(\"init error\",e)}})();","bugmeWPreview":"!function(){\"use strict\";var e=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),n=e.importScripts,t=e.AlipayJSBridge,r=t&&t.call;\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var o=\"~\",c=\"\\\\x\"+(\"0\"+o.charCodeAt(0).toString(16)).slice(-2),a=\"\\\\\"+c,i=new RegExp(c,\"g\"),u=new RegExp(a,\"g\"),p=new RegExp(\"(?:^|([^\\\\\\\\]))\"+a),f=[].indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},s=String;function l(e,n,t){return n instanceof Array?function(e,n,t){for(var r=0,o=n.length;r<o;r++)n[r]=l(e,n[r],t);return n}(e,n,t):n instanceof s?n.length?t.hasOwnProperty(n)?t[n]:t[n]=function(e,n){for(var t=0,r=n.length;t<r;e=e[n[t++].replace(u,o)]);return e}(e,n.split(o)):e:n instanceof Object?function(e,n,t){for(var r in n)n.hasOwnProperty(r)&&(n[r]=l(e,n[r],t));return n}(e,n,t):n}var g={stringify:function(e,n,t,r){return g.parser.stringify(e,function(e,n,t){var r,u,p=!1,s=!!n,l=[],g=[e],d=[e],y=[t?o:\"[Circular]\"],v=e,h=1;return s&&(u=\"object\"==typeof n?function(e,t){return\"\"!==e&&n.indexOf(e)<0?void 0:t}:n),function(e,n){return s&&(n=u.call(this,e,n)),p?(v!==this&&(r=h-f.call(g,this)-1,h-=r,g.splice(h,g.length),l.splice(h-1,l.length),v=this),\"object\"==typeof n&&n?(f.call(g,n)<0&&g.push(v=n),h=g.length,(r=f.call(d,n))<0?(r=d.push(n)-1,t?(l.push((\"\"+e).replace(i,c)),y[r]=o+l.join(o)):y[r]=y[0]):n=y[r]):\"string\"==typeof n&&t&&(n=n.replace(c,a).replace(o,c))):p=!0,n}}(e,n,!r),t)},parse:function(e,n){return g.parser.parse(e,function(e){return function(n,t){var r=\"string\"==typeof t;return r&&t.charAt(0)===o?new s(t.slice(1)):(\"\"===n&&(t=l(t,t,{})),r&&(t=t.replace(p,\"$1\"+o).replace(a,c)),e?e.call(this,n,t):t)}}(n))},parser:JSON},d=g,y=function(){return y=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},y.apply(this,arguments)};function v(e,n,t,r){if(void 0===r&&(r=!1),e||n||t)return h.bind(null,e,n,t,r)}function h(e,n,t,r,o){var c=!1;r?c=!!(o=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(o)).error:\"object\"==typeof o&&(c=\"error\"in o||\"errorMessage\"in o),c&&\"function\"==typeof n&&n(o),c||\"function\"!=typeof e||e(o),\"function\"==typeof t&&t(o)}\"function\"==typeof SuppressedError&&SuppressedError;var b,m=3e3;function I(t,r){var o,c=function(n,t,r){var o=\"_sw_jsonp_\".concat(++m);e[o]=function(n){e[o]=null,r(n)};var c={action:n,callback:o,data:t};return JSON.stringify(c)}(t,r,(function(e){o=e})),a=function(e){var n=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(n)}(c);try{n(a)}catch(e){}return\"string\"==typeof o?function(e){try{return JSON.parse(e)}catch(e){}}(o):o}\"object\"==typeof t&&(b={call:function(e,n,t){r(e,n,t)},callSync:function(e,n){return t.callSync?t.callSync(e,n):I(e,n)}});var _,A,O=!1,S=[];function C(e,n){for(var t=[],r=0,o=e.split(n);r<o.length;r++){var c=o[r];t.push(parseInt(c,10))}return t}function w(){return\"undefined\"==typeof AlipayJSBridge&&\"undefined\"!=typeof my&&\"undefined\"!=typeof getApp&&(my.SDKVersion&&-1===function(e,n){if(e&&n){for(var t=C(e,\".\"),r=C(n,\".\"),o=0,c=0,a=void 0,i=void 0;c<t.length;c++){if((a=r[c]||0)>(i=t[c]||0)){o=-1;break}if(a<i){o=1;break}}return o}return 0}(my.SDKVersion,\"2.0.0\"))}function P(e,n,t){var r=t.fetch,o=t.AlipayJSBridge&&t.AlipayJSBridge.call;if(r){var c=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:n}}));r(\"https://alipay.kylinBridge/?data=\".concat(c),{mode:\"no-cors\"}).then((function(){})).catch((function(){}))}else o&&(w()?o(e,n):o(\"internalAPI\",{method:e,param:n}))}function j(e,n){return void 0===n?\"©undefined\":null===n?\"©null\":n===-1/0?\"©-Infinity\":n===1/0?\"©Infinity\":\"number\"==typeof n&&isNaN(n)?\"©NaN\":\"function\"==typeof n?\"©Function\":n}function B(n){n.document&&n.document.addEventListener&&n.document.addEventListener(\"push\",(function(t){var r=t.data;if(r&&\"onMessageFromVConsole\"===r.func){var o;try{var c=r.param.content||r.param.data.content;if(!c)return;o=JSON.parse(c)}catch(e){return}if(o.fromVConsoleToWorker&&\"exec\"===o.method)try{!function(n,t){var r=\"var res = \".concat(n.script,\";console.log(res);\");(function(e){return'sendBack((typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop().data);return;'===e})(n.script)&&(r=\"var res = \".concat(F,\";console.log(res);\"));var o=t.Function,c=t.__eval;\"function\"==typeof c?c(E.replace(/\\$requestId\\$/g,n.requestId).replace(\"$code$\",r)):new o(\"requestId\",\"sendBack\",r)(n.requestId,(function(t){return e.responseToVConsole(n.requestId,t)}))}(o,n)}catch(e){console.warn(\"bugme execute script error\",e)}}}))}new Promise((function(e){A=e})),\"object\"==typeof my?(_=my,A()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(_=AFAppX.bridge,A()):function(t){if(\"undefined\"!=typeof AFAppX)t();else if(S.push(t),!O){O=!0;var r=n||e.importScripts;r?e.importScripts=function(n){r(n),/af-appx\\.worker\\.min\\.js$/.test(n)&&(S.forEach((function(e){return e()})),S=[],e.importScripts=r)}:setTimeout((function(){S.forEach((function(e){return e()})),S=[]}),1200)}}((function(){_=AFAppX.bridge,A()}));var E=\"(function(requestId, sendBack){$code$})($requestId$, function(returnValue){responseToVConsole($requestId$, returnValue)})\",F='\\nsendBack((function(){\\n var pageLogicInstance = typeof getBugMeContext().getTopPageInstance !== \"undefined\" ? getBugMeContext().getTopPageInstance() : undefined;\\n var pagePublicInstance = pageLogicInstance && pageLogicInstance.getPageLogicInstance().publicInstance || (typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop()\\n var pageData = pagePublicInstance && pagePublicInstance.data;\\n if (getBugMeContext().Widget === true && pageLogicInstance) {\\n var components = pageLogicInstance.logics.slice(1);\\n return components.reduce(function(prev, c){\\n if (!c.parentComponentId) {\\n prev.push({\\n props: c.publicInstance.props,\\n data: c.publicInstance.data\\n });\\n }\\n return prev;\\n }, []);\\n }\\n return pageData;\\n})());return;\\n';var x,T,N={AlipayJSBridge:{call:function(e,n){if(b){var t=n.success,r=n.fail,o=n.complete,c=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(n,[\"success\",\"fail\",\"complete\"]),a=v(t,r,o,!0);b.call(e,c,(function(e){a&&a(e)}))}else _?_.call(e,n):console.warn(\"[ERROR] error when call \".concat(e,\": AlipayJSBridge not found\"))}},document:e.document,Function:e.Function,fetch:e.fetch},k=function(){return N};e.getBugMeContext=k,T=function(){var n=k();!function(n){x=n,e.responseToVConsole=function(e,n){P(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:d.stringify({requestId:e,returnValue:n},j)},x)}}(n),B(n),function(e){Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(n,t){var r=console[t];return n[t]={value:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r.apply(console,n);try{P(\"tinyDebugConsole\",{content:d.stringify(n.map((function(e){return e instanceof Error?\"\".concat(e.name,\": \").concat(e.message):e})),j),type:\"console_\".concat(t)},e)}catch(e){r(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},n}),{}))}(n)},e.__BUGME_ON__||(e.__BUGME_ON__=!0,e.AFAppX&&!0===e.AFAppX.__WAIT_UNTIL_BUGME_CONTEXT_READY__?function(n){e.__SET_BUGME_CONTEXT__=function(e){var t;t=e,N=y(y({},N),t),n()}}(T):T())}();","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();"}
1
+ {"bugmeRRemote":"!function(){\"use strict\";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(\"function\"!=typeof n&&null!==n)throw new TypeError(\"Class extends value \"+String(n)+\" is not a constructor or null\");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var n,o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function r(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function i(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))}function a(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function s(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function c(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}\"function\"==typeof SuppressedError&&SuppressedError,function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(n||(n={}));var u={0:{openchannel:\"openchannel.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},1:{openchannel:\"miniprogram.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},2:{openchannel:\"openchannel-pre.alipay.com\",starlinkgw:\"starlinkgw-pre.alipay.com/boatman\"}};function l(e){return!0===e||\"yes\"===e||\"YES\"===e}function d(e,t){for(var n=[],o=0,r=e.split(t);o<r.length;o++){var i=r[o];n.push(parseInt(i,10))}return n}var p=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),h=p.importScripts,f=p.AlipayJSBridge,g=f&&f.call;function m(){return\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0}\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var v,y=/iPhone|iPad|iOS/i;function b(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function w(){return/LyraVM/i.test(b())||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}var S,C,_,I,x,P,k,E,O,M,N=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function T(e,t){var n,o,i=t.param,a=t.viewId+\"\";i&&\"object\"==typeof i&&2===function(){if(v)return v;if(\"undefined\"!=typeof navigator){var e=b();v=e.indexOf(\"Android\")>-1?2:e.match(y)?1:0}else v=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return v}()?(n=i.data,i.type,o=r(i,[\"data\",\"type\"])):n=i,n?n.instanceId=a:n={instanceId:a};var s=new N(e,n,1);if(o)try{Object.assign(s,o)}catch(e){}return s}function A(e,t,n,o){if(void 0===o&&(o=!1),e||t||n)return D.bind(null,e,t,n,o)}function D(e,t,n,o,r){var i=!1;o?i=!!(r=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(r)).error:\"object\"==typeof r&&(i=\"error\"in r||\"errorMessage\"in r),i&&\"function\"==typeof t&&t(r),i||\"function\"!=typeof e||e(r),\"function\"==typeof n&&n(r)}!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(S||(S={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(C||(C={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}(_||(_={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(I||(I={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(x||(x={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(P||(P={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(k||(k={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(E||(E={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(O||(O={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(M||(M={})),Object.defineProperty.bind(Object),Object.defineProperties.bind(Object);var R=Object.getOwnPropertyDescriptor.bind(Object);Object.freeze.bind(Object),Object.keys.bind(Object);var L=Object.prototype.hasOwnProperty;function B(e,t){return L.call(e,t)}Object.assign.bind(Object),Object.getOwnPropertyNames.bind(Object),Object.create.bind(Object),Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object),Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);var j=\"object\"==typeof console,F=j&&console.log?console.log.bind(console):function(){};j&&console.warn&&console.warn.bind(console);var z=j&&console.error?console.error.bind(console):function(){};R(B,\"name\").configurable;var U,H=3e3;function V(e,t){var n,o=function(e,t,n){var o=\"_sw_jsonp_\".concat(++H);p[o]=function(e){p[o]=null,n(e)};var r={action:e,callback:o,data:t};return JSON.stringify(r)}(e,t,(function(e){n=e})),r=function(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}(o);try{h(r)}catch(e){z(\"invokeHostBridgeCallSync4KylinBridge\",e)}return\"string\"==typeof n?function(e){try{return JSON.parse(e)}catch(e){}}(n):n}\"object\"==typeof f&&(U={call:function(e,t,n){g(e,t,n)},callSync:function(e,t){return f.callSync?f.callSync(e,t):V(e,t)}});var W,G,Z=!1,q=[];var Y=new Promise((function(e){G=e}));\"object\"==typeof my?(W=my,G()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(W=AFAppX.bridge,G()):function(e){if(\"undefined\"!=typeof AFAppX)e();else if(q.push(e),!Z){Z=!0;var t=h||p.importScripts;t?p.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(q.forEach((function(e){return e()})),q=[],p.importScripts=t)}:setTimeout((function(){q.forEach((function(e){return e()})),q=[]}),3e3)}}((function(){\"object\"==typeof my?(W=my,G()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge&&(W=AFAppX.bridge,G())}));var Q=!1;function X(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return Q?[3,2]:[4,Y];case 1:return e.sent(),[2,new Promise((function(e){var t=function(){W.call(\"getStartupParams\"),Q=!0,e()};try{t()}catch(e){setTimeout(t,600)}}))];case 2:return[2]}}))}))}function K(e,t){if(U){var n=t.success,o=t.fail,i=t.complete,a=r(t,[\"success\",\"fail\",\"complete\"]),s=A(n,o,i,!0);U.call(e,a,(function(e){s&&s(e)}))}else W?W.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": js bridge does not exists\"))}function J(){if(\"object\"==typeof AFAppX&&AFAppX.Plugin&&void 0!==W&&\"function\"==typeof W.getPluginIdSync)try{return W.getPluginIdSync().pluginId}catch(e){Ee().silentLog(\"error\",\"getPluginIdSync error\",e)}return\"\"}function $(){var e=\"\",t=J();return(e+=t?\"p-\"+t:\"m\")&&(e+=\"-\"+Math.random().toString(36).substring(2,8)),e}function ee(){return\"undefined\"==typeof AlipayJSBridge&&void 0!==W}function te(){return\"undefined\"==typeof AlipayJSBridge&&void 0!==W&&\"undefined\"!=typeof getApp&&(W.SDKVersion&&-1===function(e,t){if(e&&t){for(var n=d(e,\".\"),o=d(t,\".\"),r=0,i=0,a=void 0,s=void 0;i<n.length;i++){if((a=o[i]||0)>(s=n[i]||0)){r=-1;break}if(a<s){r=1;break}}return r}return 0}(W.SDKVersion,\"2.0.0\"))}var ne=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,o=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var r=function(e){o.dispatchEvent(e)};this._callbackGlobalMap.set(e,r),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,r)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var o=this._callbackGlobalMap.get(e);o&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,o),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,o){e.fn===t&&n.splice(o,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var o=this.callbackHandlers.get(n),r=this.callbackBeforeDispatchInterceptor.get(n);if(r&&r.length>0)for(var i=0;i<r.length;i++){if(!(0,r[i])(e))return}for(var a=0,s=o;a<s.length;a++){if(s[a].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}();var oe,re,ie=new(function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,this.globalEventListener=new ne(\"workerGlobal\",p),this.documentEventListeners=new ne(\"document\",p&&p.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var o=n.func||\"beforeunload\",r=T(o,n),i=e.eventMap[o];i&&i.forEach((function(e){e(r)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return p&&p.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(F(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(F(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){F(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(F(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)}},e.prototype.off=function(e,t){this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}()),ae=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;ie.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return o({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){K(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}(),se=[],ce=0,ue=\"remote_debug\";function le(e){if(e.duration||(e.duration=1e4),ee())return W.showToast(e);K(\"toast\",o({},e))}!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(oe||(oe={}));var de={callSync:function(e,t){return U?U.callSync(e,t):W?W.callSync(e,t):void 0},showRemoteDebugMask:function(e){return U?U.call(\"showRemoteDebugMask\",e,(function(){})):W?W.call(\"showRemoteDebugMask\",e):void 0},getStartupParams:function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return re?[2,re]:(e=m())?(re=e,[2,e]):[4,X()];case 1:return t.sent(),[2,new Promise((function(e){W.call(\"getStartupParams\",{success:function(t){re=t,e(t)}})}))]}}))}))},getStartupParamsSync:function(){if(re)return re;var e,t=m();return t?(re=t,t):(U&&U.callSync?e=U.callSync(\"getStartupParams\"):W&&W.callSync&&(e=W.callSync(\"getStartupParams\")),e||(e={}),e)},connectSocket:function(e){return function(e){var t;if(e.__taskIdPrefix||(e.__taskIdPrefix=ue),ee())return se.push(\"\".concat(ue).concat(++ce)),W.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:ue;delete e.__taskIdPrefix;var o=new ae(n);return se.push(o.id),K(\"connectSocket\",o.getParam(e)),o}(e)},alert:function(e){alert(e)}};var pe=function(){};var he,fe,ge,me=\"__weak_set_key__yek_tes_kaew__\",ve=1;function ye(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function o(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function r(t,o){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(o+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(o.prototype,\"delete\",(function(e){if(r(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(o.prototype,\"get\",(function(e){if(r(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(o.prototype,\"has\",(function(e){if(r(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(o.prototype,\"set\",(function(e,o){if(r(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=o,this):(t(e,this._id,[e,o]),this)})),t(o,\"_polyfill\",!0),o}function be(){var e=\"undefined\"!=typeof Map;he=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,o=n.indexOf(e);if(-1===o){var r=n.push(e)-1;this.valueList[r]=t}else this.valueList[o]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),o=t.length,r=0;r<o;r++){var i=t[r];e(n[r],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function we(){return he||be(),new he}function Se(){var e;return fe||(e=\"undefined\"!=typeof WeakMap,fe=e?WeakMap:ye()),new fe}function Ce(){var e=\"undefined\"!=typeof WeakSet;ge=e?WeakSet:function(){function e(){this.elementKey=me+ve++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function _e(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){return(e=m())?[2,e]:[2,de.getStartupParams()]}))}))}function Ie(){var e=m();if(e)return e;try{return de.getStartupParamsSync()}catch(e){return{}}}function xe(e){return void 0===e&&(e=300),new Promise((function(t){setTimeout((function(){t()}),e)}))}var Pe=function(){function e(e,t,n){this.prefix=t,this.options=n,this.message=[];var o=\"__bm_log\".concat(e,\"__message__\");p[o]=this.message}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.log.apply(console,c([this.prefix],e,!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.debug.apply(console,c([this.prefix],e,!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.error.apply(console,c([this.prefix],e,!1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.warn.apply(console,c([this.prefix],e,!1))},e.prototype.silentLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e)},e}();function ke(){return p.__logger__||(p.__logger__=new Pe(\"r\",\"[boatman] [render]\",{writeToConsole:!1})),p.__logger__}function Ee(){return p.__worker_logger__||(p.__worker_logger__=new Pe(\"w\",\"[boatman] [worker]\",{writeToConsole:!1})),p.__worker_logger__}function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var Me=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)},Ne=\"object\"==typeof global&&global&&global.Object===Object&&global,Te=\"object\"==typeof self&&self&&self.Object===Object&&self,Ae=Ne||Te||Function(\"return this\")(),De=Ae,Re=function(){return De.Date.now()},Le=/\\s/;var Be=function(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t},je=Be,Fe=/^\\s+/;var ze=function(e){return e?e.slice(0,je(e)+1).replace(Fe,\"\"):e},Ue=Ae.Symbol,He=Ue,Ve=Object.prototype,We=Ve.hasOwnProperty,Ge=Ve.toString,Ze=He?He.toStringTag:void 0;var qe=function(e){var t=We.call(e,Ze),n=e[Ze];try{e[Ze]=void 0;var o=!0}catch(e){}var r=Ge.call(e);return o&&(t?e[Ze]=n:delete e[Ze]),r},Ye=Object.prototype.toString;var Qe=qe,Xe=function(e){return Ye.call(e)},Ke=Ue?Ue.toStringTag:void 0;var Je=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":Ke&&Ke in Object(e)?Qe(e):Xe(e)},$e=function(e){return null!=e&&\"object\"==typeof e};var et=ze,tt=Me,nt=function(e){return\"symbol\"==typeof e||$e(e)&&\"[object Symbol]\"==Je(e)},ot=/^[-+]0x[0-9a-f]+$/i,rt=/^0b[01]+$/i,it=/^0o[0-7]+$/i,at=parseInt;var st=Me,ct=Re,ut=function(e){if(\"number\"==typeof e)return e;if(nt(e))return NaN;if(tt(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=tt(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=et(e);var n=rt.test(e);return n||it.test(e)?at(e.slice(2),n?2:8):ot.test(e)?NaN:+e},lt=Math.max,dt=Math.min;var pt=function(e,t,n){var o,r,i,a,s,c,u=0,l=!1,d=!1,p=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");function h(t){var n=o,i=r;return o=r=void 0,u=t,a=e.apply(i,n)}function f(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=i}function g(){var e=ct();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?dt(n,i-(e-u)):n}(e))}function m(e){return s=void 0,p&&o?h(e):(o=r=void 0,a)}function v(){var e=ct(),n=f(e);if(o=arguments,r=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),l?h(e):a}(c);if(d)return clearTimeout(s),s=setTimeout(g,t),h(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=ut(t)||0,st(n)&&(l=!!n.leading,i=(d=\"maxWait\"in n)?lt(ut(n.maxWait)||0,t):i,p=\"trailing\"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=c=r=s=void 0},v.flush=function(){return void 0===s?a:m(ct())},v},ht=pt,ft=Me;var gt=Oe((function(e,t,n){var o=!0,r=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");return ft(n)&&(o=\"leading\"in n?!!n.leading:o,r=\"trailing\"in n?!!n.trailing:r),ht(e,t,{leading:o,maxWait:t,trailing:r})})),mt=function(){function e(e,t,n){var o=this;this.connection=e,this.uuid=t,this.agentId=n,this.logger=ke(),this.onResume=function(){o.logger.log(\"on resume, activate connection, this.connection.isSocketOpened: \".concat(o.connection.isSocketOpened)),o.connection.activate(),o.connection.isSocketOpened||o.checkHostBeforeAgentConnect()},this.onPageResume=function(){o.connection.activate(),o.emitDocumentUpdated()},this.onPagePause=function(){o.throttledPageResume.cancel(),o.connection.inActivate(),o.resetAxmlVisitedState()},this.throttledPageResume=gt(this.onPageResume,100,{leading:!1})}return e.prototype.tryResume=function(){var e=this;this.connection.isActivated&&this.getResumeUrl().then((function(t){e.request(t,{headers:{\"channel-id\":\"boat_\".concat(e.uuid)}}).then((function(t){return i(e,void 0,void 0,(function(){return a(this,(function(e){try{if(this.logger.log(\"bugme try resume response\",t),JSON.parse(t||\"{}\").success)return this.logger.log(\"bugme resume boatman success\"),[2]}catch(e){this.logger.error(\"bugme resume boatman error\",e)}return[2]}))}))}))}))},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();this.getCheckHostUrl().then((function(t){e.request(t).then((function(t){return i(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:try{if(this.logger.log(\"bugme check host response\",t),JSON.parse(t||\"{}\").status)return this.connection.open(),this.throttledPageResume(),[2]}catch(e){this.logger.error(\"bugme check host error\",e)}return[4,xe()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))}))}))}},e.prototype.emitDocumentUpdated=function(){this.connection.send(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e}(),vt=function(){var e,t,n=_t();return n.startsWith(\"wss\")?(e=\"https\",t=n.split(\"wss://\")[1]):n.startsWith(\"ws\")&&(e=\"http\",t=n.split(\"ws://\")[1]),\"\".concat(e,\"://\").concat(t,\"/bugme\")},yt=function(e){function o(t,n,o){var r=e.call(this,t,n,o)||this;return r.connection=t,r.uuid=n,r.agentId=o,t.addOnCloseHandler((function(){return i(r,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,xe()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),r.startDebugSession=r.startDebugSession.bind(r),r}return t(o,e),o.prototype.request=function(e,t){return function(e,t){return void 0===t&&(t={method:\"GET\",timeout:5e3}),i(void 0,void 0,void 0,(function(){var n;return a(this,(function(o){return(n=new XMLHttpRequest).timeout=t.timeout,n.open(t.method||\"GET\",e),Object.keys(t.headers||{}).forEach((function(e){n.setRequestHeader(e,t.headers[e])})),n.send(),[2,new Promise((function(e,t){n.onloadend=function(){e(n.responseText)},n.onerror=function(){t(n.responseText)}}))]}))}))}(e,t)},o.prototype.getCheckHostUrl=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){return e=vt(),[2,\"\".concat(e,\"/channel/checkHost?id=\").concat(this.uuid)]}))}))},o.prototype.getResumeUrl=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){return e=vt(),[2,\"\".concat(e,\"/channel/resume\")]}))}))},o.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(n.hashchange,this.startDebugSession)},o.prototype.startDebugSession=function(){window.removeEventListener(n.hashchange,this.startDebugSession),document.addEventListener(n.pageResume,this.throttledPageResume),document.addEventListener(n.pagePause,this.onPagePause),document.addEventListener(n.resume,this.onResume)},o}(mt);function bt(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return p.AlipayJSBridge?[2]:[2,new Promise((function(e){\"undefined\"!=typeof document&&document.addEventListener&&document.addEventListener(\"AlipayJSBridgeReady\",e)}))]}))}))}function wt(){if(\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__)return __BUGME_EXTERNAL_CHANNEL__;var e=m();return null==e?void 0:e.channelId}function St(e,t){return\"string\"==typeof __BUGME_EXTERNAL_URL__&&/^wss?:\\/\\//.test(__BUGME_EXTERNAL_URL__)?__BUGME_EXTERNAL_URL__:e&&t?Ct(_t(),e,t):\"\"}function Ct(e,t,n){return\"\".concat(e,\"/bugme/agent/\").concat(t,\"?agentId=\").concat(n)}function _t(){var e=m(),t=null==e?void 0:e.remoteCh,n=null==e?void 0:e.channel;return n||\"wss://\"+(u[t]||u[0]).starlinkgw}function It(e){return l(e.appxRouteFramework)}function xt(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var Pt=function(){function e(e,t){void 0===t&&(t=\"\"),this.locale=e,this.prefix=t,this._messageBundle={}}return e.getLocaleFromNavigator=function(){var e=b();if(e.includes(\"Language\")){var t=e.match(/Language\\/([\\w-]+)/);if(t)return xt(t[1])}return\"undefined\"!=typeof navigator&&navigator.language?xt(navigator.language):xt(\"enUS\")},e.prototype.setMessageBundle=function(e){this._messageBundle=e},Object.defineProperty(e.prototype,\"i18nMessages\",{get:function(){return this._messageBundle[xt(this.locale)]},enumerable:!1,configurable:!0}),e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):\"string\"==typeof t?t:e},e.prototype.formatWithPrefix=function(e){return\"[\".concat(this.prefix,\"] \").concat(this.format(e))},e.prototype.format2=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.i18nMessages[e];if(\"string\"==typeof o)return o.replace(/{(\\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}));throw new Error(\"format2 only support string\")},e}(),kt={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},Et={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"};var Ot=function(){var e=new Pt(Pt.getLocaleFromNavigator());return e.setMessageBundle({zhCN:kt,enUS:Et}),e}();function Mt(e,t,n,o){var r=n.originalFetch,i=n.originalCall;if(r){var a=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:t}}));r(\"https://alipay.kylinBridge/?data=\".concat(a),{mode:\"no-cors\"}).then((function(e){o(e)})).catch((function(){}))}else i&&(te()?i(e,t,o):i(\"internalAPI\",{method:e,param:t},o))}var Nt=\"onExitApp\",Tt=function(){function e(){this.subscribers={},this.locks={}}return e.prototype.getSubscribers=function(e){return this.subscribers[e]},e.prototype.requireLock=function(e){return!this.locks[e]&&(this.locks[e]=!0,!0)},e.prototype.releaseLock=function(e){this.locks[e]=!1},e.prototype.subscribe=function(e,t){this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t)},e.prototype.unsubscribe=function(e,t){if(this.subscribers[e]){var n=this.subscribers[e].indexOf(t);-1!==n&&this.subscribers[e].splice(n,1)}},e.prototype.dispatch=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.subscribers[e]&&this.subscribers[e].forEach((function(e){e.apply(void 0,t)}))},e}();var At=Ee(),Dt=function(e,t){try{\"undefined\"!=typeof document&&document.addEventListener?document.addEventListener(e,t):W.on(e,t)}catch(e){z(\"🚀 ~ file: exit-app.ts:19 ~ addEventListener ~ error:\",e)}},Rt=function(e,t){try{\"undefined\"!=typeof document&&document.removeEventListener?document.removeEventListener(e,t):W.off(e,t)}catch(e){F(\"🚀 ~ file: exit-app.ts:31 ~ removeEventListener ~ error:\",e)}};function Lt(e){At.log(\"setupDebugMaskClick\");var t=function(){At.log(\"DebugMaskButtonClick\"),e()};return Dt(oe.DebugMaskButtonClick,t),function(){Rt(oe.DebugMaskButtonClick,t)}}var Bt=\"undefined\"!=typeof boatman&&void 0!==boatman.originalBridgeCall?boatman.originalBridgeCall:g;function jt(){(p.__ril_dispatcher__||(p.__ril_dispatcher__=new Tt),p.__ril_dispatcher__).dispatch(Nt),At.log(\"exitApp\"),Mt(\"exitTinyApp\",null,{originalCall:Bt},(function(e){At.log(\"exitTinyApp\",e)})),Mt(\"exitApp\",null,{originalCall:Bt},(function(e){At.log(\"exitApp\",e)}))}var Ft=!1;function zt(){Ft||(Ft=!0,K(\"showRemoteDebugMask\",{hide:!0,success:function(){At.log(\"showRemoteDebugMask hide\")}}),K(\"alert\",{title:Ot.format(\"调试结束\"),button:Ot.format(\"callExitApp_退出\"),success:function(){setTimeout((function(){jt(),Ft=!1}),0)}}))}var Ut,Ht=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),o=n.indexOf(t);-1!==o&&n.splice(o,1)}},e.prototype.once=function(e,t){var n=this,o=this.on(e,(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];o(),t.apply(n,e)}));return o},e.prototype.emit=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];this._listeners.has(e)&&c([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),Vt=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=20971520,this.eventEmitter=new Ht,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(e){this.eventEmitter.emit(\"close\",e)},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}();\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(Ut=WebSocket);var Wt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.logger=ke(),t}return t(n,e),n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new Ut(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):e.logger.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},n.prototype.close=function(){this.opened&&this.socket.close()},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?(this.logger.log(\"real send\",e),this.socket.send(t)):this.messageBeforeSocketOpen.push(t))},n.prototype.onSocketOpen=function(){var t=this;this.logger.log(\"[DEBUG] connection opened\"),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[]),e.prototype.onSocketOpen.call(this)},n.prototype.onSocketClose=function(t){this.opened=!1,F(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this,t)},n.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),z(\"[DEBUG] connection onerror\",t)},n}(Vt),Gt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}return t(n,e),n.prototype.delayOpenOnce=function(){var e=this;this._openInvoked||(setTimeout((function(){e.open()}),0),this._openInvoked=!0)},n.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"url is empty\");this.socketTask=de.connectSocket({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(t){e.opened=!1,e.onSocketClose(t)})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},n.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength?pe(\"[WebSocketNativeImpl] message length \".concat(t.length,\" exceed maxBodyLength \").concat(this.maxBodyLength)):this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t)},n.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},n.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.onSocketOpen(),this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]))},n}(Vt),Zt=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){Zt=!0;try{delete p.WebSocket}catch(e){}}var qt,Yt=Zt?Wt:Gt,Qt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.startDebugSession=function(){var t=this;e.prototype.startDebugSession.call(this);var n=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)throw new Error(\"bugme no react hook\");n.wasCommited?this.checkHostBeforeAgentConnect():n.on(\"first-commit\",(function(){t.checkHostBeforeAgentConnect()}))},n}(yt),Xt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCloseHandlerSet=new Set,t.isActive=!0,t.messageBeforeHandler=[],t}return t(n,e),Object.defineProperty(n.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),n.prototype.activate=function(){this.isActive=!0},n.prototype.inActivate=function(){this.isActive=!1},n.prototype.sendMessage=function(e,t){this.send(JSON.stringify({method:e,params:t}))},n.prototype.send=function(t,n){(this.isActive||n)&&e.prototype.send.call(this,t)},n.prototype.onMessage=function(e){if(this.devtoolHandler)throw new Error(\"conflict handler\");this.devtoolHandler=e,this.messageBeforeHandler.forEach(this.handleMessage),this.messageBeforeHandler=[]},n.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},n.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||w()?this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e):zt()},n.prototype.onSocketClose=function(t){e.prototype.onSocketClose.call(this,t),this.onCloseHandlerSet.forEach((function(e){try{e()}catch(e){console.warn(e)}}))},n.prototype.handleMessage=function(e){var t,n=this;try{t=JSON.parse(e)}catch(t){return void console.warn(\"invalid json message: \",e)}t.sessionId||(t.method?this.devtoolHandler&&this.devtoolHandler(t.method,t.params,(function(e,o){e?n.send(JSON.stringify({id:t.id,error:{code:e,message:\"\".concat(e)}}),!0):n.send(JSON.stringify({id:t.id,result:o}),!0)})):console.warn(\"invalid json message: \",e))},n}(Wt);function Kt(e,t,n){e.resetZNodeActivatedState(),n(null,{root:e.getDocumentNode()})}function Jt(e,t,n){n(null,{nodeIds:t.backendNodeIds})}function $t(e,t,n){var o=t.nodeId,r=e.nodeId2ZNode.get(o),i=e.shadowRootNodeId2ZNode.get(o),a=e.nodeId2DOMNode.get(o);if(r){var s=r.serialize(1);s.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:s.children,parentId:t.nodeId})}else if(i)if(i.nodeType===qt.Element){var c=i.getShadowRootDebugNode().serialize(0);c&&e.sendMessage(\"DOM.setChildNodes\",{nodes:[c],parentId:o})}else e.sendMessage(\"DOM.setChildNodes\",{nodes:[],parentId:o});else if(a){var u=a.serialize(1);u.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:u.children,parentId:o})}n(null,{})}function en(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}!function(e){e[e.Element=1]=\"Element\",e[e.Text=2]=\"Text\",e[e.Component=3]=\"Component\"}(qt||(qt={}));var tn=Function.prototype.apply.call.bind(Function.prototype.apply);function nn(e,t,n){return tn(e,t,n)}var on=Date.now.bind(Date);function rn(e,t,n,o,r){var i,a,s=null,c=0;r||(r={});var u=function(){c=!1===r.leading?0:Date.now(),s=null,a=nn(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var p=Date.now();c||!1!==r.leading||(c=p);var h=t-(p-c);return i=l,h<=0||h>t?(o(s),s=null,c=p,a=nn(e,null,i),i=null):s||!1===r.trailing||(s=n(u,h)),a}}var an,sn,cn,un=\"__weak_set_key__yek_tes_kaew__\",ln=1;function dn(){var e=Object.prototype.hasOwnProperty,t=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,value:n,writable:!0}):e[t]=n};function n(e){return Object(e)===e}function o(){if(void 0===this)throw new TypeError(\"Constructor WeakMap requires 'new'\");if(t(this,\"_id\",\"_WeakMap\"+\"_\"+i()+\".\"+i()),arguments.length>0)throw new TypeError(\"WeakMap iterable is not supported\")}function r(t,o){if(!n(t)||!e.call(t,\"_id\"))throw new TypeError(o+\" method called on incompatible receiver \"+typeof t)}function i(){return Math.random().toString().substring(2)}return t(o.prototype,\"delete\",(function(e){if(r(this,\"delete\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),t(o.prototype,\"get\",(function(e){if(r(this,\"get\"),n(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),t(o.prototype,\"has\",(function(e){if(r(this,\"has\"),!n(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),t(o.prototype,\"set\",(function(e,o){if(r(this,\"set\"),!n(e))throw new TypeError(\"Invalid value used as weak map key\");var i=e[this._id];return i&&i[0]===e?(i[1]=o,this):(t(e,this._id,[e,o]),this)})),t(o,\"_polyfill\",!0),o}function pn(){var e=\"undefined\"!=typeof Map;an=e?Map:function(){var e=function(){function e(){this.keyList=[],this.valueList=[]}return e.prototype.set=function(e,t){var n=this.keyList,o=n.indexOf(e);if(-1===o){var r=n.push(e)-1;this.valueList[r]=t}else this.valueList[o]=t;return this},e.prototype.get=function(e){var t=this.keyList.indexOf(e);return-1===t?void 0:this.valueList[t]},e.prototype.forEach=function(e){for(var t=this.keyList.slice(),n=this.valueList.slice(),o=t.length,r=0;r<o;r++){var i=t[r];e(n[r],i,this)}},Object.defineProperty(e.prototype,\"size\",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return-1!==this.keyList.indexOf(e)},e.prototype.delete=function(e){var t=this.keyList.indexOf(e);return-1!==t&&(this.keyList.splice(t,1),this.valueList.splice(t,1),!0)},e.prototype.clear=function(){this.keyList=[],this.valueList=[]},e}();return e}()}function hn(){var e;return sn||(e=\"undefined\"!=typeof WeakMap,sn=e?WeakMap:dn()),new sn}function fn(){var e=\"undefined\"!=typeof WeakSet;cn=e?WeakSet:function(){function e(){this.elementKey=un+ln++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}var gn=function(){function e(){this.statusMap={}}return e.prototype.loadResource=function(e,t){var n=this.getKeyFromResource(e),o=this.getLoadStatus4ResourceByKey(n);return 3===o.status?t(void 0,o.res):1!==o.status?2===o.status?this.shouldRetry4Resource(e)?(this.setLoadStatus4ResourceByKey(n,{status:1,callbacks:[t]}),this.loadResourceWithStatus(e)):t(o.error):0===o.status?(this.setLoadStatus4ResourceByKey(n,{status:1,callbacks:[t]}),this.loadResourceWithStatus(e)):void 0:void(o.callbacks=en(en([],o.callbacks,!0),[t],!1))},e.prototype.loadResourceWithStatus=function(e){var t=this;this.loadResourceInternal(e,(function(n,o){var r=t.getKeyFromResource(e),i=t.getLoadStatus4ResourceByKey(r);if(1===i.status){n?t.setLoadStatus4ResourceByKey(r,{status:2,error:n}):t.setLoadStatus4ResourceByKey(r,{status:3,res:o});var a=i.callbacks;if(Array.isArray(a))for(var s=0,c=a;s<c.length;s++){(0,c[s])(n,o)}}}))},e.prototype.getLoadStatus4ResourceByKey=function(e){var t=this.statusMap;return t[e]||(t[e]={status:0}),t[e]},e.prototype.setLoadStatus4ResourceByKey=function(e,t){this.statusMap[e]=t},e}();function mn(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function vn(e,t,n,o,r,i){return mn((a=mn(mn(t,e),mn(o,i)))<<(s=r)|a>>>32-s,n);var a,s}function yn(e,t,n,o,r,i,a){return vn(t&n|~t&o,e,t,r,i,a)}function bn(e,t,n,o,r,i,a){return vn(t&o|n&~o,e,t,r,i,a)}function wn(e,t,n,o,r,i,a){return vn(t^n^o,e,t,r,i,a)}function Sn(e,t,n,o,r,i,a){return vn(n^(t|~o),e,t,r,i,a)}function Cn(e,t){var n,o,r,i,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,u=-1732584194,l=271733878;for(n=0;n<e.length;n+=16)o=s,r=c,i=u,a=l,s=yn(s,c,u,l,e[n],7,-680876936),l=yn(l,s,c,u,e[n+1],12,-389564586),u=yn(u,l,s,c,e[n+2],17,606105819),c=yn(c,u,l,s,e[n+3],22,-1044525330),s=yn(s,c,u,l,e[n+4],7,-176418897),l=yn(l,s,c,u,e[n+5],12,1200080426),u=yn(u,l,s,c,e[n+6],17,-1473231341),c=yn(c,u,l,s,e[n+7],22,-45705983),s=yn(s,c,u,l,e[n+8],7,1770035416),l=yn(l,s,c,u,e[n+9],12,-1958414417),u=yn(u,l,s,c,e[n+10],17,-42063),c=yn(c,u,l,s,e[n+11],22,-1990404162),s=yn(s,c,u,l,e[n+12],7,1804603682),l=yn(l,s,c,u,e[n+13],12,-40341101),u=yn(u,l,s,c,e[n+14],17,-1502002290),s=bn(s,c=yn(c,u,l,s,e[n+15],22,1236535329),u,l,e[n+1],5,-165796510),l=bn(l,s,c,u,e[n+6],9,-1069501632),u=bn(u,l,s,c,e[n+11],14,643717713),c=bn(c,u,l,s,e[n],20,-373897302),s=bn(s,c,u,l,e[n+5],5,-701558691),l=bn(l,s,c,u,e[n+10],9,38016083),u=bn(u,l,s,c,e[n+15],14,-660478335),c=bn(c,u,l,s,e[n+4],20,-405537848),s=bn(s,c,u,l,e[n+9],5,568446438),l=bn(l,s,c,u,e[n+14],9,-1019803690),u=bn(u,l,s,c,e[n+3],14,-187363961),c=bn(c,u,l,s,e[n+8],20,1163531501),s=bn(s,c,u,l,e[n+13],5,-1444681467),l=bn(l,s,c,u,e[n+2],9,-51403784),u=bn(u,l,s,c,e[n+7],14,1735328473),s=wn(s,c=bn(c,u,l,s,e[n+12],20,-1926607734),u,l,e[n+5],4,-378558),l=wn(l,s,c,u,e[n+8],11,-2022574463),u=wn(u,l,s,c,e[n+11],16,1839030562),c=wn(c,u,l,s,e[n+14],23,-35309556),s=wn(s,c,u,l,e[n+1],4,-1530992060),l=wn(l,s,c,u,e[n+4],11,1272893353),u=wn(u,l,s,c,e[n+7],16,-155497632),c=wn(c,u,l,s,e[n+10],23,-1094730640),s=wn(s,c,u,l,e[n+13],4,681279174),l=wn(l,s,c,u,e[n],11,-358537222),u=wn(u,l,s,c,e[n+3],16,-722521979),c=wn(c,u,l,s,e[n+6],23,76029189),s=wn(s,c,u,l,e[n+9],4,-640364487),l=wn(l,s,c,u,e[n+12],11,-421815835),u=wn(u,l,s,c,e[n+15],16,530742520),s=Sn(s,c=wn(c,u,l,s,e[n+2],23,-995338651),u,l,e[n],6,-198630844),l=Sn(l,s,c,u,e[n+7],10,1126891415),u=Sn(u,l,s,c,e[n+14],15,-1416354905),c=Sn(c,u,l,s,e[n+5],21,-57434055),s=Sn(s,c,u,l,e[n+12],6,1700485571),l=Sn(l,s,c,u,e[n+3],10,-1894986606),u=Sn(u,l,s,c,e[n+10],15,-1051523),c=Sn(c,u,l,s,e[n+1],21,-2054922799),s=Sn(s,c,u,l,e[n+8],6,1873313359),l=Sn(l,s,c,u,e[n+15],10,-30611744),u=Sn(u,l,s,c,e[n+6],15,-1560198380),c=Sn(c,u,l,s,e[n+13],21,1309151649),s=Sn(s,c,u,l,e[n+4],6,-145523070),l=Sn(l,s,c,u,e[n+11],10,-1120210379),u=Sn(u,l,s,c,e[n+2],15,718787259),c=Sn(c,u,l,s,e[n+9],21,-343485551),s=mn(s,o),c=mn(c,r),u=mn(u,i),l=mn(l,a);return[s,c,u,l]}function _n(e){var t,n=\"\",o=32*e.length;for(t=0;t<o;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function In(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var o=8*e.length;for(t=0;t<o;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function xn(e){var t,n,o=\"0123456789abcdef\",r=\"\";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=o.charAt(t>>>4&15)+o.charAt(15&t);return r}function Pn(e){return unescape(encodeURIComponent(e))}function kn(e){return function(e){return _n(Cn(In(e),8*e.length))}(Pn(e))}function En(e,t){return function(e,t){var n,o,r=In(e),i=[],a=[];for(i[15]=a[15]=void 0,r.length>16&&(r=Cn(r,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^r[n],a[n]=1549556828^r[n];return o=Cn(i.concat(In(t)),512+8*t.length),_n(Cn(a.concat(o),640))}(Pn(e),Pn(t))}function On(e,t,n){return t?n?En(t,e):xn(En(t,e)):n?kn(e):xn(kn(e))}var Mn=function(e,t){return Mn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Mn(e,t)};function Nn(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Mn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Tn(e,t){return{type:10,value:\"\".concat(e.value,\"@\").concat(t.value)}}\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var An=function(e){console.log(e,on())};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Nn(t,e),t.prototype.getLoadPluginOption=function(e){var t=function(e){if(e){var t=e.value;if(t){var n=t.indexOf(\"@\");if(n>0){var o=t.substr(0,n),r=t.substr(n+1,t.length);if(o&&r)return{extensionId:{type:4,value:o},version:{type:11,value:r}}}}}}(e);if(!t)return{plugin:e.value};var n=this.getCompileInfo(),o=n&&n.debugPlugins;if(!o)return{plugin:e.value};var r=o&&t.extensionId.value&&o[t.extensionId.value];return r?(An(\"[APPX] debugOptions.plugins[\".concat(t.extensionId.value,\"] hit => \").concat(r.scene,\":\").concat(r.version)),{plugin:Tn(t.extensionId,{type:11,value:r.version}).value,pluginScene:r.scene}):(An(\"[APPX] debugOptions.plugins[\".concat(t.extensionId.value,\"] miss\")),{plugin:e.value})},t.prototype.loadResourceInternal=function(e,t){var n=this.getLoadPluginOption(e.dynamicPluginExpression);this.callInternalAPI(\"loadPlugin\",n,(function(e){if(void 0===e&&(e={}),e.error)t(e,void 0);else if(e.url){var n=e.package_nick,o=e.url,r=e.version,i=e.componentContext;t(void 0,{package_nick:n,url:o,version:r,componentContext:i})}else t({error:1,errorMessage:\"loadPlugin failed, did not get url\",res:e},void 0)}))},t.prototype.getKeyFromResource=function(e){return e.extensionId.value},t.prototype.shouldRetry4Resource=function(){return!0}}(gn);var Dn=function(){function e(e,t){this.rules=[],this._currentPath=[],this.currentValue=e,this._rootValue=e,this.rules=t}return Object.defineProperty(e.prototype,\"currentPath\",{get:function(){return this._currentPath.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"rootValue\",{get:function(){return this._rootValue},enumerable:!1,configurable:!0}),e.prototype.pushPathItem=function(e){this._currentPath.push(e)},e.prototype.popPathItem=function(){this._currentPath.pop()},e.prototype.setCurrentPath=function(e){this._currentPath=e},e}();function Rn(){}function Ln(){return[]}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._notations=[],t}Nn(t,e),t.prototype.addNotation=function(){this._notations.push(this.currentPath)},Object.defineProperty(t.prototype,\"notations\",{get:function(){return this._notations},enumerable:!1,configurable:!0})}(Dn);var Bn={ad:[{c:\"extInfo\",f:function(){return{}}},{c:\"immediately\",v:!1},{c:\"spaceCode\",v:\"\",p:\"unitId\"}],\"ai-camera\":[{c:\"applyMicPermissionWhenInit\"},{c:\"cameraVersion\",p:\"engineVersion\"},{c:\"devicePosition\",v:\"back\"},{c:\"extraInfo\"},{c:\"flash\",v:\"auto\"},{c:\"orientation\"},{c:\"outputDimension\"},{c:\"recordVideoOnly\"},{c:\"type\",v:\"ai-camera\",p:!1}],ar:[{c:\"camera-enable\",p:\"cameraEnable\"},{c:\"camera-position\",p:\"cameraPosition\"},{c:\"gesture-draggable\",p:\"gestureDraggable\"},{c:\"gesture-rotatable\",p:\"gestureRotatable\"},{c:\"gesture-scalable\",p:\"gestureScalable\"},{c:\"src\"},{c:\"track-attitude\",p:\"trackAttitude\"},{c:\"track-face\",p:\"trackFace\"},{c:\"track-face-beauty\",v:0,p:\"trackFaceBeauty\"},{c:\"track-face-max\",p:\"trackFaceMax\"},{c:\"track-face-smile\",v:0,p:\"trackFaceSmile\"},{c:\"track-mode\",p:\"trackMode\"},{c:\"type\",v:\"ar\",p:!1}],camera:[{c:\"applyMicPermissionWhenInit\"},{c:\"cameraVersion\",p:\"engineVersion\"},{c:\"devicePosition\",v:\"back\"},{c:\"extraInfo\"},{c:\"flash\",v:\"auto\"},{c:\"frameFormat\"},{c:\"frameSize\"},{c:\"mode\",v:\"normal\"},{c:\"needScanCodeDetail\",p:\"scanCodeFullResult\"},{c:\"outputDimension\"},{c:\"recordVideoOnly\"},{c:\"scanArea\"},{c:\"type\",v:\"camera\",p:!1}],canvas:[{c:\"backgroundColor\",p:!1},{c:\"timeStamp\",p:!1},{c:\"width\"},{c:\"height\"},{c:\"offscreen\"},{c:\"disableScroll\"},{c:\"type\"},{c:\"useVideoRecorder\"}],\"live-player\":[{c:\"autoplay\",v:!1},{c:\"backgroundMute\",v:!1},{c:\"extra-info\",p:\"extraInfo\"},{c:\"floatingMode\",v:\"none\"},{c:\"maxCache\",v:3},{c:\"minCache\",v:1},{c:\"mode\",v:\"live\"},{c:\"muted\",v:!1},{c:\"objectFit\",v:\"contain\"},{c:\"orientation\",v:\"vertical\"},{c:\"src\"}],\"live-pusher\":[{c:\"aspect\",v:\"9:16\"},{c:\"autoFocus\",v:!0},{c:\"autopush\",v:!1},{c:\"backgroundMute\",v:!1},{c:\"beauty\",v:0},{c:\"devicePosition\"},{c:\"enableAgc\",v:!0},{c:\"enableAns\",v:!0},{c:\"enableCamera\",v:!0},{c:\"maxBitrate\",v:1e3},{c:\"minBitrate\",v:200},{c:\"mode\",v:\"RTC\"},{c:\"muted\",v:!1},{c:\"orientation\",v:!1},{c:\"record\",v:!1},{c:\"url\",v:\"\"},{c:\"waitingImage\"},{c:\"waitingImageHash\"},{c:\"whiteness\",v:0},{c:\"zoom\",v:!1}],lottieview:[{c:\"assetsPath\"},{c:\"autoReverse\",v:!1},{c:\"autoplay\",v:!1},{c:\"config\"},{c:\"djangoId\"},{c:\"downgrade\"},{c:\"downgradeLevel\",v:\"\"},{c:\"md5\"},{c:\"optimize\"},{c:\"path\"},{c:\"placeholder\"},{c:\"renderType\",v:\"\"},{c:\"repeatCount\",v:0},{c:\"scene\",v:\"\"},{c:\"speed\",v:1},{c:\"variableLottie\",v:!1},{c:\"variableMap\",v:null}],map:[{c:\"bind-events\",p:!1},{c:\"circles\",f:Ln},{c:\"controls\",f:Ln},{c:\"customMapStyle\"},{c:\"enable-building\",p:\"enableBuilding\"},{c:\"enable-overlooking\",p:\"enableOverlooking\"},{c:\"enable-poi\",p:\"enablePoi\"},{c:\"enable-rotate\",p:\"enableRotate\"},{c:\"enable-satellite\",p:\"enableSatellite\"},{c:\"enable-scroll\",p:\"enableScroll\"},{c:\"enable-traffic\",p:\"enableTraffic\"},{c:\"enable-zoom\",p:\"enableZoom\"},{c:\"ground-overlays\",f:Ln,p:\"groundOverlays\"},{c:\"include-padding\",p:\"includePadding\"},{c:\"include-points\",f:Ln,p:\"includePoints\"},{c:\"include-points-animation\",p:\"includePointsAnimation\"},{c:\"latitude\",v:39.9},{c:\"limitRegion\"},{c:\"longitude\",v:116.39},{c:\"map-type\",p:\"mapType\"},{c:\"markers\",f:Ln},{c:\"max-scale\",p:\"maxScale\"},{c:\"min-scale\",p:\"minScale\"},{c:\"panels\"},{c:\"polygon\",f:Ln},{c:\"polyline\",f:Ln},{c:\"rotate\",v:0},{c:\"scale\"},{c:\"setting\"},{c:\"show-compass\",p:\"showCompass\"},{c:\"show-indoormap\",p:\"showIndoormap\",v:!1},{c:\"show-location\",p:\"showLocation\",v:!1},{c:\"show-scale\",p:\"showScale\"},{c:\"skew\",v:0},{c:\"tile-overlay\",p:\"tileOverlay\"},{c:\"type\",p:!1,v:\"map\"}],\"rtc-room\":[{c:\"aliyunInfo\"},{c:\"autoplay\"},{c:\"beautyLevel\",v:0},{c:\"channelId\"},{c:\"disableInteractive\"},{c:\"enableCamera\",v:!0},{c:\"enableProximityMonitor\",v:!1},{c:\"enableVideoOnlyMode\",v:!1},{c:\"extraInfo\"},{c:\"fps\",v:15},{c:\"maxBitrate\"},{c:\"minBitrate\"},{c:\"mute\"},{c:\"privateMapKey\"},{c:\"record\"},{c:\"resolution\",v:1},{c:\"roomId\"},{c:\"signature\"},{c:\"token\"},{c:\"type\",p:!1,v:\"rtc-room\"},{c:\"userId\"}],video:[{c:\"autoplay\",v:!1},{c:\"controls\",v:!0},{c:\"direction\"},{c:\"duration\",v:0},{c:\"enable-progress-gesture\",p:\"enableProgressGesture\",v:!0},{c:\"enableHistory\"},{c:\"extra-info\",p:\"extraInfo\"},{c:\"floatingMode\",v:\"none\"},{c:\"initial-time\",p:\"initialTime\",v:0},{c:\"loop\",v:!1},{c:\"mobilenet-hint-type\",p:\"mobilenetHintType\",v:1},{c:\"muted\",v:!1},{c:\"object-fit\",p:\"objectFit\",v:\"contain\"},{c:\"page-gesture\",p:\"pageGesture\",v:!1},{c:\"show-center-play-btn\",p:\"showCenterPlayBtn\",v:!0},{c:\"show-fullscreen-btn\",p:\"showFullscreenBtn\",v:!0},{c:\"show-play-btn\",p:\"showPlayBtn\",v:!0},{c:\"showMuteBtn\",v:!0},{c:\"showThinProgressBar\",v:!1},{c:\"src\",v:\"\"}],\"web-view\":[{c:\"appId\"},{c:\"enableWK\",v:!0},{c:\"mini\",v:!1},{c:\"overlay\",p:!1},{c:\"src\"}],textfield:[]};var jn=Object.create(null);function Fn(e){return jn[e]}function zn(e){return void 0===e||!!e}function Un(e){return void 0!==e&&!!e}function Hn(e,t){return void 0===e?t:e}function Vn(e,t){var n=parseInt(e,10);return n!=n?t:n}function Wn(e,t){var n=parseFloat(e);return n!=n?t:n}function Gn(e){return e&&\"object\"==typeof e&&\"_v\"in e?e._v:e}function Zn(e){if(e.type&&e.data)return[e.data.element]}function qn(e){return e}var Yn=function(e,t){return Yn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Yn(e,t)};function Qn(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Yn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Xn=function(){return Xn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Xn.apply(this,arguments)};\"function\"==typeof SuppressedError&&SuppressedError;var Kn=function(){function e(e,t,n){void 0===n&&(n=\"default\"),this.type=e,this.createType=n,this.data=function(e,t,n,o){for(var r=0,i=Bn[e];r<i.length;r++){var a=i[r],s=a.c,c=a.v,u=a.f;if(!1===a.p)void 0===c&&!u||void 0!==t[s]||(t[s]=u?u():c);else{var l=a.p||s;if(!o||o[l]){var d=n?n[l]:void 0;t[s]=void 0===d?u?u():c:d}}}return t}(e,{}),this.platform=t.platform,this.root=this.platform.root;var o=t.ownerPageId,r=t.ownerTargetId;o&&(this.ownerPageId=o),r&&(this.ownerTargetId=r)}return e.prototype.setId=function(e,t){this.bridgeId=t||e,this.platform.setId(e)},e.prototype.setAttr=function(e,t){null==t?this.platform.removeAttribute(e):this.platform.setAttribute(e,t)},e.prototype.setClassName=function(e){this.platform.setClassName(e)},e.prototype.setStyleInline=function(e){this.platform.setStyleInline(e)},e.prototype.initClassStyleProp=function(e,t,n,o){var r=this;this.platform.initCompositeNode(this.bridgeId,this.type),this.attachCompositeNode(),o&&this.processAttrs(o,o),this.setClassName(t),n&&this.setStyleInline(n),this.platform.whenCompositeNeed2Create((function(){r.compositeNeed2Create()}),this.createType)},e.prototype.updateClassStyleProp=function(e,t,n,o,r,i,a){a&&this.compositeUpdateProps(i,a),n&&this.setClassName(t),r&&this.setStyleInline(o)},e.prototype.destroy=function(e){this.platform.destroy(e)},e.prototype.pageUpdateCallback=function(){this.platform.pageUpdateCallback()},e.prototype.drawComposite=function(e,t,n,o){this.platform.drawComposite(e,t,n,o)},e.prototype.updateComposite=function(e,t){this.platform.updateComposite(e||this.data,t)},e.prototype.removeComposite=function(){this.platform.removeComposite()},e.prototype.compositeUpdateProps=function(e,t){this.processAttrs(e,t),this.updateComposite()},e.prototype.setParamElem=function(e,t){return this.platform.setParamElem(e,t)},e.prototype.attachCompositeNode=function(e){this.platform.attachCompositeNode(e)},e.prototype.detachCompositeNode=function(){this.platform.detachCompositeNode()},e.prototype.setDOMStyle=function(e,t){this.platform.setDOMStyle(e,t)},e.prototype.getCompositeRoot=function(){return this.platform.getCompositeRoot()},e.prototype.getCompositeStyles=function(e){this.platform.getCompositeStyles(e)},e.prototype.getCompositeRect=function(e){this.platform.getCompositeRect(e)},e.prototype.getCompositeState=function(){return this.platform.getCompositeState()},e.prototype.createElement=function(e){return this.platform.createElement(e)},e.prototype.addTask=function(e,t,n,o,r,i){this.platform.addTask(e,t,n,o,r,i)},e.prototype.removeTask=function(e,t,n){this.platform.removeTask(e,t,n)},e.prototype.compositeNeed2Create=function(){this.drawComposite(this.data)},e.prototype.invokeBridgeCall=function(e,t,n){this.platform.invokeBridgeCall(e,t,n)},e.prototype.sendMessage=function(e,t){this.platform.sendMessage(e,t)},e.prototype.getStartupParams=function(){return this.platform.getStartupParams()},e.prototype.compositeNormalizeSrc=function(e){return this.platform.compositeNormalizeSrc(e)},e.prototype.fillDynamicAttributes=function(e,t,n,o,r){return this.platform.fillDynamicAttributes(e,t,n,o,r)},e}(),Jn=function(e){function t(t,n,o){var r=e.call(this,t,n,\"PageReadied\")||this;return r.config=o,r}return Qn(t,e),t.prototype.attachCompositeNode=function(t){var n;(null===(n=this.config)||void 0===n?void 0:n.attatchCompositeNodeWhenDrawComposite)||e.prototype.attachCompositeNode.call(this,t)},t.prototype.compositeNeed2Create=function(){var t=this;this.getCompositeRect((function(n){var o;t.drawEntity(n),(null===(o=t.config)||void 0===o?void 0:o.attatchCompositeNodeWhenDrawComposite)&&e.prototype.attachCompositeNode.call(t)}))},t.prototype.drawEntity=function(e){this.drawComposite(void 0,{data:this.data,frame:e.size})},t}(Kn),$n=function(e){function t(t,n,o,r){var i=e.call(this,t,n,\"PageReadied\")||this;return i.instance=o,i.config=r,i}return Qn(t,e),t.prototype.attachCompositeNode=function(t){var n;(null===(n=this.config)||void 0===n?void 0:n.requestCameraAuth)||e.prototype.attachCompositeNode.call(this,t)},t.prototype.compositeNeed2Create=function(){var t=this;this.getCompositeRect((function(n){var o;t.drawComposite(t.data,void 0,n),(null===(o=t.config)||void 0===o?void 0:o.requestCameraAuth)&&t.requestCameraAuthorization((function(n){var o;n.success?e.prototype.attachCompositeNode.call(t):null===(o=t.instance)||void 0===o||o.invokeError({errorCode:n.error,errorMessage:n.errorMessage})}))}))},t.prototype.requestCameraAuthorization=function(e){var t=this;return this.requestCameraAuthPromise||(this.requestCameraAuthPromise=new Promise((function(e){t.invokeBridgeCall(\"requestAuthorize\",{scope:\"scope.camera\"},e)}))),this.requestCameraAuthPromise.then(e)},t}(Kn);!function(e){function t(t,n,o){var r=e.call(this,\"video\",t)||this;r.config=n,r.feature=o,r.removed=!1,r.customPoster=!1;var i=r.getCompositeRoot(),a=r.wrapDOM=r.createElement(\"div\"),s=r.posterDOM=r.createElement(\"div\"),c=r.playDOM=r.createElement(\"div\");return a.className=\"a-video-wrap\",s.className=\"a-video-poster\",c.className=\"a-video-play\",i.appendChild(a),i.appendChild(s),i.appendChild(c),r.onChangeState=r.onChangeState.bind(r),r.onStartOrError=r.onStartOrError.bind(r),r.onTapPlay=r.onTapPlay.bind(r),i.addEventListener(\"touchend\",r.onTapPlay),r}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-video \"+t)},t.prototype.setId=function(t,n){e.prototype.setId.call(this,t,n),this.wrapDOM.setAttribute(\"id\",t+\"-wrap\")},t.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.addTask(\"nbcomponent.video.onChangeState\",this.bridgeId,this.onChangeState,Zn,qn),this.addTask(\"nbcomponent.video.onError\",this.bridgeId,this.onStartOrError,Zn,qn)},t.prototype.play=function(){0===this.getCompositeState()?this.playVideo():this.sendMessage(\"play\")},t.prototype.stop=function(){this.sendMessage(\"stop\"),this.stopVideo()},t.prototype.destroy=function(){this.removeTask(\"nbcomponent.video.onChangeState\",this.bridgeId),this.removeTask(\"nbcomponent.video.onError\",this.bridgeId),this.stopVideo(),this.onChangeState=null},t.prototype.togglePlayBtn=function(e){this.playDOM.setAttribute(\"style\",e?\"display: none\":\"\")},t.prototype.togglePosterDOM=function(e){this.setDOMStyle(this.posterDOM,{display:e?\"none\":\"block\"})},t.prototype.toggleHintType=function(e){e<=1?this.getCompositeRoot().insertBefore(this.wrapDOM,this.posterDOM):this.getCompositeRoot().insertBefore(this.posterDOM,this.wrapDOM)},t.prototype.togglePosterSize=function(e){this.setDOMStyle(this.posterDOM,{backgroundSize:e===eo?\"\":e})},t.prototype.togglePlayDOM=function(e,t){var n=this.playDOM;e||void 0===e&&!1===t?n.parentNode&&n.parentNode.removeChild(n):n.parentNode||this.getCompositeRoot().appendChild(n)},t.prototype.processAttrs=function(e,t){var n=this,o=this.data;!function(e,t,n,o,r,i){if(o.autoplay){var a=Un(n.autoplay);t.autoplay=a,e.togglePlayBtn(a)}if(o.src&&(t.src=Hn(n.src,\"\")),o.hidePoster&&e.togglePosterDOM(!!n.hidePoster),o.initialTime&&(t[\"initial-time\"]=Vn(n.initialTime,0)),o.duration&&(t.duration=Vn(n.duration,0)),o.floatingMode&&(t.floatingMode=Hn(n.floatingMode,\"none\"),Fn(\"floatingMode\")||(null==i?void 0:i.floatingMode)||\"miniprogram\"!==t.floatingMode||(t.floatingMode=\"microapp\")),(o.controls||r&&void 0!==n.controls)&&(t.controls=zn(n.controls)),o.loop&&(t.loop=n.loop),o.muted&&(t.muted=n.muted),(o.showFullscreenBtn||r&&void 0!==n.showFullscreenBtn)&&(t[\"show-fullscreen-btn\"]=zn(n.showFullscreenBtn)),(o.showPlayBtn||r&&void 0!==n.showPlayBtn)&&(t[\"show-play-btn\"]=zn(n.showPlayBtn)),(o.showCenterPlayBtn||r&&void 0!==n.showCenterPlayBtn)&&(t[\"show-center-play-btn\"]=zn(n.showCenterPlayBtn)),o.objectFit&&(t[\"object-fit\"]=Hn(n.objectFit,\"contain\")),o.pageGesture&&(t[\"page-gesture\"]=n.pageGesture),(o.enableProgressGesture||r&&void 0!==n.enableProgressGesture)&&(t[\"enable-progress-gesture\"]=zn(n.enableProgressGesture)),o.extraInfo&&(t[\"extra-info\"]=n.extraInfo),o.direction&&(t.direction=n.direction),o.mobilenetHintType||r&&void 0!==n.mobilenetHintType){var s=t[\"mobilenet-hint-type\"]=Vn(n.mobilenetHintType,1);e.toggleHintType(s)}if((o.showMuteBtn||r&&void 0!==n.showMuteBtn)&&(t.showMuteBtn=zn(n.showMuteBtn)),o.showThinProgressBar&&(t.showThinProgressBar=n.showThinProgressBar),o.enableHistory&&(t.enableHistory=n.enableHistory),o.posterSize){var c=Hn(n.posterSize,\"contain\");e.togglePosterSize(c)}if(o.hidePlay||o.showCenterPlayBtn||r&&void 0!==n.showCenterPlayBtn||r&&void 0!==n.hidePlay){var u=n.hidePlay,l=zn(n.showCenterPlayBtn);e.togglePlayDOM(u,l)}}(this,o,e,t,e===t,this.feature);var r=t.src,i=this.customPoster,a=!1;if(t.poster){var s=e.poster;void 0===s?(i=this.customPoster=!1,a=!0):(i=this.customPoster=!0,this.setPosterUrl(s))}var c=t.hidePoster;if((r||a||c)&&!i&&!e.hidePoster&&o.src){r&&this.setPosterUrl();var u=o.src;this.invokeBridgeCall(\"getPosterFromVideoUrl\",{src:u},(function(e){e&&e.apFilePath&&!n.customPoster&&n.setPosterUrl(e.apFilePath)}))}this.fillDynamicAttributes(\"video\",t,e,o)},t.prototype.compositeNeed2Create=function(){this.data.autoplay&&this.playVideo()},t.prototype.attachCompositeNode=function(){this.config.lazyAttachCompositeNode||e.prototype.attachCompositeNode.call(this,this.wrapDOM)},t.prototype.compositeUpdateProps=function(e,t){this.processAttrs(e,t);var n=this.data,o=this.getCompositeState(),r=function(e,t){return{autoPlay:t.autoplay&&e.autoplay,src:t.src&&void 0!==e.src,muted:t.muted&&void 0!==e.muted,videoProp:Object.keys(t).some(to)}}(n,t),i=r.autoPlay,a=r.src,s=r.muted,c=r.videoProp;i&&0===o?this.playVideo():o>2&&(a?(this.stop(),n.autoplay&&this.playVideo()):c?this.updateComposite():s&&this.sendMessage(\"mute\",{ison:n.muted}))},t.prototype.playVideo=function(){var t={autoplay:!0};this.config.lazyAttachCompositeNode?(e.prototype.attachCompositeNode.call(this,this.wrapDOM),6===this.getCompositeState()&&this.drawComposite(Xn(Xn({},this.data),t))):this.drawComposite(Xn(Xn({},this.data),t))},t.prototype.stopVideo=function(){this.config.lazyAttachCompositeNode&&this.detachCompositeNode(),this.config.need2RemoveCompositeWhenStopVideo&&this.removeComposite(),e.prototype.destroy.call(this,!0),this.removed=!0},t.prototype.setPosterUrl=function(e){this.setDOMStyle(this.posterDOM,{backgroundImage:e?\"url(\"+this.compositeNormalizeSrc(e)+\")\":\"\"})},t.prototype.onChangeState=function(e){switch(e.data.state){case 0:return this.removed?this.removed=!1:this.stopVideo(),this.setDOMStyle(this.playDOM,{display:\"block\"}),void this.setDOMStyle(this.posterDOM,{display:\"block\"});case 5:return this.removed=!1,void this.onStartOrError()}},t.prototype.onStartOrError=function(){this.setDOMStyle(this.posterDOM,{display:\"none\"}),this.setDOMStyle(this.playDOM,{display:\"none\"})},t.prototype.onTapPlay=function(e){e.target===this.playDOM&&this.play()}}(Kn);var eo=\"contain\";function to(e){return\"initialTime\"===e||\"duration\"===e||\"controls\"===e||\"loop\"===e||\"showFullscreenBtn\"===e||\"showPlayBtn\"===e||\"showCenterPlayBtn\"===e||\"objectFit\"===e||\"pageGesture\"===e||\"enableProgressGesture\"===e||\"extraInfo\"===e||\"enableHistory\"===e||\"floatingMode\"===e}var no,oo=1,ro=!1,io=!1;!function(e){function t(t,n){var o=e.call(this,\"map\",t)||this;if(o.feature=n,o.optimizeSwitch=!1,o.eventsChanged=!1,!1===ro){ro=!0;var r=(o.getStartupParams()||{}).appXMapOptimize;no=!r,io=r}return no||(o.optimizeSwitch=io),o}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-map \"+t)},t.prototype.setHandlerNames=function(e){this.feature.bindEvent&&this.data[\"bind-events\"]!==e&&(this.data[\"bind-events\"]=e,this.getCompositeState()>2&&(this.eventsChanged=!0,this.batchedData={\"bind-events\":e}))},t.prototype.pageUpdateCallback=function(){e.prototype.pageUpdateCallback.call(this),this.eventsChanged&&this.updateComposite()},t.prototype.processAttrs=function(e,t){no&&t.optimize&&(this.optimizeSwitch=e.optimize),t.defaultScale&&(this.defaultScale=Wn(e.defaultScale,16));var n=this.eventsChanged?this.batchedData:this.batchedData=Object.create(null),o=this.data,r=this.optimizeSwitch;!function(e,t,n,o){if(n.setting){var r=t.setting;e.setting=r,o&&(o.setting=r)}if(n.customMapStyle){var i=t.customMapStyle;e.customMapStyle=i,o&&(o.customMapStyle=i)}if(n.tileOverlay){var a=t.tileOverlay;e[\"tile-overlay\"]=a,o&&(o[\"tile-overlay\"]=a)}if(n.includePointsAnimation){var s=Gn(t.includePointsAnimation);e[\"include-points-animation\"]=s,o&&(o[\"include-points-animation\"]=s)}if(n.enableSatellite){var c=t.enableSatellite;e[\"enable-satellite\"]=c,o&&(o[\"enable-satellite\"]=c)}if(n.panels){var u=t.panels;e.panels=u,o&&(o.panels=u)}if(n.showIndoormap){var l=Un(t.showIndoormap);e[\"show-indoormap\"]=l,o&&(o[\"show-indoormap\"]=l)}if(n.mapType){var d=t.mapType;e[\"map-type\"]=d,o&&(o[\"map-type\"]=d)}if(n.minScale){var p=t.minScale;e[\"min-scale\"]=p,o&&(o[\"min-scale\"]=p)}if(n.maxScale){var h=t.maxScale;e[\"max-scale\"]=h,o&&(o[\"max-scale\"]=h)}if(n.longitude){var f=Wn(Gn(t.longitude),116.39);e.longitude=f,o&&(o.longitude=f)}if(n.latitude){var g=Wn(Gn(t.latitude),39.9);e.latitude=g,o&&(o.latitude=g)}if(n.scale){var m=Gn(t.scale);e.scale=m,o&&(o.scale=m)}if(n.markers){var v=Hn(t.markers,[]);e.markers=v,o&&(o.markers=v)}if(n.polyline){var y=Hn(t.polyline,[]);e.polyline=y,o&&(o.polyline=y)}if(n.circles){var b=Hn(t.circles,[]);e.circles=b,o&&(o.circles=b)}if(n.controls){var w=Hn(t.controls,[]);e.controls=w,o&&(o.controls=w)}if(n.polygon){var S=Hn(t.polygon,[]);e.polygon=S,o&&(o.polygon=S)}if(n.showLocation){var C=Un(Gn(t.showLocation));e[\"show-location\"]=C,o&&(o[\"show-location\"]=C)}if(n.includePoints){var _=Hn(t.includePoints,[]);e[\"include-points\"]=_,o&&(o[\"include-points\"]=_)}if(n.includePadding){var I=t.includePadding;e[\"include-padding\"]=I,o&&(o[\"include-padding\"]=I)}if(n.groundOverlays){var x=Hn(t.groundOverlays,[]);e[\"ground-overlays\"]=x,o&&(o[\"ground-overlays\"]=x)}if(n.skew){var P=Wn(t.skew,0);e.skew=P,o&&(o.skew=P)}if(n.showCompass){var k=t.showCompass;e[\"show-compass\"]=k,o&&(o[\"show-compass\"]=k)}if(n.showScale){var E=t.showScale;e[\"show-scale\"]=E,o&&(o[\"show-scale\"]=E)}if(n.enableOverlooking||void 0!==t.enableOverlooking){var O=!!t.enableOverlooking;e[\"enable-overlooking\"]=O,o&&(o[\"enable-overlooking\"]=O)}if(n.enableZoom||void 0!==t.enableZoom){var M=!!t.enableZoom;e[\"enable-zoom\"]=M,o&&(o[\"enable-zoom\"]=M)}if(n.enableScroll||void 0!==t.enableScroll){var N=!!t.enableScroll;e[\"enable-scroll\"]=N,o&&(o[\"enable-scroll\"]=N)}if(n.enableRotate||void 0!==t.enableRotate){var T=!!t.enableRotate;e[\"enable-rotate\"]=T,o&&(o[\"enable-rotate\"]=T)}if(n.enableTraffic||void 0!==t.enableTraffic){var A=!!t.enableTraffic;e[\"enable-traffic\"]=A,o&&(o[\"enable-traffic\"]=A)}if(n.enablePoi||void 0!==t.enablePoi){var D=!!t.enablePoi;e[\"enable-poi\"]=D,o&&(o[\"enable-poi\"]=D)}if(n.enableBuilding||void 0!==t.enableBuilding){var R=!!t.enableBuilding;e[\"enable-building\"]=R,o&&(o[\"enable-building\"]=R)}if(n.rotate){var L=Wn(t.rotate,0);e.rotate=L,o&&(o.rotate=L)}if(n.limitRegion){var B=t.limitRegion;e.limitRegion=B,o&&(o.limitRegion=B)}}(o,e,t,r?n:void 0),this.fillDynamicAttributes(\"map\",t,e,o)&&r&&this.fillDynamicAttributes(\"map\",t,e,n)},t.prototype.drawComposite=function(){var t=this.optimizeSwitch,n={};t&&(n.optimize=!0,n._version=0),null==this.data.scale&&(n.scale=t||void 0===this.defaultScale?16:this.defaultScale),e.prototype.drawComposite.call(this,Xn(Xn({},this.data),n)),this.eventsChanged=!1},t.prototype.updateComposite=function(){var t=this.batchedData;this.optimizeSwitch?(t._version=oo++,t.optimize=!0,t.type=\"map\",e.prototype.updateComposite.call(this,t)):e.prototype.updateComposite.call(this),this.eventsChanged=!1}}(Kn),function(e){function t(t,n,o){return e.call(this,\"camera\",t,n,o)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-camera \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){var r,i,a,s,c,u,l,d,p,h;(o.applyMicPermissionWhenInit||void 0!==o.applyMicPermissionWhenInit)&&(t.applyMicPermissionWhenInit=n.applyMicPermissionWhenInit,null===(r=e.applyMicPermissionWhenInitParam)||void 0===r||r.setAttribute(\"value\",t.applyMicPermissionWhenInit)),o.flash&&(t.flash=Hn(n.flash,\"auto\"),null===(i=e.flashParam)||void 0===i||i.setAttribute(\"value\",t.flash)),o.frameFormat&&(t.frameFormat=n.frameFormat),o.frameSize&&(t.frameSize=n.frameSize,null===(a=e.frameSizeParam)||void 0===a||a.setAttribute(\"value\",t.frameSize)),o.mode&&(t.mode=Hn(n.mode,\"normal\"),null===(s=e.modeParam)||void 0===s||s.setAttribute(\"value\",t.mode)),o.scanArea&&(t.scanArea=n.scanArea),o.outputDimension&&(t.outputDimension=n.outputDimension,null===(c=e.outputDimensionParam)||void 0===c||c.setAttribute(\"value\",t.outputDimension)),o.devicePosition&&(t.devicePosition=Hn(n.devicePosition,\"back\"),null===(u=e.devicePositionParam)||void 0===u||u.setAttribute(\"value\",t.devicePosition)),o.recordVideoOnly&&(t.recordVideoOnly=n.recordVideoOnly,null===(l=e.recordVideoOnlyParam)||void 0===l||l.setAttribute(\"value\",t.recordVideoOnly)),o.extraInfo&&(t.extraInfo=n.extraInfo,null===(d=e.extraInfoParam)||void 0===d||d.setAttribute(\"value\",t.extraInfo)),o.engineVersion&&(t.cameraVersion=n.engineVersion,null===(p=e.cameraVersionParam)||void 0===p||p.setAttribute(\"value\",t.cameraVersion)),o.scanCodeFullResult&&(t.needScanCodeDetail=n.scanCodeFullResult,null===(h=e.needScanCodeDetailParam)||void 0===h||h.setAttribute(\"value\",t.needScanCodeDetail))}(this,n,e,t),this.fillDynamicAttributes(\"camera\",t,e,n,!0)},t.prototype.attachCompositeNode=function(t){var n=this.data;this.modeParam=this.setParamElem(\"mode\",n.mode),this.devicePositionParam=this.setParamElem(\"devicePosition\",n.devicePosition),this.flashParam=this.setParamElem(\"flash\",n.flash),this.frameSizeParam=this.setParamElem(\"frameSize\",\"\"),this.applyMicPermissionWhenInitParam=this.setParamElem(\"applyMicPermissionWhenInit\",\"\"),this.outputDimensionParam=this.setParamElem(\"outputDimension\",\"\"),this.recordVideoOnlyParam=this.setParamElem(\"recordVideoOnly\",\"\"),this.extraInfoParam=this.setParamElem(\"extraInfo\",\"\"),this.cameraVersionParam=this.setParamElem(\"cameraVersion\",\"\"),this.needScanCodeDetailParam=this.setParamElem(\"needScanCodeDetail\",\"\"),e.prototype.attachCompositeNode.call(this,t)}}($n),function(e){function t(t,n,o,r){var i=e.call(this,\"canvas\",t,\"PageReadied\")||this;return i.instance=n,i.config=o,i.feature=r,i.onRenderReady=i.onRenderReady.bind(i),i}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-canvas \"+t)},t.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.config.setParamElement&&(this.renderModeParam=this.setParamElem(\"uc_render_mode\",\"3\")),this.config.canvasReady&&this.feature.canvasReady&&this.addTask(\"nbcomponent.canvas.ready\",this.bridgeId,this.onRenderReady,Zn,qn)},t.prototype.processAttrs=function(e,t){var n=this.data;this.config.setParamElement&&(e===t||t)&&this.handleSelfDrawAndUCRenderMode(t),function(e,t,n){n.width&&(e.width=t.width+\"\"),n.height&&(e.height=t.height+\"\"),n.offscreen&&(e.offscreen=t.offscreen?\"true\":\"false\"),n.disableScroll&&(e.disableScroll=t.disableScroll?\"true\":\"false\"),n.type&&(e.type=t.type+\"\"),n.useVideoRecorder&&(e.useVideoRecorder=t.useVideoRecorder?\"true\":\"false\")}(n,e,t),this.fillDynamicAttributes(\"canvas\",t,e,n)},t.prototype.destroy=function(t){this.config.setParamElement&&(this.renderModeParam&&(this.renderModeParam=void 0),this.selfDrawParam&&(this.selfDrawParam=void 0)),this.config.canvasReady&&this.feature.canvasReady&&this.removeTask(\"nbcomponent.canvas.ready\",this.bridgeId),e.prototype.destroy.call(this,t)},t.prototype.attachCompositeNode=function(t){this.config.attatchCompositeNodeWhenDrawComposite||e.prototype.attachCompositeNode.call(this,t)},t.prototype.compositeUpdateProps=function(t,n){e.prototype.compositeUpdateProps.call(this,t,n),this.config.setParamElement&&this.handleSelfDrawAndUCRenderMode(t)},t.prototype.compositeNeed2Create=function(){var t=this;this.appendEssentialData((function(){t.config.canvasReady?t.drawComposite(t.data):t.drawComposite(t.data,void 0,void 0,t.onRenderReady),t.config.attatchCompositeNodeWhenDrawComposite&&e.prototype.attachCompositeNode.call(t)}))},t.prototype.updateComposite=function(){var t=this;this.appendEssentialData((function(){e.prototype.updateComposite.call(t)}))},t.prototype.appendEssentialData=function(e){var t=this;this.getCompositeStyles((function(n){var o=t.data,r=n.clientWidth,i=n.clientHeight,a=n.backgroundColor;n.transform,o.width||(o.width=r+\"\"),o.height||(o.height=i+\"\"),o.timeStamp=Date.now()+\"\",o.backgroundColor||(o.backgroundColor=function(e){if(/^rgb/i.test(e)){for(var t=e.replace(/[a-z()\\s]/gi,\"\").split(\",\"),n=t.length,o=\"#\",r=1,i=0;i<n;i+=1){var a=Number(t[i]);3===i&&(a=parseInt(255*a+\"\",10));var s=a.toString(16),c=s.length;c<2&&(s=\"0\"+s,c+=1),o+=s,r+=c}if(7===r)return o+\"ff\";if(9===r)return o}return e}(a)),e()}))},t.prototype.handleSelfDrawAndUCRenderMode=function(e){var t=this.getStartupParams(),n=t&&\"1\"===t[\"canvas.selfdraw\"],o=e&&e.offscreen;if(n&&!o?this.selfDrawParam||(this.selfDrawParam=this.setParamElem(\"selfdraw\",\"1\")):this.selfDrawParam&&(this.selfDrawParam.parentNode&&this.selfDrawParam.parentNode.removeChild(this.selfDrawParam),this.selfDrawParam=void 0),o)this.renderModeParam.setAttribute(\"value\",\"2\");else{var r=t&&\"\".concat(t.canvas_uc_render_mode);\"1\"!==r&&\"2\"!==r||this.renderModeParam.setAttribute(\"value\",r)}},t.prototype.onRenderReady=function(){this.instance.invokeRenderReady()}}(Kn),function(e){function t(t,n){var o=e.call(this,\"lottieview\",t)||this;return o.instance=n,o}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-lottie \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.downgradeLevel&&(e.downgradeLevel=Hn(t.downgradeLevel,\"\")),n.downgrade&&(e.downgrade=t.downgrade),n.config&&(e.config=t.config),n.scene&&(e.scene=Hn(t.scene,\"\")),n.optimize&&(e.optimize=t.optimize),n.md5&&(e.md5=t.md5),n.djangoId&&(e.djangoId=t.djangoId),n.autoReverse&&(e.autoReverse=Un(t.autoReverse)),n.repeatCount&&(e.repeatCount=Vn(t.repeatCount,0)),n.speed&&(e.speed=Wn(t.speed,1)),n.autoplay&&(e.autoplay=Un(t.autoplay)),n.variableLottie&&(e.variableLottie=Un(t.variableLottie)),n.variableMap&&(e.variableMap=Hn(t.variableMap,null)),n.renderType&&(e.renderType=Hn(t.renderType,\"\"))}(n,e,t),t.placeholder&&(n.placeholder=this.compositeNormalizeSrc(e.placeholder)),t.path&&(n.path=this.compositeNormalizeSrc(e.path)),t.assetsPath&&(n.assetsPath=this.compositeNormalizeSrc(e.assetsPath)),this.fillDynamicAttributes(\"lottie\",t,e,n)},t.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.instance&&this.instance.ownerOpenCapabilityElement&&(this.onAnimationStart=this.onAnimationStart.bind(this),this.addTask(\"nbcomponent.lottieview.animationStart\",this.bridgeId,this.onAnimationStart,Zn,qn))},t.prototype.destroy=function(t){this.instance&&this.instance.ownerOpenCapabilityElement&&this.removeTask(\"nbcomponent.lottieview.animationStart\",this.bridgeId),e.prototype.destroy.call(this,t)},t.prototype.onAnimationStart=function(){var e=this.instance;e&&e.ownerOpenCapabilityElement&&e.invokeAnimationStart()}}(Kn),function(e){function t(t,n){return e.call(this,\"ad\",t,n)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ad \"+t)},t.prototype.setStyleInline=function(t){e.prototype.setStyleInline.call(this,t+\" ; height: \"+this.height+\"px\")},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.extInfo&&(e.extInfo=t.extInfo),n.immediately&&(e.immediately=Un(t.immediately)),n.unitId&&(e.spaceCode=t.unitId)}(n,e,t),this.fillDynamicAttributes(\"ad\",t,e,n)},t.prototype.initClassStyleProp=function(t,n,o,r){this.setHeight(0),e.prototype.initClassStyleProp.call(this,t,n,o,r)},t.prototype.setHeight=function(e){this.height=e,this.setDOMStyle(this.root,{height:e+\"px\"})}}(Jn),function(e){function t(t,n,o){return e.call(this,\"ai-camera\",t,n,o)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ai-camera \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){var r,i,a,s,c,u,l,d;o.devicePosition&&(t.devicePosition=Hn(n.devicePosition,\"back\"),null===(r=e.devicePositionParam)||void 0===r||r.setAttribute(\"value\",t.devicePosition)),o.flash&&(t.flash=Hn(n.flash,\"auto\"),null===(i=e.flashParam)||void 0===i||i.setAttribute(\"value\",t.flash)),o.orientation&&(t.orientation=n.orientation,null===(a=e.orientationParam)||void 0===a||a.setAttribute(\"value\",t.orientation)),o.outputDimension&&(t.outputDimension=n.outputDimension,null===(s=e.outputDimensionParam)||void 0===s||s.setAttribute(\"value\",t.outputDimension)),(o.applyMicPermissionWhenInit||void 0!==o.applyMicPermissionWhenInit)&&(t.applyMicPermissionWhenInit=n.applyMicPermissionWhenInit,null===(c=e.applyMicPermissionWhenInitParam)||void 0===c||c.setAttribute(\"value\",t.applyMicPermissionWhenInit)),(o.recordVideoOnly||void 0!==o.recordVideoOnly)&&(t.recordVideoOnly=n.recordVideoOnly,null===(u=e.recordVideoOnlyParam)||void 0===u||u.setAttribute(\"value\",t.recordVideoOnly)),o.extraInfo&&(t.extraInfo=n.extraInfo,null===(l=e.extraInfoParam)||void 0===l||l.setAttribute(\"value\",t.extraInfo)),o.engineVersion&&(t.cameraVersion=n.engineVersion,null===(d=e.cameraVersionParam)||void 0===d||d.setAttribute(\"value\",t.cameraVersion))}(this,n,e,t),this.fillDynamicAttributes(\"ai-camera\",t,e,n,!0)},t.prototype.attachCompositeNode=function(t){var n=this.data;this.devicePositionParam=this.setParamElem(\"devicePosition\",n.devicePosition),this.flashParam=this.setParamElem(\"flash\",n.flash),this.orientationParam=this.setParamElem(\"orientation\",\"\"),this.outputDimensionParam=this.setParamElem(\"outputDimension\",\"\"),this.applyMicPermissionWhenInitParam=this.setParamElem(\"applyMicPermissionWhenInit\",\"\"),this.recordVideoOnlyParam=this.setParamElem(\"recordVideoOnly\",\"\"),this.extraInfoParam=this.setParamElem(\"extraInfo\",\"\"),this.cameraVersionParam=this.setParamElem(\"cameraVersion\",\"\"),e.prototype.attachCompositeNode.call(this,t)}}($n),function(e){function t(t,n){return e.call(this,\"ar\",t,n)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ar \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.src&&(e.src=t.src),n.cameraEnable&&(e[\"camera-enable\"]=t.cameraEnable),n.cameraPosition&&(e[\"camera-position\"]=t.cameraPosition),n.gestureDraggable&&(e[\"gesture-draggable\"]=t.gestureDraggable),n.gestureRotatable&&(e[\"gesture-rotatable\"]=t.gestureRotatable),n.gestureScalable&&(e[\"gesture-scalable\"]=t.gestureScalable),n.trackAttitude&&(e[\"track-attitude\"]=t.trackAttitude),n.trackFace&&(e[\"track-face\"]=t.trackFace),n.trackFaceBeauty&&(e[\"track-face-beauty\"]=Hn(t.trackFaceBeauty,0)),n.trackFaceSmile&&(e[\"track-face-smile\"]=Hn(t.trackFaceSmile,0)),n.trackFaceMax&&(e[\"track-face-max\"]=t.trackFaceMax),n.trackMode&&(e[\"track-mode\"]=t.trackMode)}(n,e,t),this.fillDynamicAttributes(\"ar\",t,e,n)},t.prototype.drawEntity=function(e){this.drawComposite(this.data,{frame:e.size})}}(Jn),function(e){function t(t,n){return e.call(this,\"ad\",t,n)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-cdp \"+t)},t.prototype.setStyleInline=function(t){e.prototype.setStyleInline.call(this,t+\" ; height: \"+this.height+\"px\")},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.extInfo&&(e.extInfo=t.extInfo),n.immediately&&(e.immediately=Un(t.immediately)),n.spaceCode&&(e.spaceCode=t.spaceCode)}(n,e,t),this.fillDynamicAttributes(\"cdp\",t,e,n)},t.prototype.initClassStyleProp=function(t,n,o,r){this.setHeight(0),e.prototype.initClassStyleProp.call(this,t,n,o,r)},t.prototype.setHeight=function(e){this.height=e,this.setDOMStyle(this.root,{height:e+\"px\"})}}(Jn),function(e){function t(t,n){var o=e.call(this,\"live-player\",t)||this;return o.feature=n,o}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-live-player \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o,r){var i,a;if((o.src||void 0!==n.src)&&(t.src=n.src,null===(i=e.srcParam)||void 0===i||i.setAttribute(\"value\",t.src)),(o.mode||void 0!==n.mode)&&(t.mode=Hn(n.mode,\"live\"),null===(a=e.modeParam)||void 0===a||a.setAttribute(\"value\",t.mode)),o.muted&&(t.muted=Un(n.muted)),o.autoplay&&(t.autoplay=Un(n.autoplay)),(o.orientation||void 0!==n.orientation)&&(t.orientation=Hn(n.orientation,\"vertical\")),(o.objectFit||void 0!==n.objectFit)&&(t.objectFit=Hn(n.objectFit,\"contain\")),o.backgroundMute&&(t.backgroundMute=Un(n.backgroundMute)),o.floatingMode||void 0!==n.floatingMode){var s=n.floatingMode;Fn(\"floatingMode\")||(null==r?void 0:r.floatingMode)||\"miniprogram\"!==s||(s=\"microapp\"),t.floatingMode=s}(o.minCache||void 0!==n.minCache)&&(t.minCache=Wn(n.minCache,1)),(o.maxCache||void 0!==n.maxCache)&&(t.maxCache=Wn(n.maxCache,3)),(o.extraInfo||void 0!==n.extraInfo)&&(t.extraInfo=t[\"extra-info\"]=n.extraInfo)}(this,n,e,t,this.feature),this.fillDynamicAttributes(\"live-player\",t,e,n)},t.prototype.attachCompositeNode=function(t){var n=this.data;this.srcParam=this.setParamElem(\"src\",n.src),this.modeParam=this.setParamElem(\"mode\",n.mode),e.prototype.attachCompositeNode.call(this,t)}}(Kn),function(e){function t(t){return e.call(this,\"live-pusher\",t)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-live-pusher \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data,o=e===t;o&&(this.modeDOM=this.setParamElem(\"mode\",\"RTC\"),this.urlDOM=this.setParamElem(\"url\",\"\")),function(e,t,n,o,r){var i,a;if(o.mode||r&&void 0!==o.mode){var s=t.mode=Hn(n.mode,\"RTC\");null===(i=e.modeDOM)||void 0===i||i.setAttribute(\"value\",s)}if((o.enableCamera||r&&void 0!==o.enableCamera)&&(t.enableCamera=zn(n.enableCamera)),(o.autoFocus||r&&void 0!==o.autoFocus)&&(t.autoFocus=zn(n.autoFocus)),o.beauty&&(t.beauty=Wn(n.beauty,0)),o.whiteness&&(t.whiteness=Wn(n.whiteness,0)),(o.aspect||r&&void 0!==o.aspect)&&(t.aspect=Hn(n.aspect,\"9:16\")),(o.minBitrate||r&&void 0!==o.minBitrate)&&(t.minBitrate=Wn(n.minBitrate,200)),(o.maxBitrate||r&&void 0!==o.maxBitrate)&&(t.maxBitrate=Wn(n.maxBitrate,1e3)),o.autopush&&(t.autopush=Un(n.autopush)),o.muted&&(t.muted=Un(n.muted)),o.orientation&&(t.orientation=Hn(n.orientation,!1)),o.zoom&&(t.zoom=Un(n.zoom)),o.backgroundMute&&(t.backgroundMute=Un(n.backgroundMute)),(o.enableAgc||r&&void 0!==o.enableAgc)&&(t.enableAgc=zn(n.enableAgc)),(o.enableAns||r&&void 0!==o.enableAns)&&(t.enableAns=zn(n.enableAns)),o.record&&(t.record=Un(n.record)),o.url){var c=t.url=n.url;null===(a=e.urlDOM)||void 0===a||a.setAttribute(\"value\",c)}o.waitingImage&&(t.waitingImage=n.waitingImage),o.waitingImageHash&&(t.waitingImageHash=n.waitingImageHash),o.devicePosition&&(t.devicePosition=n.devicePosition)}(this,n,e,t,o),this.fillDynamicAttributes(\"live-pusher\",t,e,n)}}(Kn),function(e){function t(t){return e.call(this,\"rtc-room\",t)||this}Qn(t,e),t.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-rtc-room \"+t)},t.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){n.roomId&&(e.roomId=t.roomId),n.token&&(e.token=t.token),n.userId&&(e.userId=t.userId),n.signature&&(e.signature=t.signature),(n.fps||o&&void 0!==n.fps)&&(e.fps=Vn(t.fps,15)),(n.resolution||o&&void 0!==n.resolution)&&(e.resolution=Vn(t.resolution,1)),(n.beautyLevel||o&&void 0!==n.beautyLevel)&&(e.beautyLevel=Vn(t.beautyLevel,0)),(n.enableCamera||o&&void 0!==n.enableCamera)&&(e.enableCamera=zn(t.enableCamera)),n.autoplay&&(e.autoplay=t.autoplay),n.mute&&(e.mute=t.mute),n.record&&(e.record=t.record),n.minBitrate&&(e.minBitrate=t.minBitrate),n.maxBitrate&&(e.maxBitrate=t.maxBitrate),n.extraInfo&&(e.extraInfo=t.extraInfo),n.channelId&&(e.channelId=t.channelId),n.aliyunInfo&&(e.aliyunInfo=t.aliyunInfo),n.privateMapKey&&(e.privateMapKey=t.privateMapKey),n.disableInteractive&&(e.disableInteractive=t.disableInteractive),n.enableProximityMonitor&&(e.enableProximityMonitor=t.enableProximityMonitor),n.enableVideoOnlyMode&&(e.enableVideoOnlyMode=t.enableVideoOnlyMode)}(n,e,t,e===t),this.fillDynamicAttributes(\"rtc-room\",t,e,n)}}(Kn);var ao=function(e,t){return ao=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ao(e,t)};function so(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function co(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}var uo=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),lo=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new uo(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function po(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}var ho=function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,o,r,i;return so(this,(function(a){switch(a.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];o=n.node,a.label=1;case 1:return o?(r=o).component&&2===r.component.type?[4,i=r.component]:[3,4]:[3,5];case 2:return a.sent(),[5,co(this.iterateChildTargetByOwnerId(i,t))];case 3:a.sent(),a.label=4;case 4:return o=o.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var o,r,i,a,s,c,u,l,d,p,h,f,g;return so(this,(function(m){switch(m.label){case 0:if(!e.slotProviders)return[2,null];o=e.slotProviders,m.label=1;case 1:m.trys.push([1,13,14,15]),r=co(o),i=r.next(),m.label=2;case 2:if(i.done)return[3,12];a=i.value,s=this.iterateDeepSlotBlockByOwnerId(e,t),m.label=3;case 3:if(!1!==(c=s.next()).done)return[3,9];if(!(u=c.value).node)return[3,8];if(u.provider!==a)return[3,8];l=u.node.firstChild,m.label=4;case 4:return l?(d=l).component?2!==d.component.type?[3,7]:[4,p=d.component]:[3,7]:[3,8];case 5:return m.sent(),n?[3,7]:[5,co(this.iterateChildTargetByOwnerId(p,t))];case 6:m.sent(),m.label=7;case 7:return l=l.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=r.next(),[3,2];case 12:return[3,15];case 13:return h=m.sent(),f={error:h},[3,15];case 14:try{i&&!i.done&&(g=r.return)&&g.call(r)}finally{if(f)throw f.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,o,r,i;return so(this,(function(a){switch(a.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,a.label=1;case 1:return n?(o=n).component&&1===o.component.type?(r=o.component,s=r.provider,((c=s.slotProviderParentContextInstance).type<2?c.option.parentTarget:c).targetId!==t?[3,3]:[4,r]):[3,6]:[3,9];case 2:return a.sent(),[3,5];case 3:return[5,co(this.iterateDeepSlotBlockByOwnerId(r,t))];case 4:a.sent(),a.label=5;case 5:return[3,8];case 6:return o.component&&2===o.component.type&&(i=o.component).slotProviders?[5,co(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:a.sent(),a.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var s,c}))},e.prototype.iterateTargetDeep=function(e,t){var n,o;return so(this,(function(r){switch(r.label){case 0:return[5,co(this.iterateDeepXML(e))];case 1:r.sent(),n=this.iterateChildTargetByOwnerId(e,t),r.label=2;case 2:return!1!==(o=n.next()).done?[3,5]:[4,o.value];case 3:return r.sent(),[5,co(this.iterateDeepXML(o.value))];case 4:return r.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,o;return so(this,(function(r){switch(r.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,r.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return r.sent(),[5,co(this.iterateTargetDeep(n,e.targetId))];case 3:r.sent(),o=po(n),r.label=4;case 4:return o?[4,o]:[3,7];case 5:return r.sent(),[5,co(this.iterateDeepXML(o))];case 6:return r.sent(),o=po(o),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,r.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}();function fo(e,t){var n=t.nextSibling,o=t.previousSibling;n?(n.previousSibling=o,t.nextSibling=null):e.lastChild=o,o?(o.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}function go(e,t){var n=t.parent;n&&fo(n,t),t.parent=e;var o=e.lastChild;o?(t.previousSibling=o,o.nextSibling=t):e.firstChild=t,e.lastChild=t}function mo(e,t,n){var o,r=e.target,i={destroy:Rn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:null};if(n){for(var a=n.root.textContent,s=e.index,c=void 0;;){if(!(c=e.nodes.item(s))){var u=t.document.document.createComment(a);i.root=u,r.appendChild(i);break}if(i.root=c,8===c.nodeType&&c.textContent===a){go(r,i);break}if(e.stopReverseIndex===e.nodes.length-s){var l={destroy:Rn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:c};u=t.document.document.createComment(a);i.root=u,go(r,l),r.insertBefore(i,l),fo(r,l);break}r.removeChild(i)}return e.index++,i}c=e.nodes.item(e.index++);return i.root=c,c&&8===c.nodeType?go(r,i):(o={destroy:Rn,eType:0,nextSibling:null,parent:null,previousSibling:null,root:t.document.document.createComment(yo())},c?(go(r,i),r.insertBefore(o,i),e.stopReverseIndex===e.nodes.length-e.index?fo(r,i):r.removeChild(i)):r.appendChild(o)),o||i}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=hn(),t}(function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}ao(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},t.prototype.iterateChildTargetByOwnerId=function(t,n,o){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,o])},t.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},t.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},t.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},t.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(an||pn(),n=new an,this.cache.set(e,n));var o=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),r=n.get(o);return r||(r=new lo(e.apply(this,t))),r.ref()}}(ho);var vo=0;var yo=function(){return\"z:\".concat(++vo)};function bo(e,t,n){for(var o=[],r=e,i=null;r&&!t(r);){switch(r.eType){case 1:case 2:null===i&&o.push(n.getZNodeDebugInfo(r));break;case 0:var a=r.root.textContent;if(null===i&&\"b\"===a[0])i=parseInt(a.slice(2),10);else if(null!==i&&a===Po(i)){var s=n.getZNodeComponentDebugInfo(i);s.skipSerialization()||o.push(s),i=null}}r=r.nextSibling}return o}function wo(e){var t=e.getZRuntimeHelper();function n(t,n,o,r,i,a){var s=e.getZNodeDebugInfo(t);e.pageInstance||(e.pageInstance=n.root),s.nodeType===qt.Element&&(s.setLinkedContext(n),o&&s.updateClassName(o),r&&s.updateInlineStyle(t.cachedNormalizedStyleString||r),s.updateProperties(i))}function o(t,n){var o=e.getZNodeDebugInfo(t);o.nodeType===qt.Element&&(o.updateDataset(n),o.invalidate())}function r(t){var n=t._debug;if(n){if(n.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n.nodeId,parentNodeId:n.getParentNodeId()}),e.nodeId2ZNode.delete(n.nodeId),e.nodeId2DOMNode.delete(n.nodeId),n.nodeType===qt.Element){e.shadowRootNodeId2ZNode.delete(n.shadowRootNodeId);var o=n.pseudoNodeType2Id;o&&Object.keys(o).forEach((function(t){e.nodeId2PseudoElement.delete(o[t])}))}delete t._debug}}function i(t,n,o){var r=e.getZNodeDebugInfo(n),i=r.getParentNode();if(1===i.getParentNodeId()||\"PAGE\"===i.nodeName)e.sendMessage(\"DOM.setChildNodes\",{nodes:i.getChildNodes().map((function(e){return e.serialize(0)})),parentId:i.nodeId}),e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId});else if(i.activated)if(i.childrenActivated){var a=0,s=r.getPreviousElementOrTextSibling();s&&(a=s.nodeId),e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:r.nodeId,parentNodeId:i.nodeId}),e.sendMessage(\"DOM.childNodeInserted\",{node:r.serialize(0),parentNodeId:i.nodeId,previousNodeId:a})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:i.getChildNodeCount(),nodeId:i.nodeId})}if(So(t,\"x\",(function(e,t){n.apply(void 0,t)})),So(t,\"xp\",(function(e,t){n.apply(void 0,t)})),So(t,\"xa\",(function(e,t){n.apply(void 0,t)})),So(t,\"xi\",(function(e,t){n.apply(void 0,t)})),So(t,\"xai\",(function(e,t){n.apply(void 0,t)})),So(t,\"W\",(function(e,t){n.apply(void 0,t)})),So(t,\"X\",(function(t,n){var o=n[0],r=(n[1],n[2]),i=n[3],a=n[4],s=n[5],c=n[6],u=e.getZNodeDebugInfo(o);u.nodeType===qt.Element&&(i&&u.updateClassName(r),s&&u.updateInlineStyle(o.cachedNormalizedStyleString||a),u.updateProperties(c),u.invalidate())})),So(t,\"y\",(function(t,n){var o=n[0],r=(n[1],n[2]),i=n[3],a=n[4],s=e.getZNodeDebugInfo(o);s.nodeType===qt.Element&&(i&&s.updateClassName(r),s.updateProperties(a),s.invalidate())})),So(t,\"Y\",(function(t,n){var o=n[0],r=(n[1],n[2]),i=n[3],a=n[4],s=e.getZNodeDebugInfo(o);s.nodeType===qt.Element&&(i&&s.updateInlineStyle(o.cachedNormalizedStyleString||r),s.updateProperties(a),s.invalidate())})),So(t,\"w\",(function(t,n){var o=n[0],r=(n[1],n[2]),i=e.getZNodeDebugInfo(o);i.nodeType===qt.Element&&(i.updateProperties(r),i.invalidate())})),So(t,\"ea\",(function(t,n){var o=n[0],r=n[1],i=n[2],a=e.getZNodeDebugInfo(o);a.nodeType===qt.Element&&(a.updateAttribute(r,i),a.invalidate())})),So(t,\"g\",(function(e,t){o.apply(void 0,t)})),So(t,\"Q\",(function(e,t){o.apply(void 0,t)})),So(t,\"G\",(function(e,t){o.apply(void 0,t)})),So(t,\"n\",(function(t,n){var o=n[0],r=n[1];if(o.firstChild){var i=o.firstChild._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:r,nodeId:i.nodeId})}else{var a={destroy:function(){},eType:2,formattedText:null,nextSibling:null,parent:o,previousSibling:null,get root(){var e=this.parent.root;return function(e){return e&&\"childNodes\"in e}(e)?e.childNodes[0]:null},text:r};a.root&&(o.firstChild=o.lastChild=a)}})),So(t,\"N\",(function(t,n){var o=n[0],r=n[1],i=o._debug;i&&i.activated&&e.sendMessage(\"DOM.characterDataModified\",{characterData:r,nodeId:i.nodeId})})),Co(t,\"r\",(function(e){r(e[0])})),Co(t,\"R\",(function(e){r(e[0])})),So(t,\"i\",(function(e,t){t[0];var n=t[1];t[2];i(0,n)})),So(t,\"a\",(function(e,t){t[0];i(0,t[1])})),So(t,\"I\",(function(e,t){t[0];var n=t[1];t[2];i(0,n)})),So(t,\"A\",(function(e,t){t[0];i(0,t[1])})),So(t,\"t\",(function(t,n){var o=n[0];e.getZNodeDebugInfo(t).setLinkedContext(o)})),So(t,\"p\",(function(t,n){var o=n[0],r=n[1],i=n[2],a=o.getTargetId();if(e.componentTargetId2ZNode.has(a)){var s=e.componentTargetId2ZNode.get(a);s.activated&&(s.updateProperties(r,i),s.invalidate())}})),Co(t,\"m\",(function(t){var n=t[0],o=t[1],r=t[2];e.componentTargetId2LinkedInstance.set(n.targetId,n);var i=n.root.document.createComment(xo(n.getTargetId()));n._anchor4Head=i,o.insertBefore(i,r)})),So(t,\"m\",(function(t,n){var o=n[0],r=n[1],i=n[2],a=o.root.document.createComment(Po(o.getTargetId()));o._anchor4Tail=a,r.insertBefore(a,i);var s=e.getZNodeComponentDebugInfo(o.getTargetId()),c=s.getParentNode();if(c&&c.activated)if(c.childrenActivated){var u=s.getPreviousElementOrTextSibling();e.sendMessage(\"DOM.childNodeInserted\",{node:s.serialize(0),parentNodeId:c.nodeId,previousNodeId:u?u.nodeId:0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:c.getChildNodeCount(),nodeId:c.nodeId})})),Co(t,\"q\",(function(e){var t=e[0],n=e[1],o=mo(t,n),r=o.root.textContent;\"b\"===r[0]&&(o.root.textContent=\"e\"+r.slice(1));var i=function(e,t){for(var n,o=t.root.textContent,r=e.index,i=e.nodes.length;r<i&&(n=e.nodes.item(r))&&(8!==n.nodeType||n.textContent!==o);)r++;return i-r}(t,o);!function(e,t){e.stopReverseIndex=t,e.stopReverseIndexStack.push(t)}(t,i),n._anchor4Head=o})),So(t,\"q\",(function(t,n){var o=n[0],r=n[1],i=r.getTargetId();!function(e){e.stopReverseIndexStack.pop(),e.stopReverseIndex=e.stopReverseIndexStack[e.stopReverseIndexStack.length-1]||0}(o);var a=r._anchor4Head,s=r._anchor4Tail=mo(o,r,a);a.root.textContent=xo(i),s.root.textContent=Po(i),e.componentTargetId2LinkedInstance.set(i,r),e.componentTargetId2ZNode.delete(r.targetId)})),So(t,\"o\",(function(t,n){var o=n[0],r=o._anchor4Head;r&&(r.parent.removeChild(r),o._anchor4Head=null);var i=o._anchor4Tail;i&&(i.parent.removeChild(i),o._anchor4Tail=null);var a=e.componentTargetId2ZNode.get(o.targetId);a&&a.activated&&e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:a.nodeId,parentNodeId:a.getParentNodeId()}),e.componentTargetId2ZNode.delete(o.targetId),e.componentTargetId2LinkedInstance.delete(o.targetId)})),\"object\"==typeof $AppxHMRProxy&&\"function\"==typeof $AppxHMRProxy.applyUpdates){var a=$AppxHMRProxy.applyUpdates;$AppxHMRProxy.applyUpdates=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=a.apply($AppxHMRProxy,t);return setTimeout((function(){e.sendMessage(\"DOM.documentUpdated\",null)}),0),o}}}function So(e,t,n){var o=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.apply(void 0,e);try{n(r,e)}catch(e){console.error(e)}return r}}function Co(e,t,n){var o=e[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{n(e)}catch(e){console.error(e)}return o.apply(void 0,e)}}function _o(e,t){if(\"className\"===e)return[\"class\",String(t).trim()];if(\"function\"==typeof t){if(t.handleName)return[e,t.handleName]}else{if(null===t)return[e,\"null\"];if(void 0!==t){var n=\"unknown\";try{n=\"object\"==typeof t?Object.prototype.toString.call(t):t.toString()}catch(n){console.warn(\"failed to stringify node props value\",e,t)}return[e,n]}}return[]}function Io(e){var t=\"\";try{JSON.stringify(e).length>1e6&&(t=\"data is too large to display\")}catch(e){t=e.message||\"stringify error\"}return t?{data:{error:t}}:{data:e}}function xo(e){return\"\".concat(\"b\",\":\").concat(e)}function Po(e){return\"\".concat(\"e\",\":\").concat(e)}function ko(e,t,n){var o=t.nodeId,r=e.nodeId2ZNode.get(o);if(r&&r.nodeType===qt.Component)return e.activatedCustomComponentId=r.nodeId,void n(void 0,{data:Io(r.getData()).data,props:Io(r.getProps()).data,targetId:r.targetId});e.activatedCustomComponentId=void 0,n(void 0,{})}var Eo=function(e,t){return Eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Eo(e,t)};function Oo(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Mo(e){if(!e.treeTargetIds){for(var t=e,n=[];t;){t=t.previousSibling?t.previousSibling:t.parent;for(var o=0;t;){if(0===t.eType){if(\"e\"===t.root.textContent[0])o++;else if(\"b\"===t.root.textContent[0]){if(0===o){n.push({begin:t.root,targetId:parseInt(t.root.textContent.slice(2),10)});break}o--}}else{if(1===t.eType&&0===o){n.push.apply(n,Mo(t)),t=null;break}if(2===t.eType&&0===o){n.push.apply(n,Mo(t)),t=null;break}}t=t.previousSibling?t.previousSibling:t.parent}}n.length||n.push({begin:null,targetId:0}),e.treeTargetIds=n}return e.treeTargetIds}var No=function(){function e(e,t){this.devtool=e,this.node=t}return e.prototype.setParentNodeId=function(e){this.parentNodeId=e},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.node.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.getParentNode=function(){if(this.node.parent){var e=this.devtool.getZNodeDebugInfo(this.node.parent),t=Mo(this.node);return Mo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.setLinkedContext=function(e){this.linkedContext=e},e.prototype.getLinkedContext=function(){return this.linkedContext},e}();function To(e){var t=[];t.push(\"<\".concat(e.localName));var n=function(e){if(e&&0!==e.length){for(var t=[],n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];o&&r&&t.push(\"\".concat(o,'=\"').concat(r,'\"'))}return t.join(\" \")}}(e.getAllAttributes());n&&t.push(\" \".concat(n)),t.push(\">\");var o=function(e){if(e&&0!==e.length){for(var t=[],n=0,o=e;n<o.length;n++){var r=o[n];t.push(r.getOuterAXML())}return t.join(\"\")}}(e.getChildNodes());return o&&t.push(o),t.push(\"</\".concat(e.localName,\">\")),t.join(\"\")}var Ao=function(e){function t(t,n,o,r,i,a){var s=e.call(this,t,o)||this;return s.devtool=t,s.nodeName=n,s.node=o,s.nodeId=r,s.shadowRootNodeId=i,s.shadowSlotNodeId=a,s.nodeType=qt.Element,s.activated=!1,s.childrenActivated=!1,s.pendingAttributes=[],s.dataset=new Map,s.properties=new Map,s.attributes=new Map,s.inlineStyleSheetId=\"2000.\".concat(r),s.updateClassName(o.classNameExp),s.updateInlineStyle(o.inlineStyleExp),s.updateDataset(o.getDataset()),s}return Oo(t,e),Object.defineProperty(t.prototype,\"dom\",{get:function(){return this.devtool.getDOMNodeDebugInfo(this.node.root,this,this.shadowRootNodeId)},enumerable:!1,configurable:!0}),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.getShadowRootDebugNode=function(){var e=this.node.root;return this.devtool.getDOMNodeDebugInfo(e,this,this.shadowRootNodeId)},t.prototype.getClassName=function(){return this.attrClass},t.prototype.getInlineStyle=function(){return this.attrStyle},t.prototype.getDataset=function(){return this.dataset},t.prototype.updateClassName=function(e){var t=e||\"\";this.attrClass!==t&&(this.attrClass=t,this.activated&&this.pendingAttributes.push([\"class\",\"\".concat(t)]))},t.prototype.updateInlineStyle=function(e){this.attrStyle!==e&&(this.attrStyle=e,this.activated&&this.pendingAttributes.push([\"style\",\"\".concat(e)]))},t.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,o=this.pendingAttributes;n<o.length;n++){var r=o[n],i=r[0],a=r[1];t[i]=a}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n]),\"style\"===n&&e.node.setStyleInline(t[n])})),this.pendingAttributes=[],t={},this.devtool.enableShadowRootElements&&(this.devtool.flushUpdatedQueue(),this.dom&&this.dom.invalidate())}},t.prototype.getProperties=function(){var e={};return this.properties.forEach((function(t,n){e[n]=t})),e},t.prototype.updateProperties=function(e){if(e)for(var t=this.properties,n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];e[r]!==t.get(r)&&(t.set(r,e[r]),this.activated&&this.pendingAttributes.push([r,\"\".concat(e[r])]))}},t.prototype.updateDataset=function(e){if(e)for(var t=this.dataset,n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];e[r]!==t.get(r)&&(t.set(r,e[r]),this.activated&&this.pendingAttributes.push([\"data-\".concat(r),\"\".concat(e[r])]))}},t.prototype.updateAttribute=function(e,t){t!==this.attributes.get(e)&&(this.attributes.set(e,t),this.activated&&this.pendingAttributes.push([e,\"\".concat(t)]))},t.prototype.getChildNodes=function(){return bo(this.node.firstChild,(function(){return!1}),this.devtool)},t.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),o=n.length;return e>0&&o&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==o||n[0].nodeType!==qt.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),backendNodeId:this.nodeId,childNodeCount:o,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId(),pseudoElements:this.getPseudoElements(),shadowRoots:this.devtool.shadowRootElementsEnabled?[{childNodeCount:1,localName:\"\",nodeId:this.shadowRootNodeId,nodeName:\"#document-fragment\",nodeType:11,nodeValue:\"\",shadowRootType:\"dom\"}]:void 0}},Object.defineProperty(t.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),t.prototype.getOuterAXML=function(){return To(this)},t.prototype.getAllAttributes=function(){var e=[];return this.attrClass&&e.push(\"class\",\"\".concat(this.attrClass)),this.attrStyle&&e.push(\"style\",\"\".concat(this.attrStyle)),this.properties.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.attributes.forEach((function(t,n){e.push(n,\"\".concat(t))})),this.dataset.forEach((function(t,n){e.push(\"data-\".concat(n),\"\".concat(t))})),e},t.prototype.getChildNodeCount=function(){return this.getChildNodes().length},t.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},t.prototype.getPseudoElements=function(){return[]},t}(No),Do=function(e){function t(t,n,o,r){var i=e.call(this,t,n)||this;return i.devtool=t,i.node=n,i.nodeId=o,i.shadowSlotNodeId=r,i.nodeType=qt.Text,i.activated=!1,i.nodeName=\"#text\",i.dom=t.getDOMNodeDebugInfo(n.root,i),i}return Oo(t,e),t.prototype.getPlatformRootDOM=function(){return this.node.root},t.prototype.serialize=function(e){return this.activated=!0,{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:this.nodeName,nodeType:3,nodeValue:this.node.root.textContent,parentId:this.getParentNodeId()}},t.prototype.getOuterAXML=function(){return this.node.root.textContent},t}(No),Ro=function(){function e(e,t,n){var o=this;this.devtool=e,this.targetId=t,this.nodeId=n,this.nodeType=qt.Component,this.nodeName=\"component\",this.activated=!1,this.childrenActivated=!1,this.pendingAttributes=[],this.componentInstance=e.componentTargetId2LinkedInstance.get(t),this.beginAnchor=this.componentInstance._anchor4Head,this.parentNodeId=this.getParentNodeId();var r=rn(e.sendMessage.bind(e),500,setTimeout,clearTimeout),i=this.componentInstance._fragment.u;this.componentInstance._fragment.u=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=i.apply(o.componentInstance._fragment,t);return e.activatedCustomComponentId===n&&r(\"Tiny.Elements.componentDataChanged\",{data:Io(o.getData()).data,nodeId:n,targetId:o.targetId}),s};var a=rn(e.sendMessage.bind(e),500,setTimeout,clearTimeout),s=this.componentInstance.receiveProps;this.componentInstance.receiveProps=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];s.apply(o.componentInstance,t),e.activatedCustomComponentId===n&&a(\"Tiny.Elements.componentDataChanged\",{nodeId:n,props:Io(o.getProps()).data,targetId:o.targetId})},this.invalidate=rn(this.invalidate.bind(this),500,setTimeout,clearTimeout)}return e.prototype.getChildNodes=function(){var e=this;return bo(this.beginAnchor.nextSibling,(function(t){if(0===t.eType&&t.root.textContent===Po(e.targetId))return!0}),this.devtool)},e.prototype.serialize=function(e){this.activated=!0;var t,n=this.getChildNodes(),o=n.length;return e>0&&(t=n.map((function(t){return t.serialize(e-1)}))),t||1!==o||n[0].nodeType!==qt.Text||(t=[n[0].serialize(0)]),t&&t.length&&(this.childrenActivated=!0),{attributes:this.getAllAttributes(),placeholderComponentInfo:this.getPlaceholderComponentInfo(),backendNodeId:this.nodeId,childNodeCount:o,children:t,localName:this.localName,nodeId:this.nodeId,nodeName:this.nodeName,nodeType:1,nodeValue:\"\",parentId:this.getParentNodeId()}},Object.defineProperty(e.prototype,\"localName\",{get:function(){return this.nodeName.toLowerCase()},enumerable:!1,configurable:!0}),e.prototype.getOuterAXML=function(){return To(this)},e.prototype.getAllAttributes=function(){var e=this,t=this.componentInstance.fixedReceivedPropKeys,n=this.componentInstance.componentIs;\"string\"==typeof n&&\"/\"===n[0]&&(n=n.substring(1));var o=[\"is\",n];return this.componentInstance.externalClasses&&o.push(\"externalClasses\",this.componentInstance.externalClasses.join(\" \")),t&&t.forEach((function(t){o.push.apply(o,_o(t,e.componentInstance._state[t]))})),o},e.prototype.getComponentIs=function(){return this.componentInstance.componentIs},e.prototype.getPlaceholderComponentInfo=function(){if(this.componentInstance.getPlaceholderComponentInfo)return this.componentInstance.getPlaceholderComponentInfo()},e.prototype.getComponentInstance=function(){return this.componentInstance},e.prototype.getParentNodeId=function(){var e;return this.parentNodeId||(this.parentNodeId=null===(e=this.getParentNode())||void 0===e?void 0:e.nodeId),this.parentNodeId},e.prototype.getParentNode=function(){if(this.beginAnchor.parent){var e=this.devtool.getZNodeDebugInfo(this.beginAnchor.parent),t=Mo(this.beginAnchor);return Mo(e.node)[0].targetId===t[0].targetId?e:this.devtool.getZNodeComponentDebugInfo(t[0].targetId)}},e.prototype.getData=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys,o=void 0===n?[]:n;return Object.keys(this.componentInstance._state).forEach((function(n){\"$id\"!==n&&-1===o.indexOf(n)&&(t[n]=e.componentInstance._state[n])})),t},e.prototype.getProps=function(){var e=this,t={},n=this.componentInstance.fixedReceivedPropKeys;return(void 0===n?[]:n).forEach((function(n){t[n]=e.componentInstance._state[n]})),t},e.prototype.getChildNodeCount=function(){return this.getChildNodes().length},e.prototype.getPreviousElementOrTextSibling=function(){for(var e=this.beginAnchor.previousSibling;e&&1!==e.eType&&2!==e.eType;){if(0===e.eType){if(\"b\"===e.root.textContent[0])return null;if(\"e\"===e.root.textContent[0])return this.devtool.getZNodeComponentDebugInfo(parseInt(e.root.textContent.slice(2),10))}e=e.previousSibling}return e?this.devtool.getZNodeDebugInfo(e):null},e.prototype.updateProperties=function(e,t){var n=this;Object.keys(t).forEach((function(o){t[o]&&n.pendingAttributes.push([o,\"\".concat(e[o])])}))},e.prototype.invalidate=function(){var e=this;if(this.activated&&this.pendingAttributes.length){for(var t={},n=0,o=this.pendingAttributes;n<o.length;n++){var r=o[n],i=r[0],a=r[1];t[i]=a}Object.keys(t).forEach((function(n){e.onAttributeModifiedByEngine(n,t[n])})),this.pendingAttributes=[],t={}}},e.prototype.onAttributeModifiedByEngine=function(e,t){this.devtool.sendMessage(\"DOM.attributeModified\",{name:e,nodeId:this.nodeId,value:\"\".concat(t)})},e.prototype.skipSerialization=function(){return\"my-open-private://appx/portable\"===this.componentInstance.componentIs},e}(),Lo=function(){function e(e,t,n,o,r){this.devtool=e,this.node=t,this.nodeId=n,this.parentNodeId=o,this.znode=r,this.nodeType=1,this.activated=!1}return e.prototype.invalidate=function(){if(this.lastSerializedJSON){var e=this.serialize(this.lastSerializedJSON.children?1:0,!1);this.checkAttributesModified(this.lastSerializedJSON.attributes||[],e.attributes||[]),this.lastSerializedJSON.children&&this.checkChildNodesUpdated(this.lastSerializedJSON.children,e.children||[]),this.lastSerializedJSON=e}},e.prototype.serialize=function(e,t){void 0===t&&(t=!0),this.activated=!0;for(var n,o,r=this.node,i=0,a=0,s=this.getChildNodes(r);a<s.length;a++){var c=s[a];if(1===c.nodeType||3===c.nodeType){var u=this.devtool.getDOMNodeDebugInfo(c,null,this.nodeId);if(u.znode){if(!o){var l=u.znode.shadowSlotNodeId;o={backendNodeId:l,childNodeCount:0,children:[],distributedNodes:[],localName:\"slot\",nodeId:l,nodeName:\"SLOT\",nodeType:1,nodeValue:\"\",parentId:this.nodeId}}var d=o.distributedNodes;d||(d=o.distributedNodes=[]),d.push({backendNodeId:u.znode.nodeId,nodeName:u.znode.nodeName,nodeType:c.nodeType});continue}o&&(e>0&&(n||(n=[]),n.push(o)),i++),o=null,e>0&&(n||(n=[]),n.push(u.serialize(e-1,t))),i++}}o&&(e>0&&(n||(n=[]),n.push(o)),i++);var p=[],h=this.getAttributes(r);for(var f in h)p.push(f,h[f]);var g=this.getNodeName(r),m={attributes:p,backendNodeId:this.nodeId,childNodeCount:i,children:n,localName:g.toLowerCase(),nodeId:this.nodeId,nodeName:g,nodeType:1,nodeValue:\"\",parentId:this.parentNodeId,pseudoElements:this.getPseudoElements()};return t&&(this.lastSerializedJSON=m),m},e.prototype.checkAttributesModified=function(e,t){for(var n=this,o=new Map,r=0;r<e.length-1;r+=2)o.set(e[r],e[r+1]);for(r=0;r<t.length-1;r+=2){var i=t[r],a=t[r+1];if(o.has(i)){var s=o.get(i);o.delete(i),s!==a&&this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:a})}else this.devtool.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:this.nodeId,value:a})}o.forEach((function(e,t){n.devtool.sendMessage(\"DOM.attributeRemoved\",{name:t,nodeId:n.nodeId})}))},e.prototype.checkChildNodesUpdated=function(e,t){var n=this;Bo(e,t,(function(e,t){return e.nodeId===t.nodeId}),(function(e){var o=t[t.indexOf(e)-1];n.devtool.sendMessage(\"DOM.childNodeInserted\",{node:e,parentNodeId:e.parentId,previousNodeId:o?o.nodeId:0})}),(function(e){n.devtool.sendMessage(\"DOM.childNodeRemoved\",{nodeId:e.nodeId,parentNodeId:e.parentId})}),(function(e,t){if(\"SLOT\"===e.nodeName){var o=function(){n.devtool.sendMessage(\"DOM.distributedNodesUpdated\",{distributedNodes:t.distributedNodes||[],insertionPointId:t.nodeId})};Bo(e.distributedNodes||[],t.distributedNodes||[],(function(e,t){return e.backendNodeId===t.backendNodeId}),o,o)}else{var r=n.devtool.nodeId2DOMNode.get(e.nodeId);r&&1===r.nodeType&&r.invalidate()}}))},e.prototype.getPseudoElements=function(){return[]},e}();function Bo(e,t,n,o,r,i){var a=t.slice();e.forEach((function(e){var t=-1;a.some((function(o,r){if(n(e,o))return t=r,!0})),t>-1?(i&&i(e,a[t]),a.splice(t,1)):r(e)})),a.forEach(o)}var jo=function(){function e(e,t,n,o){this.devtool=e,this.node=t,this.nodeId=n,this.znode=o,this.nodeType=3,this.activated=!1}return e.prototype.serialize=function(){var e=this.node;return{backendNodeId:this.nodeId,childNodeCount:0,localName:\"\",nodeId:this.nodeId,nodeName:\"#text\",nodeType:3,nodeValue:e.textContent,parentId:this.devtool.getDOMNodeDebugInfo(this.node.parentNode,this.znode).nodeId}},e}(),Fo=function(){function e(e){this.option=e,this.nodeId2ZNode=new Map,this.shadowRootNodeId2ZNode=new Map,this.nodeId2DOMNode=new Map,this.nodeId2PseudoElement=new Map,this.componentTargetId2ZNode=new Map,this.componentTargetId2LinkedInstance=new Map,this.shadowRootElementsEnabled=!1,this.rootNodeId=1,this.nextNodeId=this.rootNodeId+1,this.dependecyFactory=e.dependencyFactory}return e.prototype.sendMessage=function(e,t){this.option.connection.sendMessage(e,t)},e.prototype.sendMessageWithPriority=function(e,t){this.option.connection.sendMessage(e,t,!0)},e.prototype.getZRuntimeHelper=function(){return this.option.debugProxy.getZRuntime().h},e.prototype.getClientProxy=function(){return this.option.clientProxy},e.prototype.getZNodeDebugInfo=function(e){if(e._debug){var t=e._debug;void 0===t.nodeId||this.nodeId2ZNode.has(t.nodeId)||this.nodeId2ZNode.set(t.nodeId,t),void 0===t.shadowRootNodeId||this.shadowRootNodeId2ZNode.has(t.shadowRootNodeId)||this.shadowRootNodeId2ZNode.set(t.shadowRootNodeId,t),e.tagName&&t.nodeName!==e.tagName&&(t.nodeName=e.tagName)}else if(1===e.eType){var n=this.option.debugProxy.getTagNameByPlatformElement(e)||\"unknown\";0===n.indexOf(\"unknown\")&&(n=e.tagName||e.externalElementName||n);var o=this.dependecyFactory.createZNodeElement(this,n.toUpperCase(),e,this.nextNodeId++,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(o.nodeId,o),this.shadowRootNodeId2ZNode.set(o.shadowRootNodeId,o),e._debug=o}else if(2===e.eType){var r=new Do(this,e,this.nextNodeId++,this.nextNodeId++);this.nodeId2ZNode.set(r.nodeId,r),e._debug=r}return e._debug},e.prototype.getZNodeComponentDebugInfo=function(e){if(!this.componentTargetId2ZNode.has(e)){var t=new Ro(this,e,this.nextNodeId++);this.nodeId2ZNode.set(t.nodeId,t),this.componentTargetId2ZNode.set(e,t)}return this.componentTargetId2ZNode.get(e)},e.prototype.getDOMNodeDebugInfo=function(e,t,n){if(e._debug){var o=e._debug;this.nodeId2DOMNode.has(o.nodeId)||this.nodeId2DOMNode.set(o.nodeId,o)}else if(1===e.nodeType){var r=this.dependecyFactory.createDOMElement(this,e,this.nextNodeId++,n,t);this.nodeId2DOMNode.set(r.nodeId,r),e._debug=r}else if(3===e.nodeType){var i=new jo(this,e,this.nextNodeId++,t);this.nodeId2DOMNode.set(i.nodeId,i),e._debug=i}return e._debug},e.prototype.getDocumentNode=function(){var e=this.rootNodeId;try{var t=[],n=this.option.clientProxy.renderer.documentInstance;n.tagName=\"page\";var o=this.getZNodeDebugInfo(n);o.setParentNodeId(e),t.push(o.serialize(1));var r=this.option.clientProxy.renderer.tabBarInstance;if(r){var i=this.getZNodeDebugInfo(r);if(i.setParentNodeId(e),i&&i.serialize(1).children){var a=i.serialize(1).children[0];a&&(a.nodeName=\"tab-bar\",a.attributes=[],t.push(a))}}return{backendNodeId:e,childNodeCount:1,children:t,localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}catch(t){console.warn(\"getDocumentRoot error\",t);var s=\"page-not-found\";return{backendNodeId:e,childNodeCount:1,children:[{attributes:[],backendNodeId:e+1,childNodeCount:0,localName:s,nodeId:2,nodeName:s,nodeType:1,nodeValue:\"\",parentId:e}],localName:\"\",nodeId:e,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}}},e.prototype.flushUpdatedQueue=function(){this.pageInstance&&this.pageInstance.flushUpdatedQueue()},e.prototype.resetZNodeActivatedState=function(){this.nodeId2ZNode.forEach((function(e){e.activated=!1,e.nodeType===qt.Element&&e.childrenActivated&&(e.childrenActivated=!1)}))},e.prototype.enableShadowRootElements=function(){this.shadowRootElementsEnabled=!0},e.prototype.getNextNodeId=function(){return this.nextNodeId++},e}(),zo={exports:{}},Uo={exports:{}},Ho={exports:{}},Vo={exports:{}},Wo={exports:{}},Go={exports:{}},Zo={},qo={exports:{}};!function(e,t){function n(e){for(var t=e.toLowerCase(),n=\"\",o=!1,r=0;r<6&&void 0!==t[r];r++){var i=t.charCodeAt(r);if(o=32===i,!(i>=97&&i<=102||i>=48&&i<=57))break;n+=t[r]}if(0!==n.length){var a=parseInt(n,16);return a>=55296&&a<=57343||0===a||a>1114111?[\"�\",n.length+(o?1:0)]:[String.fromCodePoint(a),n.length+(o?1:0)]}}t.__esModule=!0,t.default=function(e){var t=o.test(e);if(!t)return e;for(var r=\"\",i=0;i<e.length;i++)if(\"\\\\\"!==e[i])r+=e[i];else{var a=n(e.slice(i+1,i+7));if(void 0!==a){r+=a[0],i+=a[1];continue}if(\"\\\\\"===e[i+1]){r+=\"\\\\\",i++;continue}e.length===i+1&&(r+=e[i])}return r};var o=/\\\\/;e.exports=t.default}(qo,qo.exports);var Yo,Qo,Xo=qo.exports,Ko={exports:{}};Yo=Ko,(Qo=Ko.exports).__esModule=!0,Qo.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(;n.length>0;){var r=n.shift();if(!e[r])return;e=e[r]}return e},Yo.exports=Qo.default;var Jo=Ko.exports,$o={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(;n.length>0;){var r=n.shift();e[r]||(e[r]={}),e=e[r]}},e.exports=t.default}($o,$o.exports);var er=$o.exports,tr={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){var t=\"\",n=e.indexOf(\"/*\"),o=0;for(;n>=0;){t+=e.slice(o,n);var r=e.indexOf(\"*/\",n+2);if(r<0)return t;o=r+2,n=e.indexOf(\"/*\",o)}return t+=e.slice(o),t},e.exports=t.default}(tr,tr.exports);var nr=tr.exports;Zo.__esModule=!0,Zo.unesc=Zo.stripComments=Zo.getProp=Zo.ensureObject=void 0;var or=sr(Xo);Zo.unesc=or.default;var rr=sr(Jo);Zo.getProp=rr.default;var ir=sr(er);Zo.ensureObject=ir.default;var ar=sr(nr);function sr(e){return e&&e.__esModule?e:{default:e}}Zo.stripComments=ar.default,function(e,t){t.__esModule=!0,t.default=void 0;var n=Zo;function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=function e(t,n){if(\"object\"!=typeof t||null===t)return t;var o=new t.constructor;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];\"parent\"===r&&\"object\"===typeof i?n&&(o[r]=n):o[r]=i instanceof Array?i.map((function(t){return e(t,o)})):e(i,o)}return o},i=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||\"\",this.spaces.after=this.spaces.after||\"\"}var t,i,a,s=e.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(e){void 0===e&&(e={});var t=r(this);for(var n in e)t[n]=e[n];return t},s.appendToPropertyAndEscape=function(e,t,n){this.raws||(this.raws={});var o=this[e],r=this.raws[e];this[e]=o+t,r||n!==t?this.raws[e]=(r||o)+n:delete this.raws[e]},s.setPropertyAndEscape=function(e,t,n){this.raws||(this.raws={}),this[e]=t,this.raws[e]=n},s.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},s.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>t)&&!(this.source.end.line===e&&this.source.end.column<t)))},s.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},s.valueToString=function(){return String(this.stringifyProperty(\"value\"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(\"\")},t=e,(i=[{key:\"rawSpaceBefore\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||\"\"},set:function(e){(0,n.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.before=e}},{key:\"rawSpaceAfter\",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||\"\"},set:function(e){(0,n.ensureObject)(this,\"raws\",\"spaces\"),this.raws.spaces.after=e}}])&&o(t.prototype,i),a&&o(t,a),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();t.default=i,e.exports=t.default}(Go,Go.exports);var cr=Go.exports,ur={__esModule:!0};ur.UNIVERSAL=ur.TAG=ur.STRING=ur.SELECTOR=ur.ROOT=ur.PSEUDO=ur.NESTING=ur.ID=ur.COMMENT=ur.COMBINATOR=ur.CLASS=ur.ATTRIBUTE=void 0;ur.TAG=\"tag\";ur.STRING=\"string\";ur.SELECTOR=\"selector\";ur.ROOT=\"root\";ur.PSEUDO=\"pseudo\";ur.NESTING=\"nesting\";ur.ID=\"id\";ur.COMMENT=\"comment\";ur.COMBINATOR=\"combinator\";ur.CLASS=\"class\";ur.ATTRIBUTE=\"attribute\";ur.UNIVERSAL=\"universal\",function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(\"default\"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(ur);function i(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var l=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).nodes||(n.nodes=[]),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var i,s,l,d=o.prototype;return d.append=function(e){return e.parent=this,this.nodes.push(e),this},d.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},d.at=function(e){return this.nodes[e]},d.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},d.removeChild=function(e){var t;for(var n in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},d.removeAll=function(){for(var e,t=a(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},d.empty=function(){return this.removeAll()},d.insertAfter=function(e,t){t.parent=this;var n,o=this.index(e);for(var r in this.nodes.splice(o+1,0,t),t.parent=this,this.indexes)o<=(n=this.indexes[r])&&(this.indexes[r]=n+1);return this},d.insertBefore=function(e,t){t.parent=this;var n,o=this.index(e);for(var r in this.nodes.splice(o,0,t),t.parent=this,this.indexes)(n=this.indexes[r])<=o&&(this.indexes[r]=n+1);return this},d._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(o){if(o.atPosition){var r=o.atPosition(e,t);if(r)return n=r,!1}else if(o.isAtPosition(e,t))return n=o,!1})),n},d.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},d._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},d.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,o;this.indexes[t]<this.length&&(n=this.indexes[t],!1!==(o=e(this.at(n),n)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==o&&void 0}},d.walk=function(e){return this.each((function(t,n){var o=e(t,n);if(!1!==o&&t.length&&(o=t.walk(e)),!1===o)return!1}))},d.walkAttributes=function(e){var t=this;return this.walk((function(n){if(n.type===r.ATTRIBUTE)return e.call(t,n)}))},d.walkClasses=function(e){var t=this;return this.walk((function(n){if(n.type===r.CLASS)return e.call(t,n)}))},d.walkCombinators=function(e){var t=this;return this.walk((function(n){if(n.type===r.COMBINATOR)return e.call(t,n)}))},d.walkComments=function(e){var t=this;return this.walk((function(n){if(n.type===r.COMMENT)return e.call(t,n)}))},d.walkIds=function(e){var t=this;return this.walk((function(n){if(n.type===r.ID)return e.call(t,n)}))},d.walkNesting=function(e){var t=this;return this.walk((function(n){if(n.type===r.NESTING)return e.call(t,n)}))},d.walkPseudos=function(e){var t=this;return this.walk((function(n){if(n.type===r.PSEUDO)return e.call(t,n)}))},d.walkTags=function(e){var t=this;return this.walk((function(n){if(n.type===r.TAG)return e.call(t,n)}))},d.walkUniversals=function(e){var t=this;return this.walk((function(n){if(n.type===r.UNIVERSAL)return e.call(t,n)}))},d.split=function(e){var t=this,n=[];return this.reduce((function(o,r,i){var a=e.call(t,r);return n.push(r),a?(o.push(n),n=[]):i===t.length-1&&o.push(n),o}),[])},d.map=function(e){return this.nodes.map(e)},d.reduce=function(e,t){return this.nodes.reduce(e,t)},d.every=function(e){return this.nodes.every(e)},d.some=function(e){return this.nodes.some(e)},d.filter=function(e){return this.nodes.filter(e)},d.sort=function(e){return this.nodes.sort(e)},d.toString=function(){return this.map(String).join(\"\")},i=o,(s=[{key:\"first\",get:function(){return this.at(0)}},{key:\"last\",get:function(){return this.at(this.length-1)}},{key:\"length\",get:function(){return this.nodes.length}}])&&c(i.prototype,s),l&&c(i,l),Object.defineProperty(i,\"prototype\",{writable:!1}),o}(o.default);t.default=l,e.exports=t.default}(Wo,Wo.exports);var lr=Wo.exports;!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=lr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var s=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.ROOT,n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var s,c,u,l=o.prototype;return l.toString=function(){var e=this.reduce((function(e,t){return e.push(String(t)),e}),[]).join(\",\");return this.trailingComma?e+\",\":e},l.error=function(e,t){return this._error?this._error(e,t):new Error(e)},s=o,(c=[{key:\"errorGenerator\",set:function(e){this._error=e}}])&&i(s.prototype,c),u&&i(s,u),Object.defineProperty(s,\"prototype\",{writable:!1}),o}(o.default);t.default=s,e.exports=t.default}(Vo,Vo.exports);var dr=Vo.exports,pr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=lr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.SELECTOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(pr,pr.exports);var hr=pr.exports,fr={exports:{}},gr={}.hasOwnProperty,mr=/[ -,\\.\\/:-@\\[-\\^`\\{-~]/,vr=/[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/,yr=/(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g,br=function e(t,n){\"single\"!=(n=function(e,t){if(!e)return t;var n={};for(var o in t)n[o]=gr.call(e,o)?e[o]:t[o];return n}(n,e.options)).quotes&&\"double\"!=n.quotes&&(n.quotes=\"single\");for(var o=\"double\"==n.quotes?'\"':\"'\",r=n.isIdentifier,i=t.charAt(0),a=\"\",s=0,c=t.length;s<c;){var u=t.charAt(s++),l=u.charCodeAt(),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&s<c){var p=t.charCodeAt(s++);56320==(64512&p)?l=((1023&l)<<10)+(1023&p)+65536:s--}d=\"\\\\\"+l.toString(16).toUpperCase()+\" \"}else d=n.escapeEverything?mr.test(u)?\"\\\\\"+u:\"\\\\\"+l.toString(16).toUpperCase()+\" \":/[\\t\\n\\f\\r\\x0B]/.test(u)?\"\\\\\"+l.toString(16).toUpperCase()+\" \":\"\\\\\"==u||!r&&('\"'==u&&o==u||\"'\"==u&&o==u)||r&&vr.test(u)?\"\\\\\"+u:u;a+=d}return r&&(/^-[-\\d]/.test(a)?a=\"\\\\-\"+a.slice(1):/\\d/.test(i)&&(a=\"\\\\3\"+i+\" \"+a.slice(1))),a=a.replace(yr,(function(e,t,n){return t&&t.length%2?e:(t||\"\")+n})),!r&&n.wrap?o+a+o:a};br.options={escapeEverything:!1,isIdentifier:!1,quotes:\"single\",wrap:!1},br.version=\"3.0.0\";var wr=br;!function(e,t){t.__esModule=!0,t.default=void 0;var n=a(wr),o=Zo,r=a(cr),i=ur;function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var u=function(e){var t,r,a,u,l;function d(t){var n;return(n=e.call(this,t)||this).type=i.CLASS,n._constructed=!0,n}return r=e,(t=d).prototype=Object.create(r.prototype),t.prototype.constructor=t,c(t,r),d.prototype.valueToString=function(){return\".\"+e.prototype.valueToString.call(this)},a=d,(u=[{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t!==e?((0,o.ensureObject)(this,\"raws\"),this.raws.value=t):this.raws&&delete this.raws.value}this._value=e}}])&&s(a.prototype,u),l&&s(a,l),Object.defineProperty(a,\"prototype\",{writable:!1}),d}(r.default);t.default=u,e.exports=t.default}(fr,fr.exports);var Sr=fr.exports,Cr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.COMMENT,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Cr,Cr.exports);var _r=Cr.exports,Ir={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.ID,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o.prototype.valueToString=function(){return\"#\"+e.prototype.valueToString.call(this)},o}(o.default);t.default=a,e.exports=t.default}(Ir,Ir.exports);var xr=Ir.exports,Pr={exports:{}},kr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n=r(wr),o=Zo;function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var s=function(e){var t,r;function s(){return e.apply(this,arguments)||this}r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,a(t,r);var c,u,l,d=s.prototype;return d.qualifiedName=function(e){return this.namespace?this.namespaceString+\"|\"+e:e},d.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},c=s,u=[{key:\"namespace\",get:function(){return this._namespace},set:function(e){if(!0===e||\"*\"===e||\"&\"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,o.ensureObject)(this,\"raws\"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:\"ns\",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:\"namespaceString\",get:function(){if(this.namespace){var e=this.stringifyProperty(\"namespace\");return!0===e?\"\":e}return\"\"}}],u&&i(c.prototype,u),l&&i(c,l),Object.defineProperty(c,\"prototype\",{writable:!1}),s}(r(cr).default);t.default=s,e.exports=t.default}(kr,kr.exports);var Er=kr.exports;!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=Er)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.TAG,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Pr,Pr.exports);var Or=Pr.exports,Mr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.STRING,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Mr,Mr.exports);var Nr=Mr.exports,Tr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=lr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.PSEUDO,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o.prototype.toString=function(){var e=this.length?\"(\"+this.map(String).join(\",\")+\")\":\"\";return[this.rawSpaceBefore,this.stringifyProperty(\"value\"),e,this.rawSpaceAfter].join(\"\")},o}(o.default);t.default=a,e.exports=t.default}(Tr,Tr.exports);var Ar=Tr.exports,Dr={},Rr=function(e,t){if(Lr(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(Lr(\"throwDeprecation\"))throw new Error(t);Lr(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function Lr(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&\"true\"===String(t).toLowerCase()}!function(e){e.__esModule=!0,e.default=void 0,e.unescapeValue=f;var t,n=a(wr),o=a(Xo),r=a(Er),i=ur;function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var u=Rr,l=/^('|\")([^]*)\\1$/,d=u((function(){}),\"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.\"),p=u((function(){}),\"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\"),h=u((function(){}),\"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");function f(e){var t=!1,n=null,r=e,i=r.match(l);return i&&(n=i[1],r=i[2]),(r=(0,o.default)(r))!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}var g=function(e){var t,o;function r(t){var n;return void 0===t&&(t={}),n=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;h();var t=f(e.value),n=t.quoteMark,o=t.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=o,e.quoteMark=n,e}(t))||this,n.type=i.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,\"unquoted\",{get:u((function(){return n.value}),\"attr.raws.unquoted is deprecated. Call attr.value instead.\"),set:u((function(){return n.value}),\"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")}),n._constructed=!0,n}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,c(t,o);var a,l,g,y=r.prototype;return y.getQuotedValue=function(e){void 0===e&&(e={});var t=this._determineQuoteMark(e),o=m[t];return(0,n.default)(this._value,o)},y._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},y.setValue=function(e,t){void 0===t&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},y.smartQuoteMark=function(e){var t=this.value,o=t.replace(/[^']/g,\"\").length,i=t.replace(/[^\"]/g,\"\").length;if(o+i===0){var a=(0,n.default)(t,{isIdentifier:!0});if(a===t)return r.NO_QUOTE;var s=this.preferredQuoteMark(e);if(s===r.NO_QUOTE){var c=this.quoteMark||e.quoteMark||r.DOUBLE_QUOTE,u=m[c];if((0,n.default)(t,u).length<a.length)return c}return s}return i===o?this.preferredQuoteMark(e):i<o?r.DOUBLE_QUOTE:r.SINGLE_QUOTE},y.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===t&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===t&&(t=r.DOUBLE_QUOTE),t},y._syncRawValue=function(){var e=(0,n.default)(this._value,m[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},y._handleEscapes=function(e,t){if(this._constructed){var o=(0,n.default)(t,{isIdentifier:!0});o!==t?this.raws[e]=o:delete this.raws[e]}},y._spacesFor=function(e){var t=this.spaces[e]||{},n=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:\"\",after:\"\"},t,n)},y._stringFor=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=v);var o=this._spacesFor(t);return n(this.stringifyProperty(e),o)},y.offsetOf=function(e){var t=1,n=this._spacesFor(\"attribute\");if(t+=n.before.length,\"namespace\"===e||\"ns\"===e)return this.namespace?t:-1;if(\"attributeNS\"===e)return t;if(t+=this.namespaceString.length,this.namespace&&(t+=1),\"attribute\"===e)return t;t+=this.stringifyProperty(\"attribute\").length,t+=n.after.length;var o=this._spacesFor(\"operator\");t+=o.before.length;var r=this.stringifyProperty(\"operator\");if(\"operator\"===e)return r?t:-1;t+=r.length,t+=o.after.length;var i=this._spacesFor(\"value\");t+=i.before.length;var a=this.stringifyProperty(\"value\");return\"value\"===e?a?t:-1:(t+=a.length,t+=i.after.length,t+=this._spacesFor(\"insensitive\").before.length,\"insensitive\"===e&&this.insensitive?t:-1)},y.toString=function(){var e=this,t=[this.rawSpaceBefore,\"[\"];return t.push(this._stringFor(\"qualifiedAttribute\",\"attribute\")),this.operator&&(this.value||\"\"===this.value)&&(t.push(this._stringFor(\"operator\")),t.push(this._stringFor(\"value\")),t.push(this._stringFor(\"insensitiveFlag\",\"insensitive\",(function(t,n){return!(t.length>0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=\" \"),v(t,n)})))),t.push(\"]\"),t.push(this.rawSpaceAfter),t.join(\"\")},a=r,(l=[{key:\"quoted\",get:function(){var e=this.quoteMark;return\"'\"===e||'\"'===e},set:function(e){p()}},{key:\"quoteMark\",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:\"qualifiedAttribute\",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:\"insensitiveFlag\",get:function(){return this.insensitive?\"i\":\"\"}},{key:\"value\",get:function(){return this._value},set:function(e){if(this._constructed){var t=f(e),n=t.deprecatedUsage,o=t.unescaped,r=t.quoteMark;if(n&&d(),o===this._value&&r===this._quoteMark)return;this._value=o,this._quoteMark=r,this._syncRawValue()}else this._value=e}},{key:\"insensitive\",get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,!this.raws||\"I\"!==this.raws.insensitiveFlag&&\"i\"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:\"attribute\",get:function(){return this._attribute},set:function(e){this._handleEscapes(\"attribute\",e),this._attribute=e}}])&&s(a.prototype,l),g&&s(a,g),Object.defineProperty(a,\"prototype\",{writable:!1}),r}(r.default);e.default=g,g.NO_QUOTE=null,g.SINGLE_QUOTE=\"'\",g.DOUBLE_QUOTE='\"';var m=((t={\"'\":{quotes:\"single\",wrap:!0},'\"':{quotes:\"double\",wrap:!0}}).null={isIdentifier:!0},t);function v(e,t){return\"\"+t.before+e+t.after}}(Dr);var Br={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=Er)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.UNIVERSAL,n.value=\"*\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Br,Br.exports);var jr=Br.exports,Fr={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.COMBINATOR,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Fr,Fr.exports);var zr=Fr.exports,Ur={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=cr)&&n.__esModule?n:{default:n},r=ur;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=r.NESTING,n.value=\"&\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(o.default);t.default=a,e.exports=t.default}(Ur,Ur.exports);var Hr=Ur.exports,Vr={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}(Vr,Vr.exports);var Wr=Vr.exports,Gr={},Zr={__esModule:!0};Zr.word=Zr.tilde=Zr.tab=Zr.str=Zr.space=Zr.slash=Zr.singleQuote=Zr.semicolon=Zr.plus=Zr.pipe=Zr.openSquare=Zr.openParenthesis=Zr.newline=Zr.greaterThan=Zr.feed=Zr.equals=Zr.doubleQuote=Zr.dollar=Zr.cr=Zr.comment=Zr.comma=Zr.combinator=Zr.colon=Zr.closeSquare=Zr.closeParenthesis=Zr.caret=Zr.bang=Zr.backslash=Zr.at=Zr.asterisk=Zr.ampersand=void 0;Zr.ampersand=38;Zr.asterisk=42;Zr.at=64;Zr.comma=44;Zr.colon=58;Zr.semicolon=59;Zr.openParenthesis=40;Zr.closeParenthesis=41;Zr.openSquare=91;Zr.closeSquare=93;Zr.dollar=36;Zr.tilde=126;Zr.caret=94;Zr.plus=43;Zr.equals=61;Zr.pipe=124;Zr.greaterThan=62;Zr.space=32;Zr.singleQuote=39;Zr.doubleQuote=34;Zr.slash=47;Zr.bang=33;Zr.backslash=92;Zr.cr=13;Zr.feed=12;Zr.newline=10;Zr.tab=9;Zr.str=39;Zr.comment=-1;Zr.word=-2;Zr.combinator=-3,function(e){e.__esModule=!0,e.FIELDS=void 0,e.default=function(e){var t,n,r,i,a,s,c,u,d,p,h,f,g=[],m=e.css.valueOf(),v=m,y=v.length,b=-1,w=1,S=0,C=0;function _(t,n){if(!e.safe)throw e.error(\"Unclosed \"+t,w,S-b,S);u=(m+=n).length-1}for(;S<y;){switch((t=m.charCodeAt(S))===o.newline&&(b=S,w+=1),t){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:u=S;do{u+=1,(t=m.charCodeAt(u))===o.newline&&(b=u,w+=1)}while(t===o.space||t===o.newline||t===o.tab||t===o.cr||t===o.feed);f=o.space,r=w,n=u-b-1,C=u;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:u=S;do{u+=1,t=m.charCodeAt(u)}while(t===o.plus||t===o.greaterThan||t===o.tilde||t===o.pipe);f=o.combinator,r=w,n=S-b,C=u;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:f=t,r=w,n=S-b,C=(u=S)+1;break;case o.singleQuote:case o.doubleQuote:h=t===o.singleQuote?\"'\":'\"',u=S;do{for(i=!1,-1===(u=m.indexOf(h,u+1))&&_(\"quote\",h),a=u;m.charCodeAt(a-1)===o.backslash;)a-=1,i=!i}while(i);f=o.str,r=w,n=S-b,C=u+1;break;default:t===o.slash&&m.charCodeAt(S+1)===o.asterisk?(0===(u=m.indexOf(\"*/\",S+2)+1)&&_(\"comment\",\"*/\"),(s=(c=m.slice(S,u+1).split(\"\\n\")).length-1)>0?(d=w+s,p=u-c[s].length):(d=w,p=b),f=o.comment,w=d,r=d,n=u-p):t===o.slash?(f=t,r=w,n=S-b,C=(u=S)+1):(u=l(m,S),f=o.word,r=w,n=u-b),C=u+1}g.push([f,w,S-b,r,n,S,C]),p&&(b=p,p=null),S=C}return g};var t,n,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(\"default\"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(Zr);function r(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}for(var i=((t={})[o.tab]=!0,t[o.newline]=!0,t[o.cr]=!0,t[o.feed]=!0,t),a=((n={})[o.space]=!0,n[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n[o.ampersand]=!0,n[o.asterisk]=!0,n[o.bang]=!0,n[o.comma]=!0,n[o.colon]=!0,n[o.semicolon]=!0,n[o.openParenthesis]=!0,n[o.closeParenthesis]=!0,n[o.openSquare]=!0,n[o.closeSquare]=!0,n[o.singleQuote]=!0,n[o.doubleQuote]=!0,n[o.plus]=!0,n[o.pipe]=!0,n[o.tilde]=!0,n[o.greaterThan]=!0,n[o.equals]=!0,n[o.dollar]=!0,n[o.caret]=!0,n[o.slash]=!0,n),s={},c=\"0123456789abcdefABCDEF\",u=0;u<22;u++)s[c.charCodeAt(u)]=!0;function l(e,t){var n,r=t;do{if(n=e.charCodeAt(r),a[n])return r-1;n===o.backslash?r=d(e,r)+1:r++}while(r<e.length);return r-1}function d(e,t){var n=t,r=e.charCodeAt(n+1);if(i[r]);else if(s[r]){var a=0;do{n++,a++,r=e.charCodeAt(n+1)}while(s[r]&&a<6);a<6&&r===o.space&&n++}else n++;return n}e.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}(Gr),function(e,t){t.__esModule=!0,t.default=void 0;var n,o,r=_(dr),i=_(hr),a=_(Sr),s=_(_r),c=_(xr),u=_(Or),l=_(Nr),d=_(Ar),p=C(Dr),h=_(jr),f=_(zr),g=_(Hr),m=_(Wr),v=C(Gr),y=C(Zr),b=C(ur),w=Zo;function S(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(S=function(e){return e?n:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=S(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(\"default\"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}function _(e){return e&&e.__esModule?e:{default:e}}function I(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var x=((n={})[y.space]=!0,n[y.cr]=!0,n[y.feed]=!0,n[y.newline]=!0,n[y.tab]=!0,n),P=Object.assign({},x,((o={})[y.comment]=!0,o));function k(e){return{line:e[v.FIELDS.START_LINE],column:e[v.FIELDS.START_COL]}}function E(e){return{line:e[v.FIELDS.END_LINE],column:e[v.FIELDS.END_COL]}}function O(e,t,n,o){return{start:{line:e,column:t},end:{line:n,column:o}}}function M(e){return O(e[v.FIELDS.START_LINE],e[v.FIELDS.START_COL],e[v.FIELDS.END_LINE],e[v.FIELDS.END_COL])}function N(e,t){if(e)return O(e[v.FIELDS.START_LINE],e[v.FIELDS.START_COL],t[v.FIELDS.END_LINE],t[v.FIELDS.END_COL])}function T(e,t){var n=e[t];if(\"string\"==typeof n)return-1!==n.indexOf(\"\\\\\")&&((0,w.ensureObject)(e,\"raws\"),e[t]=(0,w.unesc)(n),void 0===e.raws[t]&&(e.raws[t]=n)),e}function A(e,t){for(var n=-1,o=[];-1!==(n=e.indexOf(t,n+1));)o.push(n);return o}var D=function(){function e(e,t){void 0===t&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=\"string\"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,v.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=N(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:n}),this.root.errorGenerator=this._errorGenerator();var o=new i.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t,n,o,S=e.prototype;return S._errorGenerator=function(){var e=this;return function(t,n){return\"string\"==typeof e.rule?new Error(t):e.rule.error(t,n)}},S.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[v.FIELDS.TYPE]!==y.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[v.FIELDS.TYPE]!==y.closeSquare)return this.expected(\"closing square bracket\",this.currToken[v.FIELDS.START_POS]);var n=e.length,o={source:O(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[v.FIELDS.START_POS]};if(1===n&&!~[y.word].indexOf(e[0][v.FIELDS.TYPE]))return this.expected(\"attribute\",e[0][v.FIELDS.START_POS]);for(var r=0,i=\"\",a=\"\",s=null,c=!1;r<n;){var u=e[r],l=this.content(u),d=e[r+1];switch(u[v.FIELDS.TYPE]){case y.space:if(c=!0,this.options.lossy)break;if(s){(0,w.ensureObject)(o,\"spaces\",s);var h=o.spaces[s].after||\"\";o.spaces[s].after=h+l;var f=(0,w.getProp)(o,\"raws\",\"spaces\",s,\"after\")||null;f&&(o.raws.spaces[s].after=f+l)}else i+=l,a+=l;break;case y.asterisk:if(d[v.FIELDS.TYPE]===y.equals)o.operator=l,s=\"operator\";else if((!o.namespace||\"namespace\"===s&&!c)&&d){i&&((0,w.ensureObject)(o,\"spaces\",\"attribute\"),o.spaces.attribute.before=i,i=\"\"),a&&((0,w.ensureObject)(o,\"raws\",\"spaces\",\"attribute\"),o.raws.spaces.attribute.before=i,a=\"\"),o.namespace=(o.namespace||\"\")+l,((0,w.getProp)(o,\"raws\",\"namespace\")||null)&&(o.raws.namespace+=l),s=\"namespace\"}c=!1;break;case y.dollar:if(\"value\"===s){var g=(0,w.getProp)(o,\"raws\",\"value\");o.value+=\"$\",g&&(o.raws.value=g+\"$\");break}case y.caret:d[v.FIELDS.TYPE]===y.equals&&(o.operator=l,s=\"operator\"),c=!1;break;case y.combinator:if(\"~\"===l&&d[v.FIELDS.TYPE]===y.equals&&(o.operator=l,s=\"operator\"),\"|\"!==l){c=!1;break}d[v.FIELDS.TYPE]===y.equals?(o.operator=l,s=\"operator\"):o.namespace||o.attribute||(o.namespace=!0),c=!1;break;case y.word:if(d&&\"|\"===this.content(d)&&e[r+2]&&e[r+2][v.FIELDS.TYPE]!==y.equals&&!o.operator&&!o.namespace)o.namespace=l,s=\"namespace\";else if(!o.attribute||\"attribute\"===s&&!c){i&&((0,w.ensureObject)(o,\"spaces\",\"attribute\"),o.spaces.attribute.before=i,i=\"\"),a&&((0,w.ensureObject)(o,\"raws\",\"spaces\",\"attribute\"),o.raws.spaces.attribute.before=a,a=\"\"),o.attribute=(o.attribute||\"\")+l,((0,w.getProp)(o,\"raws\",\"attribute\")||null)&&(o.raws.attribute+=l),s=\"attribute\"}else if(!o.value&&\"\"!==o.value||\"value\"===s&&!c&&!o.quoteMark){var m=(0,w.unesc)(l),b=(0,w.getProp)(o,\"raws\",\"value\")||\"\",S=o.value||\"\";o.value=S+m,o.quoteMark=null,(m!==l||b)&&((0,w.ensureObject)(o,\"raws\"),o.raws.value=(b||S)+l),s=\"value\"}else{var C=\"i\"===l||\"I\"===l;!o.value&&\"\"!==o.value||!o.quoteMark&&!c?(o.value||\"\"===o.value)&&(s=\"value\",o.value+=l,o.raws.value&&(o.raws.value+=l)):(o.insensitive=C,C&&\"I\"!==l||((0,w.ensureObject)(o,\"raws\"),o.raws.insensitiveFlag=l),s=\"insensitive\",i&&((0,w.ensureObject)(o,\"spaces\",\"insensitive\"),o.spaces.insensitive.before=i,i=\"\"),a&&((0,w.ensureObject)(o,\"raws\",\"spaces\",\"insensitive\"),o.raws.spaces.insensitive.before=a,a=\"\"))}c=!1;break;case y.str:if(!o.attribute||!o.operator)return this.error(\"Expected an attribute followed by an operator preceding the string.\",{index:u[v.FIELDS.START_POS]});var _=(0,p.unescapeValue)(l),I=_.unescaped,x=_.quoteMark;o.value=I,o.quoteMark=x,s=\"value\",(0,w.ensureObject)(o,\"raws\"),o.raws.value=l,c=!1;break;case y.equals:if(!o.attribute)return this.expected(\"attribute\",u[v.FIELDS.START_POS],l);if(o.value)return this.error('Unexpected \"=\" found; an operator was already defined.',{index:u[v.FIELDS.START_POS]});o.operator=o.operator?o.operator+l:l,s=\"operator\",c=!1;break;case y.comment:if(s)if(c||d&&d[v.FIELDS.TYPE]===y.space||\"insensitive\"===s){var P=(0,w.getProp)(o,\"spaces\",s,\"after\")||\"\",k=(0,w.getProp)(o,\"raws\",\"spaces\",s,\"after\")||P;(0,w.ensureObject)(o,\"raws\",\"spaces\",s),o.raws.spaces[s].after=k+l}else{var E=o[s]||\"\",M=(0,w.getProp)(o,\"raws\",s)||E;(0,w.ensureObject)(o,\"raws\"),o.raws[s]=M+l}else a+=l;break;default:return this.error('Unexpected \"'+l+'\" found.',{index:u[v.FIELDS.START_POS]})}r++}T(o,\"attribute\"),T(o,\"namespace\"),this.newNode(new p.default(o)),this.position++},S.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],o=\"\",r=void 0;do{if(x[this.currToken[v.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[v.FIELDS.TYPE]===y.comment){var i={};o&&(i.before=o,o=\"\"),r=new s.default({value:this.content(),source:M(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS],spaces:i}),n.push(r)}}while(++this.position<e);if(o)if(r)r.spaces.after=o;else if(!this.options.lossy){var a=this.tokens[t],c=this.tokens[this.position-1];n.push(new l.default({value:\"\",source:O(a[v.FIELDS.START_LINE],a[v.FIELDS.START_COL],c[v.FIELDS.END_LINE],c[v.FIELDS.END_COL]),sourceIndex:a[v.FIELDS.START_POS],spaces:{before:o,after:\"\"}}))}return n},S.convertWhitespaceNodesToSpace=function(e,t){var n=this;void 0===t&&(t=!1);var o=\"\",r=\"\";return e.forEach((function(e){var i=n.lossySpace(e.spaces.before,t),a=n.lossySpace(e.rawSpaceBefore,t);o+=i+n.lossySpace(e.spaces.after,t&&0===i.length),r+=i+e.value+n.lossySpace(e.rawSpaceAfter,t&&0===a.length)})),r===o&&(r=void 0),{space:o,rawSpace:r}},S.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][v.FIELDS.TYPE]===y.slash&&this.tokens[e+1]&&this.tokens[e+1][v.FIELDS.TYPE]===y.word&&this.tokens[e+2]&&this.tokens[e+2][v.FIELDS.TYPE]===y.slash},S.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,w.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=\"/\"+e+\"/\");var o=new f.default({value:\"/\"+t+\"/\",source:O(this.currToken[v.FIELDS.START_LINE],this.currToken[v.FIELDS.START_COL],this.tokens[this.position+2][v.FIELDS.END_LINE],this.tokens[this.position+2][v.FIELDS.END_COL]),sourceIndex:this.currToken[v.FIELDS.START_POS],raws:n});return this.position=this.position+3,o}this.unexpected()},S.combinator=function(){var e=this;if(\"|\"===this.content())return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(!(t<0||this.tokens[t][v.FIELDS.TYPE]===y.comma)){var n,o=this.currToken,r=void 0;if(t>this.position&&(r=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[v.FIELDS.TYPE]===y.combinator?(n=new f.default({value:this.content(),source:M(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS]}),this.position++):x[this.currToken[v.FIELDS.TYPE]]||r||this.unexpected(),n){if(r){var i=this.convertWhitespaceNodesToSpace(r),a=i.space,s=i.rawSpace;n.spaces.before=a,n.rawSpaceBefore=s}}else{var c=this.convertWhitespaceNodesToSpace(r,!0),u=c.space,l=c.rawSpace;l||(l=u);var d={},p={spaces:{}};u.endsWith(\" \")&&l.endsWith(\" \")?(d.before=u.slice(0,u.length-1),p.spaces.before=l.slice(0,l.length-1)):u.startsWith(\" \")&&l.startsWith(\" \")?(d.after=u.slice(1),p.spaces.after=l.slice(1)):p.value=l,n=new f.default({value:\" \",source:N(o,this.tokens[this.position-1]),sourceIndex:o[v.FIELDS.START_POS],spaces:d,raws:p})}return this.currToken&&this.currToken[v.FIELDS.TYPE]===y.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var h=this.parseWhitespaceEquivalentTokens(t);if(h.length>0){var g=this.current.last;if(g){var m=this.convertWhitespaceNodesToSpace(h),b=m.space,w=m.rawSpace;void 0!==w&&(g.rawSpaceAfter+=w),g.spaces.after+=b}else h.forEach((function(t){return e.newNode(t)}))}},S.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new i.default({source:{start:k(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},S.comment=function(){var e=this.currToken;this.newNode(new s.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},S.error=function(e,t){throw this.root.error(e,t)},S.missingBackslash=function(){return this.error(\"Expected a backslash preceding the semicolon.\",{index:this.currToken[v.FIELDS.START_POS]})},S.missingParenthesis=function(){return this.expected(\"opening parenthesis\",this.currToken[v.FIELDS.START_POS])},S.missingSquareBracket=function(){return this.expected(\"opening square bracket\",this.currToken[v.FIELDS.START_POS])},S.unexpected=function(){return this.error(\"Unexpected '\"+this.content()+\"'. Escaping special characters with \\\\ may help.\",this.currToken[v.FIELDS.START_POS])},S.unexpectedPipe=function(){return this.error(\"Unexpected '|'.\",this.currToken[v.FIELDS.START_POS])},S.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[v.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[v.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void this.unexpectedPipe()},S.nesting=function(){if(this.nextToken&&\"|\"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new g.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},S.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===b.PSEUDO){var n=new i.default({source:{start:k(this.tokens[this.position-1])}}),o=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[v.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[v.FIELDS.TYPE]===y.closeParenthesis&&t--,t?this.parse():(this.current.source.end=E(this.currToken),this.current.parent.source.end=E(this.currToken),this.position++);this.current=o}else{for(var r,a=this.currToken,s=\"(\";this.position<this.tokens.length&&t;)this.currToken[v.FIELDS.TYPE]===y.openParenthesis&&t++,this.currToken[v.FIELDS.TYPE]===y.closeParenthesis&&t--,r=this.currToken,s+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(\"value\",s,s):this.newNode(new l.default({value:s,source:O(a[v.FIELDS.START_LINE],a[v.FIELDS.START_COL],r[v.FIELDS.END_LINE],r[v.FIELDS.END_COL]),sourceIndex:a[v.FIELDS.START_POS]}))}if(t)return this.expected(\"closing parenthesis\",this.currToken[v.FIELDS.START_POS])},S.pseudo=function(){for(var e=this,t=\"\",n=this.currToken;this.currToken&&this.currToken[v.FIELDS.TYPE]===y.colon;)t+=this.content(),this.position++;return this.currToken?this.currToken[v.FIELDS.TYPE]!==y.word?this.expected([\"pseudo-class\",\"pseudo-element\"],this.currToken[v.FIELDS.START_POS]):void this.splitWord(!1,(function(o,r){t+=o,e.newNode(new d.default({value:t,source:N(n,e.currToken),sourceIndex:n[v.FIELDS.START_POS]})),r>1&&e.nextToken&&e.nextToken[v.FIELDS.TYPE]===y.openParenthesis&&e.error(\"Misplaced parenthesis.\",{index:e.nextToken[v.FIELDS.START_POS]})})):this.expected([\"pseudo-class\",\"pseudo-element\"],this.position-1)},S.space=function(){var e=this.content();0===this.position||this.prevToken[v.FIELDS.TYPE]===y.comma||this.prevToken[v.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return\"comment\"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[v.FIELDS.TYPE]===y.comma||this.nextToken[v.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},S.string=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},S.universal=function(e){var t=this.nextToken;if(t&&\"|\"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new h.default({value:this.content(),source:M(n),sourceIndex:n[v.FIELDS.START_POS]}),e),this.position++},S.splitWord=function(e,t){for(var n=this,o=this.nextToken,r=this.content();o&&~[y.dollar,y.caret,y.equals,y.word].indexOf(o[v.FIELDS.TYPE]);){this.position++;var i=this.content();if(r+=i,i.lastIndexOf(\"\\\\\")===i.length-1){var s=this.nextToken;s&&s[v.FIELDS.TYPE]===y.space&&(r+=this.requiredSpace(this.content(s)),this.position++)}o=this.nextToken}var l=A(r,\".\").filter((function(e){var t=\"\\\\\"===r[e-1],n=/^\\d+\\.\\d+%$/.test(r);return!t&&!n})),d=A(r,\"#\").filter((function(e){return\"\\\\\"!==r[e-1]})),p=A(r,\"#{\");p.length&&(d=d.filter((function(e){return!~p.indexOf(e)})));var h=(0,m.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,d)));h.forEach((function(o,i){var s,p=h[i+1]||r.length,f=r.slice(o,p);if(0===i&&t)return t.call(n,f,h.length);var g=n.currToken,m=g[v.FIELDS.START_POS]+h[i],y=O(g[1],g[2]+o,g[3],g[2]+(p-1));if(~l.indexOf(o)){var b={value:f.slice(1),source:y,sourceIndex:m};s=new a.default(T(b,\"value\"))}else if(~d.indexOf(o)){var w={value:f.slice(1),source:y,sourceIndex:m};s=new c.default(T(w,\"value\"))}else{var S={value:f,source:y,sourceIndex:m};T(S,\"value\"),s=new u.default(S)}n.newNode(s,e),e=null})),this.position++},S.word=function(e){var t=this.nextToken;return t&&\"|\"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},S.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},S.parse=function(e){switch(this.currToken[v.FIELDS.TYPE]){case y.space:this.space();break;case y.comment:this.comment();break;case y.openParenthesis:this.parentheses();break;case y.closeParenthesis:e&&this.missingParenthesis();break;case y.openSquare:this.attribute();break;case y.dollar:case y.caret:case y.equals:case y.word:this.word();break;case y.colon:this.pseudo();break;case y.comma:this.comma();break;case y.asterisk:this.universal();break;case y.ampersand:this.nesting();break;case y.slash:case y.combinator:this.combinator();break;case y.str:this.string();break;case y.closeSquare:this.missingSquareBracket();case y.semicolon:this.missingBackslash();default:this.unexpected()}},S.expected=function(e,t,n){if(Array.isArray(e)){var o=e.pop();e=e.join(\", \")+\" or \"+o}var r=/^[aeiou]/.test(e[0])?\"an\":\"a\";return n?this.error(\"Expected \"+r+\" \"+e+', found \"'+n+'\" instead.',{index:t}):this.error(\"Expected \"+r+\" \"+e+\".\",{index:t})},S.requiredSpace=function(e){return this.options.lossy?\" \":e},S.optionalSpace=function(e){return this.options.lossy?\"\":e},S.lossySpace=function(e,t){return this.options.lossy?t?\" \":\"\":e},S.parseParenthesisToken=function(e){var t=this.content(e);return e[v.FIELDS.TYPE]===y.space?this.requiredSpace(t):t},S.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||\"\")+t),t=!0),e.namespace=t,T(e,\"namespace\")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=\"\"),this.current.append(e)},S.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[v.FIELDS.START_POS],e[v.FIELDS.END_POS])},S.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var t=e;t<this.tokens.length;){if(!P[this.tokens[t][v.FIELDS.TYPE]])return t;t++}return-1},t=e,(n=[{key:\"currToken\",get:function(){return this.tokens[this.position]}},{key:\"nextToken\",get:function(){return this.tokens[this.position+1]}},{key:\"prevToken\",get:function(){return this.tokens[this.position-1]}}])&&I(t.prototype,n),o&&I(t,o),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();t.default=D,e.exports=t.default}(Ho,Ho.exports);var qr=Ho.exports;!function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=qr)&&n.__esModule?n:{default:n};var r=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&\"string\"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new o.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return void 0===t&&(t={}),new Promise((function(o,r){try{var i=n._root(e,t);Promise.resolve(n.func(i)).then((function(o){var r=void 0;return n._shouldUpdateSelector(e,t)&&(r=i.toString(),e.selector=r),{transform:o,root:i,string:r}})).then(o,r)}catch(e){return void r(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var n=this._root(e,t),o=this.func(n);if(o&&\"function\"==typeof o.then)throw new Error(\"Selector processor returned a promise to a synchronous call.\");var r=void 0;return t.updateSelector&&\"string\"!=typeof e&&(r=n.toString(),e.selector=r),{transform:o,root:n,string:r}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}();t.default=r,e.exports=t.default}(Uo,Uo.exports);var Yr=Uo.exports,Qr={},Xr={__esModule:!0};Xr.universal=Xr.tag=Xr.string=Xr.selector=Xr.root=Xr.pseudo=Xr.nesting=Xr.id=Xr.comment=Xr.combinator=Xr.className=Xr.attribute=void 0;var Kr=ui(Dr),Jr=ui(Sr),$r=ui(zr),ei=ui(_r),ti=ui(xr),ni=ui(Hr),oi=ui(Ar),ri=ui(dr),ii=ui(hr),ai=ui(Nr),si=ui(Or),ci=ui(jr);function ui(e){return e&&e.__esModule?e:{default:e}}Xr.attribute=function(e){return new Kr.default(e)};Xr.className=function(e){return new Jr.default(e)};Xr.combinator=function(e){return new $r.default(e)};Xr.comment=function(e){return new ei.default(e)};Xr.id=function(e){return new ti.default(e)};Xr.nesting=function(e){return new ni.default(e)};Xr.pseudo=function(e){return new oi.default(e)};Xr.root=function(e){return new ri.default(e)};Xr.selector=function(e){return new ii.default(e)};Xr.string=function(e){return new ai.default(e)};Xr.tag=function(e){return new si.default(e)};Xr.universal=function(e){return new ci.default(e)};var li={__esModule:!0};li.isComment=li.isCombinator=li.isClassName=li.isAttribute=void 0,li.isContainer=function(e){return!(!fi(e)||!e.walk)},li.isIdentifier=void 0,li.isNamespace=function(e){return mi(e)||Pi(e)},li.isNesting=void 0,li.isNode=fi,li.isPseudo=void 0,li.isPseudoClass=function(e){return Ci(e)&&!Ei(e)},li.isPseudoElement=Ei,li.isUniversal=li.isTag=li.isString=li.isSelector=li.isRoot=void 0;var di,pi=ur,hi=((di={})[pi.ATTRIBUTE]=!0,di[pi.CLASS]=!0,di[pi.COMBINATOR]=!0,di[pi.COMMENT]=!0,di[pi.ID]=!0,di[pi.NESTING]=!0,di[pi.PSEUDO]=!0,di[pi.ROOT]=!0,di[pi.SELECTOR]=!0,di[pi.STRING]=!0,di[pi.TAG]=!0,di[pi.UNIVERSAL]=!0,di);function fi(e){return\"object\"==typeof e&&hi[e.type]}function gi(e,t){return fi(t)&&t.type===e}var mi=gi.bind(null,pi.ATTRIBUTE);li.isAttribute=mi;var vi=gi.bind(null,pi.CLASS);li.isClassName=vi;var yi=gi.bind(null,pi.COMBINATOR);li.isCombinator=yi;var bi=gi.bind(null,pi.COMMENT);li.isComment=bi;var wi=gi.bind(null,pi.ID);li.isIdentifier=wi;var Si=gi.bind(null,pi.NESTING);li.isNesting=Si;var Ci=gi.bind(null,pi.PSEUDO);li.isPseudo=Ci;var _i=gi.bind(null,pi.ROOT);li.isRoot=_i;var Ii=gi.bind(null,pi.SELECTOR);li.isSelector=Ii;var xi=gi.bind(null,pi.STRING);li.isString=xi;var Pi=gi.bind(null,pi.TAG);li.isTag=Pi;var ki=gi.bind(null,pi.UNIVERSAL);function Ei(e){return Ci(e)&&e.value&&(e.value.startsWith(\"::\")||\":before\"===e.value.toLowerCase()||\":after\"===e.value.toLowerCase()||\":first-letter\"===e.value.toLowerCase()||\":first-line\"===e.value.toLowerCase())}li.isUniversal=ki,function(e){e.__esModule=!0;var t=ur;Object.keys(t).forEach((function(n){\"default\"!==n&&\"__esModule\"!==n&&(n in e&&e[n]===t[n]||(e[n]=t[n]))}));var n=Xr;Object.keys(n).forEach((function(t){\"default\"!==t&&\"__esModule\"!==t&&(t in e&&e[t]===n[t]||(e[t]=n[t]))}));var o=li;Object.keys(o).forEach((function(t){\"default\"!==t&&\"__esModule\"!==t&&(t in e&&e[t]===o[t]||(e[t]=o[t]))}))}(Qr),function(e,t){t.__esModule=!0,t.default=void 0;var n,o=(n=Yr)&&n.__esModule?n:{default:n},r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(\"default\"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(Qr);function i(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}var a=function(e){return new o.default(e)};Object.assign(a,r),delete a.__esModule;var s=a;t.default=s,e.exports=t.default}(zo,zo.exports);var Oi=Oe(zo.exports),Mi={exports:{}};!function(e,t){var n=this;!function(t,n){t=\"undefined\"!=typeof globalThis?globalThis:t||self,e.exports=n(),void 0===t.window&&(t.window=t,void 0===t.window.atob&&(t.window.atob=function(e){return function(e){var t=\"\",n=String(e).replace(/=+$/,\"\");if(n.length%4==1)throw new Error('\"atob\" failed');for(var o=0,r=0,i=0,a=0;r=n.charAt(a);)a+=1,~(r=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(r))&&(o=i%4?64*o+r:r,i++%4&&(t+=String.fromCharCode(255&o>>(-2*i&6))));return t}(e)}),void 0===t.window.btoa&&(t.window.btoa=function(e){return function(e){for(var t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",n=String(e),o=\"\",r=0,i=0;n.charAt(0|r)||(t=\"=\",r%1);){r+=.75;var a=n.charCodeAt(r);if(a>255)throw new Error('\"btoa\" failed');var s=63&(i=i<<8|a)>>8-r%1*8;o+=t.charAt(s)}return o}(e)}))}(n,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=21)}([function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('\"'+t+'\" is a required argument.')};var n=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,o=/^data:.+\\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,o=r(e);if(o){if(!o.path)return e;n=o.path}for(var a,s=t.isAbsolute(n),c=n.split(/\\/+/),u=0,l=c.length-1;l>=0;l--)\".\"===(a=c[l])?c.splice(l,1):\"..\"===a?u++:u>0&&(\"\"===a?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return\"\"===(n=c.join(\"/\"))&&(n=s?\"/\":\".\"),o?(o.path=n,i(o)):n}function s(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var n=r(t),s=r(e);if(s&&(e=s.path||\"/\"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(o))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var c=\"/\"===t.charAt(0)?t:a(e.replace(/\\/+$/,\"\")+\"/\"+t);return s?(s.path=c,i(s)):c}t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=s,t.isAbsolute=function(e){return\"/\"===e.charAt(0)||n.test(e)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var n=0;0!==t.indexOf(e+\"/\");){var o=e.lastIndexOf(\"/\");if(o<0)return t;if((e=e.slice(0,o)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++n}return Array(n+1).join(\"../\")+t.substr(e.length+1)};var c=!(\"__proto__\"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?\"$\"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var o=d(e.source,t.source);return 0!==o||0!=(o=e.originalLine-t.originalLine)||0!=(o=e.originalColumn-t.originalColumn)||n||0!=(o=e.generatedColumn-t.generatedColumn)||0!=(o=e.generatedLine-t.generatedLine)?o:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var o=e.generatedLine-t.generatedLine;return 0!==o||0!=(o=e.generatedColumn-t.generatedColumn)||n||0!==(o=d(e.source,t.source))||0!=(o=e.originalLine-t.originalLine)||0!=(o=e.originalColumn-t.originalColumn)?o:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}'[^\\n]*\\n/,\"\"))},t.computeSourceURL=function(e,t,n){if(t=t||\"\",e&&(\"/\"!==e[e.length-1]&&\"/\"!==t[0]&&(e+=\"/\"),t=e+t),n){var o=r(n);if(!o)throw new Error(\"sourceMapURL could not be parsed\");if(o.path){var c=o.path.lastIndexOf(\"/\");c>=0&&(o.path=o.path.substring(0,c+1))}t=s(i(o),t)}return a(t)}},function(e,t,n){var o;t.__esModule=!0,t.default=void 0;var r=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=\"decl\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o}(((o=n(2))&&o.__esModule?o:{default:o}).default);t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=a(n(10)),r=a(n(11)),i=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},t.warn=function(e,t,n){var o={node:this};for(var r in n)o[r]=n[r];return e.warn(t,o)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=i.default),e.stringify&&(e=e.stringify);var t=\"\";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var o=new t.constructor;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a=typeof i;\"parent\"===r&&\"object\"===a?n&&(o[r]=n):\"source\"===r?o[r]=i:i instanceof Array?o[r]=i.map((function(t){return e(t,o)})):(\"object\"===a&&null!==i&&(i=e(i)),o[r]=i)}return o}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=0,r=t;o<r.length;o++){var i=r[o];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&\"parent\"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return\"object\"==typeof e&&e.toJSON?e.toJSON():e})):\"object\"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new r.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,o=this.source.start.line,r=0;r<e;r++)\"\\n\"===t[r]?(n=1,o+=1):n+=1;return{line:o,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=s,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o,r=(o=n(11))&&o.__esModule?o:{default:o};t.default=function(e,t){new r.default(t).stringify(e)},e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,o=e.length-1;o>=0;o--){var r=e[o];\".\"===r?e.splice(o,1):\"..\"===r?(e.splice(o,1),n++):n&&(e.splice(o,1),n--)}if(t)for(;n--;n)e.unshift(\"..\");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}t.resolve=function(){for(var t=\"\",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if(\"string\"!=typeof a)throw new TypeError(\"Arguments to path.resolve must be strings\");a&&(t=a+\"/\"+t,r=\"/\"===a.charAt(0))}return(r?\"/\":\"\")+(t=n(o(t.split(\"/\"),(function(e){return!!e})),!r).join(\"/\"))||\".\"},t.normalize=function(e){var i=t.isAbsolute(e),a=\"/\"===r(e,-1);return(e=n(o(e.split(\"/\"),(function(e){return!!e})),!i).join(\"/\"))||i||(e=\".\"),e&&a&&(e+=\"/\"),(i?\"/\":\"\")+e},t.isAbsolute=function(e){return\"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function o(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=o(e.split(\"/\")),i=o(n.split(\"/\")),a=Math.min(r.length,i.length),s=a,c=0;c<a;c++)if(r[c]!==i[c]){s=c;break}var u=[];for(c=s;c<r.length;c++)u.push(\"..\");return(u=u.concat(i.slice(s))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),n=47===t,o=-1,r=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!r){o=i;break}}else r=!1;return-1===o?n?\"/\":\".\":n&&1===o?\"/\":e.slice(0,o)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,o=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===o&&(r=!1,o=t+1);return-1===o?\"\":e.slice(n,o)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,o=-1,r=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===o&&(r=!1,o=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!r){n=a+1;break}}return-1===t||-1===o||0===i||1===i&&t===o-1&&t===n+1?\"\":e.slice(t,o)};var r=\"b\"===\"ab\".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(36))},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=i(n(40)),r=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=new r.default(e,t),i=new o.default(n);try{i.parse()}catch(e){throw e}return i.root},e.exports=t.default},function(e,t,n){var o;t.__esModule=!0,t.default=void 0;var r=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=\"comment\",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o}(((o=n(2))&&o.__esModule?o:{default:o}).default);t.default=r,e.exports=t.default},function(e,t,n){var o;t.__esModule=!0,t.default=void 0;var r=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).type=\"atrule\",n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.prototype.append).call.apply(t,[this].concat(o))},r.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.prototype.prepend).call.apply(t,[this].concat(o))},o}(((o=n(8))&&o.__esModule?o:{default:o}).default);t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=i(n(1)),r=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,i;function a(){return e.apply(this,arguments)||this}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var s,c=a.prototype;return c.push=function(e){return e.parent=this,this.nodes.push(e),this},c.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,o;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(o=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],o}},c.walk=function(e){return this.each((function(t,n){var o;try{o=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\\n\\s{4}at /.test(e.stack)){var r=t.source;e.stack=e.stack.replace(/\\n\\s{4}at /,\"$&\"+r.input.from+\":\"+r.start.line+\":\"+r.start.column+\"$&\")}throw e}return!1!==o&&t.walk&&(o=t.walk(e)),o}))},c.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,o){if(\"decl\"===n.type&&e.test(n.prop))return t(n,o)})):this.walk((function(n,o){if(\"decl\"===n.type&&n.prop===e)return t(n,o)})):(t=e,this.walk((function(e,n){if(\"decl\"===e.type)return t(e,n)})))},c.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,o){if(\"rule\"===n.type&&e.test(n.selector))return t(n,o)})):this.walk((function(n,o){if(\"rule\"===n.type&&n.selector===e)return t(n,o)})):(t=e,this.walk((function(e,n){if(\"rule\"===e.type)return t(e,n)})))},c.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,o){if(\"atrule\"===n.type&&e.test(n.name))return t(n,o)})):this.walk((function(n,o){if(\"atrule\"===n.type&&n.name===e)return t(n,o)})):(t=e,this.walk((function(e,n){if(\"atrule\"===e.type)return t(e,n)})))},c.walkComments=function(e){return this.walk((function(t,n){if(\"comment\"===t.type)return e(t,n)}))},c.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=0,r=t;o<r.length;o++){var i=r[o],a=this.normalize(i,this.last),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var l=u;this.nodes.push(l)}}return this},c.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t=t.reverse(),r=Array.isArray(o),i=0;for(o=r?o:o[Symbol.iterator]();;){var a;if(r){if(i>=o.length)break;a=o[i++]}else{if((i=o.next()).done)break;a=i.value}var s=a,c=this.normalize(s,this.first,\"prepend\").reverse(),u=c,l=Array.isArray(u),d=0;for(u=l?u:u[Symbol.iterator]();;){var p;if(l){if(d>=u.length)break;p=u[d++]}else{if((d=u.next()).done)break;p=d.value}var h=p;this.nodes.unshift(h)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+c.length}return this},c.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var i;if(o){if(r>=n.length)break;i=n[r++]}else{if((r=n.next()).done)break;i=r.value}i.cleanRaws(t)}}},c.insertBefore=function(e,t){var n,o=0===(e=this.index(e))&&\"prepend\",r=this.normalize(t,this.nodes[e],o).reverse(),i=r,a=Array.isArray(i),s=0;for(i=a?i:i[Symbol.iterator]();;){var c;if(a){if(s>=i.length)break;c=i[s++]}else{if((s=i.next()).done)break;c=s.value}var u=c;this.nodes.splice(e,0,u)}for(var l in this.indexes)e<=(n=this.indexes[l])&&(this.indexes[l]=n+r.length);return this},c.insertAfter=function(e,t){e=this.index(e);var n,o=this.normalize(t,this.nodes[e]).reverse(),r=o,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var c=s;this.nodes.splice(e+1,0,c)}for(var u in this.indexes)e<(n=this.indexes[u])&&(this.indexes[u]=n+o.length);return this},c.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},c.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var o;if(t){if(n>=e.length)break;o=e[n++]}else{if((n=e.next()).done)break;o=n.value}o.parent=void 0}return this.nodes=[],this},c.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(o){t.props&&-1===t.props.indexOf(o.prop)||t.fast&&-1===o.value.indexOf(t.fast)||(o.value=o.value.replace(e,n))})),this},c.every=function(e){return this.nodes.every(e)},c.some=function(e){return this.nodes.some(e)},c.index=function(e){return\"number\"==typeof e?e:this.nodes.indexOf(e)},c.normalize=function(e,t){var i=this;if(\"string\"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(5)(e).nodes);else if(Array.isArray(e)){var a=e=e.slice(0),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var l=u;l.parent&&l.parent.removeChild(l,\"ignore\")}}else if(\"root\"===e.type){var d=e=e.nodes.slice(0),p=Array.isArray(d),h=0;for(d=p?d:d[Symbol.iterator]();;){var f;if(p){if(h>=d.length)break;f=d[h++]}else{if((h=d.next()).done)break;f=h.value}var g=f;g.parent&&g.parent.removeChild(g,\"ignore\")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(\"Value field is missed in node creation\");\"string\"!=typeof e.value&&(e.value=String(e.value)),e=[new o.default(e)]}else if(e.selector)e=[new(n(9))(e)];else if(e.name)e=[new(n(7))(e)];else{if(!e.text)throw new Error(\"Unknown node type in node creation\");e=[new r.default(e)]}return e.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\\s]/g,\"\")),e.parent=i,e}))},(s=[{key:\"first\",get:function(){if(this.nodes)return this.nodes[0]}},{key:\"last\",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(a.prototype,s),a}(i(n(2)).default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=i(n(8)),r=i(n(19));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,n,o;function i(t){var n;return(n=e.call(this,t)||this).type=\"rule\",n.nodes||(n.nodes=[]),n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,(o=[{key:\"selectors\",get:function(){return r.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\\s*/):null,n=t?t[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=e.join(n)}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,o),i}(o.default);t.default=a,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=a(n(22)),r=a(n(23)),i=a(n(24));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=\"function\"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return c(e,arguments,l(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),u(o,e)})(e)}function c(e,t,n){return(c=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&u(r,n.prototype),r}).apply(null,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){var t,n;function a(t,n,o,r,i,s){var c;return(c=e.call(this,t)||this).name=\"CssSyntaxError\",c.reason=t,i&&(c.file=i),r&&(c.source=r),s&&(c.plugin=s),void 0!==n&&void 0!==o&&(c.line=n,c.column=o),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(c),a),c}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.setMessage=function(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",void 0!==this.line&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason},s.showSourceCode=function(e){var t=this;if(!this.source)return\"\";var n=this.source;i.default&&(void 0===e&&(e=o.default.stdout),e&&(n=(0,i.default)(n)));var a=n.split(/\\r?\\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;function l(t){return e&&r.default.red?r.default.red.bold(t):t}function d(t){return e&&r.default.gray?r.default.gray(t):t}return a.slice(s,c).map((function(e,n){var o=s+1+n,r=\" \"+(\" \"+o).slice(-u)+\" | \";if(o===t.line){var i=d(r.replace(/\\d/g,\" \"))+e.slice(0,t.column-1).replace(/[^\\t]/g,\" \");return l(\">\")+d(r)+e+\"\\n \"+i+l(\"^\")}return\" \"+d(r)+e})).join(\"\\n\")},s.toString=function(){var e=this.showSourceCode();return e&&(e=\"\\n\\n\"+e+\"\\n\"),this.name+\": \"+this.message+e},a}(s(Error));t.default=d,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o={colon:\": \",indent:\" \",beforeDecl:\"\\n\",beforeRule:\"\\n\",beforeOpen:\" \",beforeClose:\"\\n\",beforeComment:\"\\n\",after:\"\\n\",emptyBody:\"\",commentLeft:\" \",commentRight:\" \",semicolon:!1},r=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,\"left\",\"commentLeft\"),n=this.raw(e,\"right\",\"commentRight\");this.builder(\"/*\"+t+e.text+n+\"*/\",e)},t.decl=function(e,t){var n=this.raw(e,\"between\",\"colon\"),o=e.prop+n+this.rawValue(e,\"value\");e.important&&(o+=e.raws.important||\" !important\"),t&&(o+=\";\"),this.builder(o,e)},t.rule=function(e){this.block(e,this.rawValue(e,\"selector\")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,\"end\")},t.atrule=function(e,t){var n=\"@\"+e.name,o=e.params?this.rawValue(e,\"params\"):\"\";if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&&(n+=\" \"),e.nodes)this.block(e,n+o);else{var r=(e.raws.between||\"\")+(t?\";\":\"\");this.builder(n+o+r,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&\"comment\"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,\"semicolon\"),o=0;o<e.nodes.length;o++){var r=e.nodes[o],i=this.raw(r,\"before\");i&&this.builder(i),this.stringify(r,t!==o||n)}},t.block=function(e,t){var n,o=this.raw(e,\"between\",\"beforeOpen\");this.builder(t+o+\"{\",e,\"start\"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,\"after\")):n=this.raw(e,\"after\",\"emptyBody\"),n&&this.builder(n),this.builder(\"}\",e,\"end\")},t.raw=function(e,t,n){var r;if(n||(n=t),t&&void 0!==(r=e.raws[t]))return r;var i=e.parent;if(\"before\"===n&&(!i||\"root\"===i.type&&i.first===e))return\"\";if(!i)return o[n];var a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if(\"before\"===n||\"after\"===n)return this.beforeAfter(e,n);var s,c=\"raw\"+((s=n)[0].toUpperCase()+s.slice(1));return this[c]?r=this[c](a,e):a.walk((function(e){if(void 0!==(r=e.raws[t]))return!1})),void 0===r&&(r=o[n]),a.rawCache[n]=r,r},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&\"decl\"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&void 0!==n.raws.before){var r=n.raws.before.split(\"\\n\");return t=(t=r[r.length-1]).replace(/[^\\s]/g,\"\"),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeDecl\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf(\"\\n\")&&(n=n.replace(/[^\\n]+$/,\"\")),!1})),void 0===n?n=this.raw(t,null,\"beforeRule\"):n&&(n=n.replace(/[^\\s]/g,\"\")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf(\"\\n\")&&(t=t.replace(/[^\\n]+$/,\"\")),!1})),t&&(t=t.replace(/[^\\s]/g,\"\")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if(\"decl\"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\\s:]/g,\"\"),!1})),t},t.beforeAfter=function(e,t){var n;n=\"decl\"===e.type?this.raw(e,null,\"beforeDecl\"):\"comment\"===e.type?this.raw(e,null,\"beforeComment\"):\"before\"===t?this.raw(e,null,\"beforeRule\"):this.raw(e,null,\"beforeClose\");for(var o=e.parent,r=0;o&&\"root\"!==o.type;)r+=1,o=o.parent;if(-1!==n.indexOf(\"\\n\")){var i=this.raw(e,null,\"indent\");if(i.length)for(var a=0;a<r;a++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],o=e.raws[t];return o&&o.value===n?o.raw:n},e}();t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o,r=(o=n(13))&&o.__esModule?o:{default:o},i=function(){function e(e){void 0===e&&(e=[]),this.version=\"7.0.32\",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&(t.parser,t.stringifier),new r.default(this,e,t)})),t.normalize=function(e){var t=[],n=e,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var i;if(o){if(r>=n.length)break;i=n[r++]}else{if((r=n.next()).done)break;i=r.value}var a=i;if(a.postcss&&(a=a.postcss),\"object\"==typeof a&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if(\"function\"==typeof a)t.push(a);else if(\"object\"!=typeof a||!a.parse&&!a.stringify)throw new Error(a+\" is not a PostCSS plugin\")}return t},e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=s(n(25)),r=s(n(3)),i=(s(n(37)),s(n(38))),a=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return\"object\"==typeof e&&\"function\"==typeof e.then}var u=function(){function e(t,n,o){var r;if(this.stringified=!1,this.processed=!1,\"object\"==typeof n&&null!==n&&\"root\"===n.type)r=n;else if(n instanceof e||n instanceof i.default)r=n.root,n.map&&(void 0===o.map&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=n.map);else{var s=a.default;o.syntax&&(s=o.syntax.parse),o.parser&&(s=o.parser),s.parse&&(s=s.parse);try{r=s(n,o)}catch(e){this.error=e}}this.result=new i.default(t,r,o)}var t,n=e.prototype;return n.warnings=function(){return this.sync().warnings()},n.toString=function(){return this.css},n.then=function(e,t){return this.async().then(e,t)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.handleError=function(e,t){try{this.error=e,\"CssSyntaxError\"!==e.name||e.plugin?t.postcssVersion:(e.plugin=t.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}},n.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var o=this.processor.plugins[this.plugin],r=this.run(o);this.plugin+=1,c(r)?r.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,o),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},n.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},n.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error(\"Use process(css).then(cb) to work with async plugins\");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var o;if(t){if(n>=e.length)break;o=e[n++]}else{if((n=e.next()).done)break;o=n.value}var r=o;if(c(this.run(r)))throw new Error(\"Use process(css).then(cb) to work with async plugins\")}return this.result},n.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},n.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=r.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},(t=[{key:\"processor\",get:function(){return this.result.processor}},{key:\"opts\",get:function(){return this.result.opts}},{key:\"css\",get:function(){return this.stringify().css}},{key:\"content\",get:function(){return this.stringify().content}},{key:\"map\",get:function(){return this.stringify().map}},{key:\"root\",get:function(){return this.sync().root}},{key:\"messages\",get:function(){return this.sync().messages}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}();t.default=u,e.exports=t.default},function(e,t,n){(function(e){var o=n(27),r=n(28),i=n(29);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError(\"Invalid typed array length\");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<n+(o||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t),e}(e,t,n,o):\"string\"==typeof t?function(e,t,n){if(\"string\"==typeof n&&\"\"!==n||(n=\"utf8\"),!c.isEncoding(n))throw new TypeError('\"encoding\" must be a valid string encoding');var o=0|f(t,n),r=(e=s(e,o)).write(t,n);return r!==o&&(e=e.slice(0,r)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||(o=t.length)!=o?s(e,0):p(e,t);if(\"Buffer\"===t.type&&i(t.data))return p(e,t.data)}var o;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function d(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function h(e){if(e>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return z(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return U(e).length;default:if(o)return z(e).length;t=(\"\"+t).toLowerCase(),o=!0}}function g(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return O(this,t,n);case\"utf8\":case\"utf-8\":return P(this,t,n);case\"ascii\":return k(this,t,n);case\"latin1\":case\"binary\":return E(this,t,n);case\"base64\":return x(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return M(this,t,n);default:if(o)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),o=!0}}function m(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,r){if(0===e.length)return-1;if(\"string\"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if(\"string\"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,r);if(\"number\"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,r);throw new TypeError(\"val must be string, number or Buffer\")}function y(e,t,n,o,r){var i,a=1,s=e.length,c=t.length;if(void 0!==o&&(\"ucs2\"===(o=String(o).toLowerCase())||\"ucs-2\"===o||\"utf16le\"===o||\"utf-16le\"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var l=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var d=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){d=!1;break}if(d)return i}return-1}function b(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,o){return H(z(t,e.length-n),e,n,o)}function S(e,t,n,o){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function C(e,t,n,o){return S(e,t,n,o)}function _(e,t,n,o){return H(U(t),e,n,o)}function I(e,t,n,o){return H(function(e,t){for(var n,o,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)o=(n=e.charCodeAt(a))>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function x(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,a,s,c,u=e[r],l=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[r+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[r+1],a=e[r+2],s=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=\"\",o=0;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}function k(e,t,n){var o=\"\";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function E(e,t,n){var o=\"\";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function O(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r=\"\",i=t;i<n;++i)r+=F(e[i]);return r}function M(e,t,n){for(var o=e.slice(t,n),r=\"\",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function T(e,t,n,o,r,i){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+o>e.length)throw new RangeError(\"Index out of range\")}function A(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function D(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function R(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function L(e,t,n,o,i){return i||R(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function B(e,t,n,o,i){return i||R(e,0,n,8),r.write(e,t,n,o,52,8),n+8}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,o){return l(t),t<=0?s(e,t):void 0!==n?\"string\"==typeof o?s(e,t).fill(n,o):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?P(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},c.prototype.compare=function(e,t,n,o,r){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError(\"out of range index\");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(o,r),l=e.slice(t,n),d=0;d<s;++d)if(u[d]!==l[d]){i=u[d],a=l[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,o){if(void 0===t)o=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,void 0===o&&(o=\"utf8\")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");o||(o=\"utf8\");for(var i=!1;;)switch(o){case\"hex\":return b(this,e,t,n);case\"utf8\":case\"utf-8\":return w(this,e,t,n);case\"ascii\":return S(this,e,t,n);case\"latin1\":case\"binary\":return C(this,e,t,n);case\"base64\":return _(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return I(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+o);o=(\"\"+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||T(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,o){e=+e,t|=0,n|=0,o||T(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(o<0)throw new RangeError(\"sourceEnd out of bounds\");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,o){if(\"string\"==typeof e){if(\"string\"==typeof t?(o=t,t=0,n=this.length):\"string\"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&\"string\"!=typeof o)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof o&&!c.isEncoding(o))throw new TypeError(\"Unknown encoding: \"+o)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:z(new c(e,o).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var j=/[^+\\/0-9A-Za-z-_]/g;function F(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(j,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function H(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(26))},function(e,t,n){t.SourceMapGenerator=n(16).SourceMapGenerator,t.SourceMapConsumer=n(32).SourceMapConsumer,t.SourceNode=n(35).SourceNode},function(e,t,n){var o=n(17),r=n(0),i=n(18).ArraySet,a=n(31).MappingList;function s(e){e||(e={}),this._file=r.getArg(e,\"file\",null),this._sourceRoot=r.getArg(e,\"sourceRoot\",null),this._skipValidation=r.getArg(e,\"skipValidation\",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=t&&(o.source=r.relative(t,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),n.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==t&&(i=r.relative(t,o)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(o);null!=a&&n.setSourceContent(o,a)})),n},s.prototype.addMapping=function(e){var t=r.getArg(e,\"generated\"),n=r.getArg(e,\"original\",null),o=r.getArg(e,\"source\",null),i=r.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,n,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:o,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var o=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');o=e.file}var a=this._sourceRoot;null!=a&&(o=r.relative(a,o));var s=new i,c=new i;this._mappings.unsortedForEach((function(t){if(t.source===o&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=r.join(n,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var u=t.source;null==u||s.has(u)||s.add(u);var l=t.name;null==l||c.has(l)||c.add(l)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var o=e.sourceContentFor(t);null!=o&&(null!=n&&(t=r.join(n,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,o))}),this)},s.prototype._validateMapping=function(e,t,n,o){if(t&&\"number\"!=typeof t.line&&\"number\"!=typeof t.column)throw new Error(\"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.\");if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||n||o)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:n,original:t,name:o}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,s=1,c=0,u=0,l=0,d=0,p=\"\",h=this._mappings.toArray(),f=0,g=h.length;f<g;f++){if(e=\"\",(t=h[f]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=\";\",s++;else if(f>0){if(!r.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=\",\"}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=o.encode(i-d),d=i,e+=o.encode(t.originalLine-1-u),u=t.originalLine-1,e+=o.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-l),l=n)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var o=n(30);t.encode=function(e){var t,n=\"\",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=o.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,a,s,c=e.length,u=0,l=0;do{if(t>=c)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(i=o.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));r=!!(32&i),u+=(i&=31)<<l,l+=5}while(r);n.value=(s=(a=u)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var o=n(0),r=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,o=0,r=e.length;o<r;o++)n.add(e[o],t);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=i?e:o.toSetString(e),a=i?this.has(e):r.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(i)return this._set.has(e);var t=o.toSetString(e);return r.call(this._set,t)},a.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=o.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('\"'+e+'\" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){t.__esModule=!0,t.default=void 0;var o={split:function(e,t,n){for(var o=[],r=\"\",i=!1,a=0,s=!1,c=!1,u=0;u<e.length;u++){var l=e[u];s?c?c=!1:\"\\\\\"===l?c=!0:l===s&&(s=!1):'\"'===l||\"'\"===l?s=l:\"(\"===l?a+=1:\")\"===l?a>0&&(a-=1):0===a&&-1!==t.indexOf(l)&&(i=!0),i?(\"\"!==r&&o.push(r.trim()),r=\"\",i=!1):r+=l}return(n||\"\"!==r)&&o.push(r.trim()),o},space:function(e){return o.split(e,[\" \",\"\\n\",\"\\t\"])},comma:function(e){return o.split(e,[\",\"],!0)}},r=o;t.default=r,e.exports=t.default},function(e,t,n){var o;t.__esModule=!0,t.default=void 0;var r=function(e){var t,o;function r(t){var n;return(n=e.call(this,t)||this).type=\"root\",n.nodes||(n.nodes=[]),n}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var i=r.prototype;return i.removeChild=function(t,n){var o=this.index(t);return!n&&0===o&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),e.prototype.removeChild.call(this,t)},i.normalize=function(t,n,o){var r=e.prototype.normalize.call(this,t);if(n)if(\"prepend\"===o)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=r,a=Array.isArray(i),s=0;for(i=a?i:i[Symbol.iterator]();;){var c;if(a){if(s>=i.length)break;c=i[s++]}else{if((s=i.next()).done)break;c=s.value}c.raws.before=n.raws.before}}return r},i.toResult=function(e){return void 0===e&&(e={}),new(n(13))(new(n(12)),this,e).stringify()},r}(((o=n(8))&&o.__esModule?o:{default:o}).default);t.default=r,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=h(n(1)),r=h(n(12)),i=h(n(3)),a=h(n(6)),s=h(n(7)),c=h(n(45)),u=h(n(5)),l=h(n(19)),d=h(n(9)),p=h(n(20));function h(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new r.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new r.default).version,n}var o;return Object.defineProperty(n,\"postcss\",{get:function(){return o||(o=n()),o}}),n.process=function(e,t,o){return f([n(o)]).process(e,t)},n},f.stringify=i.default,f.parse=u.default,f.vendor=c.default,f.list=l.default,f.comment=function(e){return new a.default(e)},f.atRule=function(e){return new s.default(e)},f.decl=function(e){return new o.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new p.default(e)};var g=f;t.default=g,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){(function(o){t.__esModule=!0,t.default=void 0;var r=a(n(15)),i=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)\"comment\"===(e=this.root.nodes[t]).type&&0===e.text.indexOf(\"# sourceMappingURL=\")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var o=n.source.input.from;if(o&&!t[o]){t[o]=!0;var r=e.relative(o);e.map.setSourceContent(r,n.source.input.css)}}}))},t.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var o;if(t){if(n>=e.length)break;o=e[n++]}else{if((n=e.next()).done)break;o=n.value}var a=o,s=this.relative(a.file),c=a.root||i.default.dirname(a.file),u=void 0;!1===this.mapOpts.sourcesContent?(u=new r.default.SourceMapConsumer(a.text)).sourcesContent&&(u.sourcesContent=u.sourcesContent.map((function(){return null}))):u=a.consumer(),this.map.applySourceMap(u,s,this.relative(c))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return o?o.from(e).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?\"data:application/json;base64,\"+this.toBase64(this.map.toString()):\"string\"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+\".map\";var t=\"\\n\";-1!==this.css.indexOf(\"\\r\\n\")&&(t=\"\\r\\n\"),this.css+=t+\"/*# sourceMappingURL=\"+e+\" */\"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):\"to.css\"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf(\"<\"))return e;if(/^\\w+:\\/\\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):\".\";return\"string\"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),\"\\\\\"===i.default.sep?e.replace(/\\\\/g,\"/\"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css=\"\",this.map=new r.default.SourceMapGenerator({file:this.outputFile()});var t,n,o=1,i=1;this.stringify(this.root,(function(r,a,s){if(e.css+=r,a&&\"end\"!==s&&(a.source&&a.source.start?e.map.addMapping({source:e.sourcePath(a),generated:{line:o,column:i-1},original:{line:a.source.start.line,column:a.source.start.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:o,column:i-1}})),(t=r.match(/\\n/g))?(o+=t.length,n=r.lastIndexOf(\"\\n\"),i=r.length-n):i+=r.length,a&&\"start\"!==s){var c=a.parent||{raws:{}};(\"decl\"!==a.type||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?e.map.addMapping({source:e.sourcePath(a),generated:{line:o,column:i-2},original:{line:a.source.end.line,column:a.source.end.column-1}}):e.map.addMapping({source:\"<no source>\",original:{line:1,column:0},generated:{line:o,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e=\"\";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();t.default=s,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){var o;o=function(){return this}();try{o=o||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(o=window),o=o||(\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof global?global:void 0!==n?n:self)}e.exports=o||{}},function(e,t,n){t.byteLength=function(e){var t=c(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){for(var t,n=c(e),o=n[0],a=n[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,l=a>0?o-4:o,d=0;d<l;d+=4)t=r[e.charCodeAt(d)]<<18|r[e.charCodeAt(d+1)]<<12|r[e.charCodeAt(d+2)]<<6|r[e.charCodeAt(d+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(d)]<<2|r[e.charCodeAt(d+1)]>>4,s[u++]=255&t),1===a&&(t=r[e.charCodeAt(d)]<<10|r[e.charCodeAt(d+1)]<<4|r[e.charCodeAt(d+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,s=n-r;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));return 1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+\"==\")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+\"=\")),i.join(\"\")};for(var o=[],r=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)o[s]=a[s],r[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,i,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(o[(i=r)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join(\"\")}r[\"-\".charCodeAt(0)]=62,r[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?r-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=o;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,o),i-=u}return(h?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,c,u=8*i-r-1,l=(1<<u)-1,d=l>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,f=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+h]=255&s,h+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;e[n+h]=255&a,h+=f,a/=256,u-=8);e[n+h-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==n.call(e)}},function(e,t){var n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var o=n(0);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,a,s;n=e,r=(t=this._last).generatedLine,i=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,i>r||i==r&&s>=a||o.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=r},function(e,t,n){var o=n(0),r=n(33),i=n(18).ArraySet,a=n(17),s=n(34).quickSort;function c(e,t){var n=e;return\"string\"==typeof e&&(n=o.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new u(n,t)}function u(e,t){var n=e;\"string\"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,\"version\"),a=o.getArg(n,\"sources\"),s=o.getArg(n,\"names\",[]),c=o.getArg(n,\"sourceRoot\",null),u=o.getArg(n,\"sourcesContent\",null),l=o.getArg(n,\"mappings\"),d=o.getArg(n,\"file\",null);if(r!=this._version)throw new Error(\"Unsupported version: \"+r);c&&(c=o.normalize(c)),a=a.map(String).map(o.normalize).map((function(e){return c&&o.isAbsolute(c)&&o.isAbsolute(e)?o.relative(c,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return o.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;\"string\"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,\"version\"),a=o.getArg(n,\"sections\");if(r!=this._version)throw new Error(\"Unsupported version: \"+r);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var n=o.getArg(e,\"offset\"),r=o.getArg(n,\"line\"),i=o.getArg(n,\"column\");if(r<s.line||r===s.line&&i<s.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new c(o.getArg(e,\"map\"),t)}}))}c.fromSourceMap=function(e,t){return u.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,\"_generatedMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,\"_originalMappings\",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return\";\"===n||\",\"===n},c.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:r=this._generatedMappings;break;case c.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var a=this.sourceRoot;r.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=o.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},c.prototype.allGeneratedPositionsFor=function(e){var t=o.getArg(e,\"line\"),n={source:o.getArg(e,\"source\"),originalLine:t,originalColumn:o.getArg(e,\"column\",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",o.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)i.push({line:o.getArg(s,\"generatedLine\",null),column:o.getArg(s,\"generatedColumn\",null),lastColumn:o.getArg(s,\"lastGeneratedColumn\",null)}),s=this._originalMappings[++a];else for(var u=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==u;)i.push({line:o.getArg(s,\"generatedLine\",null),column:o.getArg(s,\"generatedColumn\",null),lastColumn:o.getArg(s,\"lastGeneratedColumn\",null)}),s=this._originalMappings[++a]}return i},t.SourceMapConsumer=c,u.prototype=Object.create(c.prototype),u.prototype.consumer=c,u.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=o.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},u.fromSourceMap=function(e,t){var n=Object.create(u.prototype),r=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return o.computeSourceURL(n.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),d=n.__generatedMappings=[],p=n.__originalMappings=[],h=0,f=c.length;h<f;h++){var g=c[h],m=new l;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=a.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=r.indexOf(g.name)),p.push(m)),d.push(m)}return s(n.__originalMappings,o.compareByOriginalPositions),n},u.prototype._version=3,Object.defineProperty(u.prototype,\"sources\",{get:function(){return this._absoluteSources.slice()}}),u.prototype._parseMappings=function(e,t){for(var n,r,i,c,u,d=1,p=0,h=0,f=0,g=0,m=0,v=e.length,y=0,b={},w={},S=[],C=[];y<v;)if(\";\"===e.charAt(y))d++,y++,p=0;else if(\",\"===e.charAt(y))y++;else{for((n=new l).generatedLine=d,c=y;c<v&&!this._charIsMappingSeparator(e,c);c++);if(i=b[r=e.slice(y,c)])y+=r.length;else{for(i=[];y<c;)a.decode(e,y,w),u=w.value,y=w.rest,i.push(u);if(2===i.length)throw new Error(\"Found a source, but no line and column\");if(3===i.length)throw new Error(\"Found a source and line, but no column\");b[r]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=h+i[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),C.push(n),\"number\"==typeof n.originalLine&&S.push(n)}s(C,o.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,s(S,o.compareByOriginalPositions),this.__originalMappings=S},u.prototype._findMapping=function(e,t,n,o,i,a){if(e[n]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[n]);if(e[o]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[o]);return r.search(e,t,i,a)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,\"line\"),generatedColumn:o.getArg(e,\"column\")},n=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",o.compareByGeneratedPositionsDeflated,o.getArg(e,\"bias\",c.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=o.getArg(r,\"source\",null);null!==i&&(i=this._sources.at(i),i=o.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=o.getArg(r,\"name\",null);return null!==a&&(a=this._names.at(a)),{source:i,line:o.getArg(r,\"originalLine\",null),column:o.getArg(r,\"originalColumn\",null),name:a}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r,i=e;if(null!=this.sourceRoot&&(i=o.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(r=o.urlParse(this.sourceRoot))){var a=i.replace(/^file:\\/\\//,\"\");if(\"file\"==r.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!r.path||\"/\"==r.path)&&this._sources.has(\"/\"+i))return this.sourcesContent[this._sources.indexOf(\"/\"+i)]}if(t)return null;throw new Error('\"'+i+'\" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=o.getArg(e,\"source\");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:o.getArg(e,\"line\"),originalColumn:o.getArg(e,\"column\")},r=this._findMapping(n,this._originalMappings,\"originalLine\",\"originalColumn\",o.compareByOriginalPositions,o.getArg(e,\"bias\",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:o.getArg(i,\"generatedLine\",null),column:o.getArg(i,\"generatedColumn\",null),lastColumn:o.getArg(i,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,\"line\"),generatedColumn:o.getArg(e,\"column\")},n=r.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var o=this._sections[n].consumer.sourceContentFor(e,!0);if(o)return o}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(o.getArg(e,\"source\"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],u=r.consumer._sources.at(c.source);u=o.computeSourceURL(r.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=r.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var d={source:u,generatedLine:c.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(r.generatedOffset.generatedLine===c.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(d),\"number\"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,o.compareByGeneratedPositionsDeflated),s(this.__originalMappings,o.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,o,r){if(0===n.length)return-1;var i=function e(n,o,r,i,a,s){var c=Math.floor((o-n)/2)+n,u=a(r,i[c],!0);return 0===u?c:u>0?o-c>1?e(c,o,r,i,a,s):s==t.LEAST_UPPER_BOUND?o<i.length?o:-1:c:c-n>1?e(n,c,r,i,a,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,o,r||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function o(e,t,r,i){if(r<i){var a=r-1;n(e,(l=r,d=i,Math.round(l+Math.random()*(d-l))),i);for(var s=e[i],c=r;c<i;c++)t(e[c],s)<=0&&n(e,a+=1,c);n(e,a+1,c);var u=a+1;o(e,t,r,u-1),o(e,t,u+1,i)}var l,d}t.quickSort=function(e,t){o(e,t,0,e.length-1)}},function(e,t,n){var o=n(16).SourceMapGenerator,r=n(0),i=/(\\r?\\n)/,a=\"$$$isSourceNode$$$\";function s(e,t,n,o,r){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==r?null:r,this[a]=!0,null!=o&&this.add(o)}s.fromStringWithSourceMap=function(e,t,n){var o=new s,a=e.split(i),c=0,u=function(){return e()+(e()||\"\");function e(){return c<a.length?a[c++]:void 0}},l=1,d=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(l<e.generatedLine)){var t=(n=a[c]||\"\").substr(0,e.generatedColumn-d);return a[c]=n.substr(e.generatedColumn-d),d=e.generatedColumn,h(p,t),void(p=e)}h(p,u()),l++,d=0}for(;l<e.generatedLine;)o.add(u()),l++;if(d<e.generatedColumn){var n=a[c]||\"\";o.add(n.substr(0,e.generatedColumn)),a[c]=n.substr(e.generatedColumn),d=e.generatedColumn}p=e}),this),c<a.length&&(p&&h(p,u()),o.add(a.splice(c).join(\"\"))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=r.join(n,e)),o.setSourceContent(e,i))})),o;function h(e,t){if(null===e||void 0===e.source)o.add(t);else{var i=n?r.join(n,e.source):e.source;o.add(new s(e.originalLine,e.originalColumn,i,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,o=this.children.length;n<o;n++)(t=this.children[n])[a]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,o=this.children.length;if(o>0){for(t=[],n=0;n<o-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):\"string\"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push(\"\".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[r.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var o=Object.keys(this.sourceContents);for(t=0,n=o.length;t<n;t++)e(r.fromSetString(o[t]),this.sourceContents[o[t]])},s.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},n=new o(e),r=!1,i=null,a=null,s=null,c=null;return this.walk((function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&s===o.column&&c===o.name||n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,s=o.column,c=o.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(i=null,r=!1):r&&n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=s},function(e,t){var n,o,r=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||l||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.version=\"\",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return\"/\"},r.chdir=function(e){throw new Error(\"process.chdir is not supported\")},r.umask=function(){return 0}},function(e,t,n){t.__esModule=!0,t.default=function(e){o[e]||(o[e]=!0,\"undefined\"!=typeof console&&console.warn&&console.warn(e))};var o={};e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o,r=(o=n(39))&&o.__esModule?o:{default:o};var i=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n=e.prototype;return n.toString=function(){return this.css},n.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new r.default(e,t);return this.messages.push(n),n},n.warnings=function(){return this.messages.filter((function(e){return\"warning\"===e.type}))},(t=[{key:\"content\",get:function(){return this.css}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}();t.default=i,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=function(){function e(e,t){if(void 0===t&&(t={}),this.type=\"warning\",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var o in t)this[o]=t[o]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text},e}();t.default=o,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=u(n(1)),r=u(n(41)),i=u(n(6)),a=u(n(7)),s=u(n(20)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.input=e,this.root=new s.default,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,r.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case\"space\":this.spaces+=e[1];break;case\";\":this.freeSemicolon(e);break;case\"}\":this.end(e);break;case\"comment\":this.comment(e);break;case\"at-word\":this.atrule(e);break;case\"{\":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\\s*$/.test(n))t.text=\"\",t.raws.left=n,t.raws.right=\"\";else{var o=n.match(/^(\\s*)([^]*[^\\s])(\\s*)$/);t.text=o[2],t.raws.left=o[1],t.raws.right=o[3]}},t.emptyRule=function(e){var t=new c.default;this.init(t,e[2],e[3]),t.selector=\"\",t.raws.between=\"\",this.current=t},t.other=function(e){for(var t=!1,n=null,o=!1,r=null,i=[],a=[],s=e;s;){if(n=s[0],a.push(s),\"(\"===n||\"[\"===n)r||(r=s),i.push(\"(\"===n?\")\":\"]\");else if(0===i.length){if(\";\"===n){if(o)return void this.decl(a);break}if(\"{\"===n)return void this.rule(a);if(\"}\"===n){this.tokenizer.back(a.pop()),t=!0;break}\":\"===n&&(o=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(r=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(r),t&&o){for(;a.length&&(\"space\"===(s=a[a.length-1][0])||\"comment\"===s);)this.tokenizer.back(a.pop());this.decl(a)}else this.unknownWord(a)},t.rule=function(e){e.pop();var t=new c.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,\"selector\",e),this.current=t},t.decl=function(e){var t=new o.default;this.init(t);var n,r=e[e.length-1];for(\";\"===r[0]&&(this.semicolon=!0,e.pop()),r[4]?t.source.end={line:r[4],column:r[5]}:t.source.end={line:r[2],column:r[3]};\"word\"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop=\"\";e.length;){var i=e[0][0];if(\":\"===i||\"space\"===i||\"comment\"===i)break;t.prop+=e.shift()[1]}for(t.raws.between=\"\";e.length;){if(\":\"===(n=e.shift())[0]){t.raws.between+=n[1];break}\"word\"===n[0]&&/\\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}\"_\"!==t.prop[0]&&\"*\"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var a=e.length-1;a>0;a--){if(\"!important\"===(n=e[a])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,a);\" !important\"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if(\"important\"===n[1].toLowerCase()){for(var c=e.slice(0),u=\"\",l=a;l>0;l--){var d=c[l][0];if(0===u.trim().indexOf(\"!\")&&\"space\"!==d)break;u=c.pop()[1]+u}0===u.trim().indexOf(\"!\")&&(t.important=!0,t.raws.important=u,e=c)}if(\"space\"!==n[0]&&\"comment\"!==n[0])break}this.raw(t,\"value\",e),-1!==t.value.indexOf(\":\")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,o=new a.default;o.name=e[1].slice(1),\"\"===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2],e[3]);for(var r=!1,i=!1,s=[];!this.tokenizer.endOfFile();){if(\";\"===(e=this.tokenizer.nextToken())[0]){o.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if(\"{\"===e[0]){i=!0;break}if(\"}\"===e[0]){if(s.length>0){for(t=s[n=s.length-1];t&&\"space\"===t[0];)t=s[--n];t&&(o.source.end={line:t[4],column:t[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){r=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(o.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(o,\"params\",s),r&&(e=s[s.length-1],o.source.end={line:e[4],column:e[5]},this.spaces=o.raws.between,o.raws.between=\"\")):(o.raws.afterName=\"\",o.params=\"\"),i&&(o.nodes=[],this.current=o)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&\"rule\"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=\"\")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces=\"\",\"comment\"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var o,r,i,a,s=n.length,c=\"\",u=!0,l=/^([.|#])?([\\w])+/i,d=0;d<s;d+=1)\"comment\"!==(r=(o=n[d])[0])||\"rule\"!==e.type?\"comment\"===r||\"space\"===r&&d===s-1?u=!1:c+=o[1]:(a=n[d-1],i=n[d+1],\"space\"!==a[0]&&\"space\"!==i[0]&&l.test(a[1])&&l.test(i[1])?c+=o[1]:u=!1);if(!u){var p=n.reduce((function(e,t){return e+t[1]}),\"\");e.raws[t]={value:c,raw:p}}e[t]=c},t.spacesAndCommentsFromEnd=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[e.length-1][0])||\"comment\"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=\"\";e.length&&(\"space\"===(t=e[0][0])||\"comment\"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t=\"\";e.length&&\"space\"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n=\"\",o=t;o<e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,o,r=0,i=0;i<e.length;i++){if(\"(\"===(n=(t=e[i])[0])&&(r+=1),\")\"===n&&(r-=1),0===r&&\":\"===n){if(o){if(\"word\"===o[0]&&\"progid\"===o[1])continue;return i}this.doubleColon(t)}o=t}return!1},t.unclosedBracket=function(e){throw this.input.error(\"Unclosed bracket\",e[2],e[3])},t.unknownWord=function(e){throw this.input.error(\"Unknown word\",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error(\"Unexpected }\",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(\"Unclosed block\",e.line,e.column)},t.doubleColon=function(e){throw this.input.error(\"Double colon\",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error(\"At-rule without name\",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,o=0,r=t-1;r>=0&&(\"space\"===(n=e[r])[0]||2!==(o+=1));r--);throw this.input.error(\"Missed semicolon\",n[2],n[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=function(e,t){void 0===t&&(t={});var n,P,k,E,O,M,N,T,A,D,R,L,B,j,F=e.css.valueOf(),z=t.ignoreErrors,U=F.length,H=-1,V=1,W=0,G=[],Z=[];function q(t){throw e.error(\"Unclosed \"+t,V,W-H)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(!(W>=U)){var t=!!e&&e.ignoreUnclosed;switch(((n=F.charCodeAt(W))===s||n===u||n===d&&F.charCodeAt(W+1)!==s)&&(H=W,V+=1),n){case s:case c:case l:case d:case u:P=W;do{P+=1,(n=F.charCodeAt(P))===s&&(H=P,V+=1)}while(n===c||n===s||n===l||n===d||n===u);j=[\"space\",F.slice(W,P)],W=P-1;break;case p:case h:case m:case v:case w:case y:case g:var Y=String.fromCharCode(n);j=[Y,Y,V,W-H];break;case f:if(L=G.length?G.pop()[1]:\"\",B=F.charCodeAt(W+1),\"url\"===L&&B!==o&&B!==r&&B!==c&&B!==s&&B!==l&&B!==u&&B!==d){P=W;do{if(D=!1,-1===(P=F.indexOf(\")\",P+1))){if(z||t){P=W;break}q(\"bracket\")}for(R=P;F.charCodeAt(R-1)===i;)R-=1,D=!D}while(D);j=[\"brackets\",F.slice(W,P+1),V,W-H,V,P-H],W=P}else P=F.indexOf(\")\",W+1),M=F.slice(W,P+1),-1===P||I.test(M)?j=[\"(\",\"(\",V,W-H]:(j=[\"brackets\",M,V,W-H,V,P-H],W=P);break;case o:case r:k=n===o?\"'\":'\"',P=W;do{if(D=!1,-1===(P=F.indexOf(k,P+1))){if(z||t){P=W+1;break}q(\"string\")}for(R=P;F.charCodeAt(R-1)===i;)R-=1,D=!D}while(D);M=F.slice(W,P+1),E=M.split(\"\\n\"),(O=E.length-1)>0?(T=V+O,A=P-E[O].length):(T=V,A=H),j=[\"string\",F.slice(W,P+1),V,W-H,T,P-A],H=A,V=T,W=P;break;case S:C.lastIndex=W+1,C.test(F),P=0===C.lastIndex?F.length-1:C.lastIndex-2,j=[\"at-word\",F.slice(W,P+1),V,W-H,V,P-H],W=P;break;case i:for(P=W,N=!0;F.charCodeAt(P+1)===i;)P+=1,N=!N;if(n=F.charCodeAt(P+1),N&&n!==a&&n!==c&&n!==s&&n!==l&&n!==d&&n!==u&&(P+=1,x.test(F.charAt(P)))){for(;x.test(F.charAt(P+1));)P+=1;F.charCodeAt(P+1)===c&&(P+=1)}j=[\"word\",F.slice(W,P+1),V,W-H,V,P-H],W=P;break;default:n===a&&F.charCodeAt(W+1)===b?(0===(P=F.indexOf(\"*/\",W+2)+1)&&(z||t?P=F.length:q(\"comment\")),M=F.slice(W,P+1),E=M.split(\"\\n\"),(O=E.length-1)>0?(T=V+O,A=P-E[O].length):(T=V,A=H),j=[\"comment\",M,V,W-H,T,P-A],H=A,V=T,W=P):(_.lastIndex=W+1,_.test(F),P=0===_.lastIndex?F.length-1:_.lastIndex-2,j=[\"word\",F.slice(W,P+1),V,W-H,V,P-H],G.push(j),W=P)}return W++,j}},endOfFile:function(){return 0===Z.length&&W>=U},position:function(){return W}}};var o=\"'\".charCodeAt(0),r='\"'.charCodeAt(0),i=\"\\\\\".charCodeAt(0),a=\"/\".charCodeAt(0),s=\"\\n\".charCodeAt(0),c=\" \".charCodeAt(0),u=\"\\f\".charCodeAt(0),l=\"\\t\".charCodeAt(0),d=\"\\r\".charCodeAt(0),p=\"[\".charCodeAt(0),h=\"]\".charCodeAt(0),f=\"(\".charCodeAt(0),g=\")\".charCodeAt(0),m=\"{\".charCodeAt(0),v=\"}\".charCodeAt(0),y=\";\".charCodeAt(0),b=\"*\".charCodeAt(0),w=\":\".charCodeAt(0),S=\"@\".charCodeAt(0),C=/[ \\n\\t\\r\\f{}()'\"\\\\;/[\\]#]/g,_=/[ \\n\\t\\r\\f(){}:;@!'\"\\\\\\][#]|\\/(?=\\*)/g,I=/.[\\\\/(\"'\\n]/,x=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default=void 0;var o=a(n(4)),r=a(n(10)),i=a(n(43));function a(e){return e&&e.__esModule?e:{default:e}}var s=0,c=function(){function e(e,t){if(void 0===t&&(t={}),null==e||\"object\"==typeof e&&!e.toString)throw new Error(\"PostCSS received \"+e+\" instead of CSS string\");this.css=e.toString(),\"\\ufeff\"===this.css[0]||\"￾\"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\\w+:\\/\\//.test(t.from)||o.default.isAbsolute(t.from)?this.file=t.from:this.file=o.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}this.file||(s+=1,this.id=\"<input css \"+s+\">\"),this.map&&(this.map.file=this.from)}var t,n=e.prototype;return n.error=function(e,t,n,o){var i;void 0===o&&(o={});var a=this.origin(t,n);return(i=a?new r.default(e,a.line,a.column,a.source,a.file,o.plugin):new r.default(e,t,n,this.css,this.file,o.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},n.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),o=n.originalPositionFor({line:e,column:t});if(!o.source)return!1;var r={file:this.mapResolve(o.source),line:o.line,column:o.column},i=n.sourceContentFor(o.source);return i&&(r.source=i),r},n.mapResolve=function(e){return/^\\w+:\\/\\//.test(e)?e:o.default.resolve(this.map.consumer().sourceRoot||\".\",e)},(t=[{key:\"from\",get:function(){return this.file||this.id}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}();t.default=c,e.exports=t.default},function(e,t,n){(function(o){t.__esModule=!0,t.default=void 0;var r=s(n(15)),i=s(n(4)),a=s(n(44));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,\"data:\");var n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);o&&(this.text=o)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new r.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\\/\\*\\s*# sourceMappingURL=(.*)\\s*\\*\\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n=\"data:application/json,\";if(this.startWith(e,n))return decodeURIComponent(e.substr(22));if(/^data:application\\/json;charset=utf-?8;base64,/.test(e)||/^data:application\\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),o?o.from(t,\"base64\").toString():window.atob(t);var r=e.match(/data:application\\/json;([^,]+),/)[1];throw new Error(\"Unsupported source map encoding \"+r)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if(\"string\"==typeof t)return t;if(\"function\"==typeof t){var n=t(e);if(n&&a.default.existsSync&&a.default.existsSync(n))return a.default.readFileSync(n,\"utf-8\").toString().trim();throw new Error(\"Unable to load previous source map: \"+n.toString())}if(t instanceof r.default.SourceMapConsumer)return r.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof r.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(\"Unsupported previous source map format: \"+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=i.default.join(i.default.dirname(e),o)),this.root=i.default.dirname(o),!(!a.default.existsSync||!a.default.existsSync(o))&&a.default.readFileSync(o,\"utf-8\").toString().trim()}},t.isMap=function(e){return\"object\"==typeof e&&(\"string\"==typeof e.mappings||\"string\"==typeof e._mappings)},e}();t.default=c,e.exports=t.default}).call(this,n(14).Buffer)},function(e,t){},function(e,t,n){t.__esModule=!0,t.default=void 0;t.default={prefix:function(e){var t=e.match(/^(-\\w+-)/);return t?t[0]:\"\"},unprefixed:function(e){return e.replace(/^-\\w+-/,\"\")}},e.exports=t.default}])}))}(Mi);var Ni,Ti=Oe(Mi.exports);function Ai(e,t){var n;if(\"decl\"===e.type)n={disabled:!1,important:Boolean(e.important),name:e.prop,value:Di(e)};else if(\"comment\"===e.type){var o=void 0;try{var r=Ti.parse(e.text);r.first&&\"decl\"===r.first.type&&(o=r.first)}catch(e){}if(!o)return;n={disabled:!0,name:o.prop,value:Di(o)}}return n&&t&&(n.range={endColumn:e.source.end.column,endLine:e.source.end.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1},n.text=e.toString()),n}function Di(e){return e.important?\"\".concat(e.value).concat(e.raws.important||\" !important\"):e.value}function Ri(e,t){var n=e.nodes,o=void 0===n?[]:n,r=e.first,i=e.last,a=[];o.forEach((function(e){var n=Ai(e,t);n&&a.push(n)}));var s={cssProperties:a,shorthandEntries:[]};if(t){s.styleSheetId=t,s.cssText=Ti.root({nodes:o,raws:{semicolon:e.raws.semicolon}}).toString();var c=r?r.source.start.line-1:0,u=r?r.source.start.column-1:0;if(null==r?void 0:r.raws.before){var l=function(e){var t=e.match(/\\n/g),n=e.length;if(t){var o=e.lastIndexOf(\"\\n\");n=e.length-o-1}return{lines:(null==t?void 0:t.length)||0,lastLineChars:n}}(\"\".concat(e.selector).concat(e.raws.between||\"\",\"{\")),d=l.lines,p=l.lastLineChars;c=e.source.start.line+d-1,u=p}s.range={endColumn:i?i.source.end.column:0,endLine:i?i.source.end.line-1:0,startColumn:u,startLine:c}}return s}function Li(e,t){var n;try{n=Ti.parse(e)}catch(e){return void console.warn(e)}var o=[];(n.nodes||[]).forEach((function(e){var n=Ai(e,t);n&&o.push(n)}));var r={cssProperties:o,shorthandEntries:[]};return t&&(r.styleSheetId=t,r.cssText=e,r.range={endColumn:e.length,endLine:0,startColumn:0,startLine:0}),r}function Bi(e){return function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([],e,!0).sort((function(e,t){return ji(e)-ji(t)}))}function ji(e){return 1===e.matchingSelectors.length?zi(e.rule.selectorList.selectors[0].text):Yi(e.matchingSelectors.map((function(t){return e.rule.selectorList.selectors[t].text})))}!function(e){e[e.ClassA=65536]=\"ClassA\",e[e.ClassB=256]=\"ClassB\",e[e.ClassC=1]=\"ClassC\"}(Ni||(Ni={}));var Fi={};function zi(e){if(\"string\"==typeof e&&Fi[e])return Fi[e];var t,n=0;return\"string\"==typeof e&&Oi((function(e){e.nodes&&e.nodes.length&&(t=e.nodes[0])})).process(e),t.nodes&&t.nodes.length&&t.nodes.forEach((function(e){n=qi(n,function(e){switch(e.type){case\"id\":return Ni.ClassA;case\"pseudo\":switch((e.value.match(/^:+(\\w+)/)||[])[1]){case\"is\":case\"match\":case\"not\":return Yi(e.nodes);case\"where\":return 0;case\"nth-child\":case\"nth-last-child\":return qi(Ni.ClassB,e.nodes?Yi(e.nodes):0);case\"before\":case\"after\":return Ni.ClassC}return Ni.ClassB;case\"class\":case\"attribute\":return Ni.ClassB;case\"tag\":return Ni.ClassC}return 0}(e))})),\"string\"==typeof e&&(Fi[e]=n),n}var Ui=16711680,Hi=65280,Vi=255;function Wi(e){return e&Ui}function Gi(e){return e&Hi}function Zi(e){return e&Vi}function qi(e,t){var n=e,o=Wi(t);!function(e){return e&~Ui}(Wi(n)+o)?n+=o:n=function(e){return e|Ui}(n);var r=Gi(t);!function(e){return e&~Hi}(Gi(n)+r)?n+=r:n=function(e){return e|Hi}(n);var i=Zi(t);return!function(e){return e&~Vi}(Zi(n)+i)?n+=i:n=function(e){return e|Vi}(n),n}function Yi(e){return Math.max.apply(Math,e.map((function(e){return zi(e)})))}function Qi(e){return Li(e.getInlineStyle()||\"\",e.inlineStyleSheetId)}var Xi=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=hn(),this.rootZTargetToLocation=hn(),this.zInstanceToLocation=hn(),this.zTargetToLocation=hn(),this.zInstanceLocationStack=[],this.locationVisited=(cn||fn(),new cn),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],o=e[2],r=e[3],i=e[4],a={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:o};4&r&&(a.blockType=\"each\"),this.zInstanceLocationStack.push(a)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==qt.Text;){if(n.nodeType===qt.Element){var o=n.node;if(o.document)break;var r=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:r,element:o,type:\"Element\"})}else if(n.nodeType===qt.Component){r=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:r,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===qt.Element){var o=t.getClassName();\"string\"==typeof o&&(n=o.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var o=e,r=[];o&&o.nodeType!==qt.Text;){var i=void 0;if(o.nodeType===qt.Element){var a=o.node;a.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(a),element:a})}else if(o.nodeType===qt.Component){if(o===e)i={index:-1,componentIs:o.getComponentInstance().componentIs}}if(i){for(var s=o,c=void 0;s;){var u=void 0;if(s.nodeType===qt.Element?(u=this.zInstanceToLocation.get(s.node),c=this.rootZInstanceToLocation.get(s.node)):s.nodeType===qt.Component&&(u=this.zTargetToLocation.get(s.getComponentInstance()),c=this.rootZTargetToLocation.get(s.getComponentInstance())),u===n&&(i.index+=1,c))break;s=s.getPreviousElementOrTextSibling()}if(r.unshift(i),c)return{location:c,offsets:r}}o=o.getParentNode()}return{location:void 0,offsets:r}},e}();var Ki=function(e,t){return Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ki(e,t)};function Ji(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}Ki(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $i=function(){return $i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$i.apply(this,arguments)};function ea(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var ta=function(e,t,n){this.nodeId=e,this.pseudoType=t,this.root=n},na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ji(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.getPlatformRootDOM();return n.nodeType===Node.ELEMENT_NODE&&[\"before\",\"after\"].forEach((function(o){var r=\"::\".concat(o),i=getComputedStyle(n,r).getPropertyValue(\"content\");if(i&&\"none\"!==i){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var a=e.pseudoNodeType2Id[o];a||(a=e.pseudoNodeType2Id[o]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(a,new ta(a,o,e.getPlatformRootDOM())),t.push({attributes:[],backendNodeId:a,childNodeCount:0,localName:r,nodeId:a,nodeName:r,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:o})}})),t},t}(Ao),oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ji(t,e),t.prototype.getPseudoElements=function(){var e=this,t=[],n=this.node;return 1===n.nodeType&&[\"before\",\"after\"].forEach((function(o){var r=\"::\".concat(o);if(\"none\"!==getComputedStyle(n,r).getPropertyValue(\"content\")){e.pseudoNodeType2Id||(e.pseudoNodeType2Id={});var i=e.pseudoNodeType2Id[o];i||(i=e.pseudoNodeType2Id[o]=e.devtool.getNextNodeId()),e.devtool.nodeId2PseudoElement.set(i,new ta(i,o,e.node)),t.push({attributes:[],backendNodeId:i,childNodeCount:0,localName:r,nodeId:i,nodeName:r,nodeType:1,nodeValue:\"\",parentId:e.nodeId,pseudoType:o})}})),t},t.prototype.getAttributes=function(e){for(var t={},n=0,o=e.attributes;n<o.length;n++){var r=o[n];t[r.name]=r.value}return t},t.prototype.getChildNodes=function(e){return e.childNodes},t.prototype.getNodeName=function(e){return e.nodeName},t}(Lo);function ra(e,t){var n=e.matches||e.webkitMatchesSelector;if(n)try{return n.call(e,t)}catch(e){}return!1}function ia(e,t,n,o){var r=[];return e.selectors.length>1?e.selectors.forEach((function(e,n){(o?o.test(e)&&ra(t,e.replace(o,\"\")):ra(t,e))&&r.push(n)})):r.push(0),{matchingSelectors:r,rule:{origin:\"regular\",selectorList:{selectors:e.selectors.map((function(t){return{range:n?{endColumn:e.source.start.column+e.selector.length-1,endLine:e.source.start.line-1,startColumn:e.source.start.column-1,startLine:e.source.start.line-1}:void 0,text:t}})),text:e.selector},style:Ri(e,n),styleSheetId:n}}}var aa,sa=function(){function e(){this.offset={line:0,column:0},this.map={version:3,sources:[],mappings:\"\",sections:[]}}return e.prototype.concat=function(e){var t=this.clone();return t.appendSection(e.map),t.offset={line:t.offset.line+e.offset.line,column:(e.offset.line>0?0:t.offset.column)+e.offset.column},t},e.prototype.generateAnnotation=function(){var e=this.toBase64(JSON.stringify(this.map));return\"\\n/*# \".concat(\"sourceMappingURL\",\"=data:application/json;base64,\").concat(e,\" */\")},e.prototype.clone=function(){var t=new e;return t.offset=$i({},this.offset),t.map=$i($i({},this.map),{sources:ea([],this.map.sources,!0),sections:ea([],this.map.sections,!0)}),t},e.prototype.appendSourceMap=function(e,t){var n=e.match(/\\n/g);if((null==t?void 0:t.version)&&this.appendSection(t),n){this.offset.line+=n.length;var o=e.lastIndexOf(\"\\n\");this.offset.column=e.length-o-1}else this.offset.column+=e.length},e.prototype.toBase64=function(e){return\"function\"==typeof Buffer?Buffer.from(e).toString(\"base64\"):btoa(unescape(encodeURIComponent(e)))},e.prototype.appendSection=function(e){var t;if(e.sections){var n=this.offset,o=n.line,r=n.column,i=!1,a=e.sections.map((function(t,n){var a=e.sections[n-1];return i=i||Boolean(a&&t.offset.line>a.offset.line),{map:t.map,offset:{line:o+t.offset.line,column:(i?0:r)+t.offset.column}}}));(t=this.map.sections).push.apply(t,a)}else this.map.sections.push({offset:$i({},this.offset),map:e})},e}();function ca(){var e;if(\"object\"==typeof $AppxFramework&&(null===(e=$AppxFramework.$Feature)||void 0===e?void 0:e.$StyleFragmentToStringSupportReturnObject)){var t=$AppxStyleRegistry.StyleFragment.prototype.toString;$AppxStyleRegistry.StyleFragment.prototype.toString=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=this.sourceMapConsume;if(!o){o=this.sourceMapConsume=new sa;var r=[];ua(r,[this]),r.forEach((function(e,t){var n=\"\".concat(e.text).concat(t===r.length-1?\"\":\"\\n\");o.appendSourceMap(n,e.sourceMap)}))}var i=t.apply(this,e);return\"string\"==typeof i?{value:i,sourceMapConsume:o,toString:function(){return i}}:i}}}function ua(e,t){for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r){var i=r.deps;i&&ua(e,i),e.push(r)}}}var la,da=new Map,pa=new Map,ha=/::?before\\b/,fa=/::?after\\b/,ga=function(e){var t=e.hasAttribute(\"data-page-path\"),n=e.hasAttribute(\"data-exter-class\");if(t||n){var o=On(e.textContent);return\"\".concat(t,\"-\").concat(o.slice(0,8))}return\"empty\"};function ma(e){for(var t=new Map,n=function(){for(var e=[],t=0,n=Array.from(document.styleSheets);t<n.length;t++){var o=n[t];if(!o.href&&o.ownerNode){var r=ga(o.ownerNode);e.push({hash:r,node:o})}}return{usedStylesSheets:e}}().usedStylesSheets,o=0;o<n.length;o++){var r=n[o];try{var i=r.node,a=r.hash;if(!da.has(a)||e){var s=i.ownerNode.textContent,c=Ti.parse(s),u=i.ownerNode.getAttribute(\"data-stylesheet-id\");u||(u=\"1000.\".concat(da.size)),da.set(a,{ownerNode:i.ownerNode,postCSSRoot:c,styleSheetId:u,hash:a}),i.ownerNode.setAttribute(\"data-stylesheet-id\",u);var l=pa.get(u);l&&da.delete(l),pa.set(u,a)}t.set(a,da.get(a))}catch(e){console.warn(e)}}return t}function va(e){var t=pa.get(e);if(t)return da.get(t)}function ya(e){var t=va(e);if(t&&t.ownerNode){var n=t.ownerNode;try{var o=ga(n);da.set(o,{ownerNode:n,postCSSRoot:Ti.parse(n.textContent),styleSheetId:e,hash:o}),pa.set(e,o)}catch(r){o=t.hash;da.set(o,{ownerNode:n,postCSSRoot:Ti.parse(\"\"),styleSheetId:e,hash:o}),console.warn(r)}}}function ba(e){var t,n,o=e.postCSSRoot,r=e.ownerNode,i=e.styleSheetId,a=e.ownerNode instanceof HTMLStyleElement&&e.ownerNode.getAttribute(\"data-page-path\")||\"MOCK_PAGE_PATH\";return{disabled:!1,endColumn:o.last?o.last.source.end.column-1:0,endLine:o.last?o.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:r.textContent.length,origin:\"regular\",sourceURL:\"internal:///\".concat(a,\".css\"),startColumn:o.first?o.first.source.start.column-1:0,startLine:o.first?o.first.source.start.line-1:0,styleSheetId:i,title:\"\",sourceMapURL:null===(n=null===(t=e.postCSSRoot.source)||void 0===t?void 0:t.input.map)||void 0===n?void 0:n.annotation}}function wa(e){ma().forEach((function(t){var n=t.postCSSRoot,o=t.styleSheetId;(n.nodes||[]).forEach((function(t){\"rule\"===t.type&&e(t,o)}))}))}function Sa(e){la||(la=document.createElement(\"div\"));var t={};try{la.innerHTML=\"<div \".concat(e,\"></div>\");for(var n=la.firstChild.attributes,o=0,r=Array.from(n);o<r.length;o++){var i=r[o];t[i.name]=i.value}}catch(e){console.warn(e)}return t}function Ca(e,t,n){var o=va(e);if(o){var r;try{r=Ti.parse(n)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var i,a=t.startLine,s=t.startColumn,c=o.postCSSRoot,u=o.ownerNode;return(c.nodes||[]).some((function(t,n){if(\"rule\"!==t.type)return!1;if(t.source&&t.source.start&&t.source.end&&(a>t.source.start.line||a===t.source.start.line&&s>=t.source.start.column)&&(a<t.source.end.line||a===t.source.end.line&&s<=t.source.end.column)){try{var o=r.nodes.map((function(e,n){var o=t.nodes[n];return e.raws=(null==o?void 0:o.raws)||{before:\"\"},e}));if(r.nodes.length<t.nodes.length){var l=t.nodes.slice(r.nodes.length).map((function(e){return e.raws.before||\"\"})).join(\"\");t.raws.after=l+(t.raws.after||\"\")}t.nodes=o,_a(u,c.toString()),ya(e);var d=(va(e)||{}).postCSSRoot;i=Ri(d.nodes[n],e)}catch(e){console.warn(e)}return!0}})),i}}function _a(e,t){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").set.call(e,t)}function Ia(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],o=[],r=function(e){var t=e.node.getAttribute(\"style\");if(t)return Li(t)}(e);r&&(t.inlineStyle=r);var i=e.node,a=function(e,r){var a=e.selector;ra(i,a)?t.matchedCSSRules.push(ia(e,i,r)):(ha.test(a)&&ra(i,a.replace(ha,\"\"))&&n.push(ia(e,i,r,ha)),fa.test(a)&&ra(i,a.replace(fa,\"\"))&&o.push(ia(e,i,r,fa)))};aa&&(aa.postCSSRoot.nodes||[]).forEach((function(e){\"rule\"===e.type&&a(e,void 0)})),wa((function(e,t){a(e,t)}));try{t.matchedCSSRules=Bi(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Bi(n),pseudoType:\"before\"}),o.length&&t.pseudoElements.push({matches:Bi(o),pseudoType:\"after\"})}catch(e){}return t}var xa=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getComputedStyleForNode:function(e,t,n){var o,r=t.nodeId,i=e.nodeId2ZNode.get(r),a=e.nodeId2DOMNode.get(r),s=e.nodeId2PseudoElement.get(r),c=[];if(i&&i.nodeType===qt.Element){var u=i.getPlatformRootDOM();u.nodeType===Node.ELEMENT_NODE&&(o=getComputedStyle(u))}else a&&1===a.nodeType?o=getComputedStyle(a.node):s&&(o=getComputedStyle(s.root,s.pseudoType));o&&(c=Array.from(o).map((function(e){return{name:e,value:o[e]}}))),n(null,{computedStyle:c})},getInlineStylesForNode:function(e,t,n){var o,r=t.nodeId,i=e.nodeId2ZNode.get(r);i&&i.nodeType===qt.Element&&(o=Qi(i)),o?n(null,{inlineStyle:o}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){var o=t.nodeId,r=e.nodeId2ZNode.get(o),i=e.nodeId2DOMNode.get(o),a=e.nodeId2PseudoElement.get(o),s={matchedCSSRules:[]};r&&r.nodeType===qt.Element?s=function(e){var t={matchedCSSRules:[],pseudoElements:[]},n=[],o=[],r=Qi(e);if(r&&(t.inlineStyle=r),e.dom){var i=e.dom.node;wa((function(e,r){var a=e.selector;ra(i,a)?t.matchedCSSRules.push(ia(e,i,r)):(ha.test(a)&&ra(i,a.replace(ha,\"\"))&&n.push(ia(e,i,r,ha)),fa.test(a)&&ra(i,a.replace(fa,\"\"))&&o.push(ia(e,i,r,fa)))}))}try{t.matchedCSSRules=Bi(t.matchedCSSRules),n.length&&t.pseudoElements.push({matches:Bi(n),pseudoType:\"before\"}),o.length&&t.pseudoElements.push({matches:Bi(o),pseudoType:\"after\"})}catch(e){}return t}(r):i&&1===i.nodeType?s=Ia(i):a&&(s=function(e,t){var n={matchedCSSRules:[]},o=new RegExp(\"::?\".concat(t,\"\\\\b\"));wa((function(t,r){o.test(t.selector)&&ra(e,t.selector.replace(o,\"\"))&&n.matchedCSSRules.push(ia(t,e,r,o))}));try{n.matchedCSSRules=Bi(n.matchedCSSRules)}catch(e){}return n}(a.root,a.pseudoType)),n(null,s)},getStyleSheetText:function(e,t,n){var o=\"\",r=va(t.styleSheetId);r&&(o=r.ownerNode.textContent),n(null,{text:o})},setStyleTexts:function(e,t,n){var o=[];t.edits.forEach((function(t){var n=t.styleSheetId,r=\"2000.\";if(0===n.indexOf(r)){var i=Number(n.replace(r,\"\")),a=e.nodeId2ZNode.get(i);if(a&&a.nodeType===qt.Element){a.updateInlineStyle(t.text);var s=Qi(a);s&&o.push(s),e.getZRuntimeHelper().X(a.node,a.getLinkedContext(),a.getClassName()||\"\",!1,a.getInlineStyle(),!0,a.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var c=Ca(n,t.range,t.text);c&&o.push(c)}})),n(null,{styles:o})}}),Pa=Jt,ka=$t;var Ea=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){Kt(e,0,n),ma().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:ba(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(e)}(n)},set:function(o){var r=_a(n,o),i=t.styleSheetId;return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),ya(i),e.sendMessage(\"CSS.styleSheetAdded\",{header:ba(t)}),r},configurable:!0})}))},getOuterHTML:function(e,t,n){var o=t.nodeId,r=e.nodeId2ZNode.get(o);r?n(null,{outerHTML:r.getOuterAXML()}):n(-32e3,{message:\"node with nodeId(\".concat(o,\") not found\")})},markUndoableState:function(e,t,n){n(null,{})},pushNodesByBackendIdsToFrontend:Pa,requestChildNodes:ka,setAttributesAsText:function(e,t,n){var o,r=t.nodeId,i=t.text,a=t.name,s=e.nodeId2ZNode.get(r);if(s&&s.nodeType===qt.Element){var c=s,u=Sa(i),l=c.getClassName(),d=!1,p=c.getInlineStyle(),h=!1;if(\"class\"===a&&u.class!==l&&(l=u.class,d=!0,c.updateClassName(l)),\"style\"===a&&u.style!==p&&(p=u.style,h=!0,c.updateInlineStyle(p)),d||h)return e.getZRuntimeHelper().X(c.node,c.getLinkedContext(),l||\"\",d,p||\"\",h,c.getProperties(),{},3),void e.flushUpdatedQueue();var f=\"data-\";if(0===a.indexOf(f)){var g=a.replace(f,\"\"),m=c.getDataset().get(g),v=u[a];switch(typeof m){case\"number\":isNaN(Number(v))||(v=Number(v));break;case\"boolean\":\"true\"===v?v=!0:\"false\"===v&&(v=!1)}if(v!==m){var y=((o={})[g]=v,o);s.node.updateDatasetPartial(y),c.updateDataset(y)}}c.invalidate()}n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var o=t.nodeId,r=t.value,i=e.nodeId2ZNode.get(o);if(i&&i.nodeType===qt.Text)return i.dom.node.textContent=r,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:r,nodeId:o});n(-32e3,{})}});var Oa=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var o=t.nodeId,r=t.highlightConfig,i=t.selector,a=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o);if(i)n(null,{});else{if(a){if(a.nodeType===qt.Element)(c=a.getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(a.getPlatformRootDOM(),r);else if(a.nodeType===qt.Component){var c,u=a.getChildNodes();if(1===u.length&&u[0].nodeType===qt.Element)(c=u[0].getPlatformRootDOM()).nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(c,r)}}else s?1===s.nodeType&&e.getOverlayManager().highlightNode(s.node,r):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var o=t.mode,r=t.highlightConfig;\"none\"===o?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(r),n(null,{})}}),Ma=ko,Na=Object.freeze({__proto__:null,getComponentData:Ma}),Ta=Object.freeze({__proto__:null,Elements:Na}),Aa=Object.freeze({__proto__:null,CSS:xa,DOM:Ea,Overlay:Oa,Tiny:Ta});function Da(e,t){if(\"rgb\"===t){var n=e[0],o=e[1],r=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*o).toFixed(),\" \").concat((255*r).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var a=function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=Math.max(t,n,o),a=Math.min(t,n,o),s=i-a,c=i+a,u=.5*c;return[a===i?0:t===i?(1/6*(n-o)/s+1)%1:n===i?1/6*(o-t)/s+1/3:1/6*(t-n)/s+2/3,0===u||1===u?0:u<=.5?s/c:s/(2-c),u,r]}(e),s=a[0],c=a[1],u=a[2];i=a[3];return\"hsl(\".concat(Math.round(360*s),\"deg \").concat(Math.round(100*c),\" \").concat(Math.round(100*u)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function Ra(e,t,n){return e<t?e=t:e>n&&(e=n),e}function La(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function Ba(e,t){var n,o,r,i,a,s=function(){a&&(a.innerHTML=\"\")};function c(e,t){var n=Fa(\"div\",\"element-info\"),o=Za(n,\"div\",\"element-info-header\"),r=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(e);r&&Za(o,\"div\",\"element-layout-type \".concat(r));var i=Za(o,\"div\",\"element-description monospace\");Za(i,\"span\",\"material-tag-name\").textContent=e.tagName;var a=Za(i,\"span\",\"material-node-id\");a.textContent=e.idValue?\"#\"+qa(e.idValue,80):\"\",a.classList.toggle(\"hidden\",!e.idValue);var s=Za(i,\"span\",\"material-class-name\");a.textContent.length<80&&(s.textContent=qa(e.className||\"\",80-a.textContent.length)),s.classList.toggle(\"hidden\",!e.className);var c=Za(o,\"div\",\"dimensions\");Za(c,\"span\",\"material-node-width\").textContent=String(Math.round(100*e.nodeWidth)/100),Ya(c,\"×\"),Za(c,\"span\",\"material-node-height\").textContent=String(Math.round(100*e.nodeHeight)/100);var u,l=e.style||{},d=l.color;d&&\"#00000000\"!==d&&b(\"Color\",d,t);var p=l[\"font-family\"],h=l[\"font-size\"];p&&\"0px\"!==h&&y(\"Font\",\"\".concat(h,\" \").concat(p));var f=l[\"background-color\"];f&&\"#00000000\"!==f&&b(\"Background\",f,t);var g=l.margin;g&&\"0px\"!==g&&y(\"Margin\",g);var m=l.padding;function v(e,t,o){u||(u=Za(n,\"div\",\"element-info-body\"));var r=Za(u,\"div\",\"element-info-row\");return t&&r.classList.add(t),Za(r,\"div\",\"element-info-name\").textContent=e,Za(r,\"div\",\"element-info-gap\"),Za(r,\"div\",o||\"\")}function y(e,t){Ya(v(e,\"\",\"element-info-value-text\"),t)}function b(e,t,n){var o=v(e,\"\",\"element-info-value-color\"),r=Za(o,\"div\",\"color-swatch\");Za(r,\"div\",\"color-swatch-inner\").style.backgroundColor=t,Ya(o,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return Da(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(t,n))}return m&&\"0px\"!==m&&y(\"Padding\",m),n}var u=function(e){var t,n,o,r;if(s(),!e.elementInfo||0!==Object.keys(e.elementInfo).length){e.platform&&a.classList.add(\"platform-\".concat(e.platform));var i=null!==(t=e.elementInfo.nodeLeft)&&void 0!==t?t:Number.MAX_VALUE,u=null!==(n=e.elementInfo.nodeTop)&&void 0!==n?n:Number.MAX_VALUE,l=null!==(o=e.elementInfo.nodeLeft+e.elementInfo.nodeWidth)&&void 0!==o?o:-Number.MAX_VALUE,d=null!==(r=e.elementInfo.nodeTop+e.elementInfo.nodeHeight)&&void 0!==r?r:-Number.MAX_VALUE,p=Za(a,\"div\"),h=Za(p,\"div\",\"tooltip-content\"),f=c(e.elementInfo,e.colorFormat);h.appendChild(f);var g,m=La(document.documentElement.clientWidth,4),v=La(document.documentElement.clientHeight,4),y=h.offsetWidth,b=h.offsetHeight,w=10,S=m-2-w-16;if(l-i<36)g=.5*(i+l)-8;else{var C=i+w;g=C>12&&C<S?C:Ra(12,C,l-w-16)}var _=g<12||g>S,I=g-w;I=Ra(I,2,m-y-2);var x=function(){var e=0,t=0,n=getComputedStyle(a),o=n.getPropertyValue(\"--sat\");if(o){var r=Number(o.slice(0,-2));isNaN(r)||(e=r)}var i=n.getPropertyValue(\"--sab\");i&&(r=Number(i.slice(0,-2)),isNaN(r)||(t=r));return{safeAreaTop:e,safeAreaBottom:t}}(),P=x.safeAreaTop,k=x.safeAreaBottom,E=u-8-b,O=!0;E<P?(E=Math.min(v-b,d+8),O=!1):u>v&&(E=v-8-b-k);var M=I>=i&&I+y<=l&&E>=u&&E+b<=d;!(I<l&&I+y>i&&E<d&&E+b>u)||M?(h.style.top=E+\"px\",h.style.left=I+\"px\",h.style.setProperty(\"--arrow-visibility\",_||M?\"hidden\":\"visible\"),_||(h.style.setProperty(\"--arrow\",O?\"var(--arrow-down)\":\"var(--arrow-up)\"),h.style.setProperty(\"--shadow-direction\",O?\"var(--shadow-up)\":\"var(--shadow-down)\"),h.style.setProperty(\"--arrow-top\",(O?b-2:-8)+\"px\"),h.style.setProperty(\"--arrow-left\",g-I+\"px\"))):h.style.display=\"none\"}};return{c:function(){n=Fa(\"div\"),o=Fa(\"div\"),r=Fa(\"div\"),i=Fa(\"div\"),(a=Fa(\"div\")).id=\"tinybugme-tooltip-container\",this.h()},h:function(){za(i,\"background-color\",t.content.color),za(i,\"box-sizing\",\"border-box\"),za(i,\"height\",\"100%\"),za(i,\"width\",\"100%\"),za(r,\"border-color\",t.padding.color),za(r,\"border-bottom-width\",t.padding.bottom),za(r,\"border-left-width\",t.padding.left),za(r,\"border-right-width\",t.padding.right),za(r,\"border-top-width\",t.padding.top),za(r,\"border-style\",\"solid\"),za(r,\"box-sizing\",\"border-box\"),za(r,\"height\",\"100%\"),za(r,\"width\",\"100%\"),za(o,\"border-color\",t.border.color),za(o,\"border-bottom-width\",t.border.bottom),za(o,\"border-left-width\",t.border.left),za(o,\"border-right-width\",t.border.right),za(o,\"border-top-width\",t.border.top),za(o,\"border-style\",\"solid\"),za(o,\"box-sizing\",\"border-box\"),za(o,\"height\",t.rect.height),za(o,\"width\",t.rect.width),za(n,\"border-color\",t.margin.color),za(n,\"border-bottom-width\",t.margin.bottom),za(n,\"border-left-width\",t.margin.left),za(n,\"border-right-width\",t.margin.right),za(n,\"border-top-width\",t.margin.top),za(n,\"border-style\",\"solid\"),za(n,\"box-sizing\",\"border-box\"),za(n,\"left\",t.rect.left),za(n,\"position\",\"fixed\"),za(n,\"top\",t.rect.top),za(n,\"z-index\",\"999999\"),za(n,\"display\",t.show?\"block\":\"none\"),za(n,\"pointer-events\",\"none\"),u(t)},m:function(e,t){Ua(n,e,t),Ha(o,n),Ha(r,o),Ha(i,r),Ua(a,e,t)},p:function(e,t){e.content&&za(i,\"background-color\",t.content.color),e.padding&&(za(r,\"border-color\",t.padding.color),za(r,\"border-bottom-width\",t.padding.bottom),za(r,\"border-left-width\",t.padding.left),za(r,\"border-right-width\",t.padding.right),za(r,\"border-top-width\",t.padding.top)),e.border&&(za(o,\"border-color\",t.border.color),za(o,\"border-bottom-width\",t.border.bottom),za(o,\"border-left-width\",t.border.left),za(o,\"border-right-width\",t.border.right),za(o,\"border-top-width\",t.border.top)),e.rect&&(za(o,\"height\",t.rect.height),za(o,\"width\",t.rect.width)),e.margin&&(za(n,\"border-color\",t.margin.color),za(n,\"border-bottom-width\",t.margin.bottom),za(n,\"border-left-width\",t.margin.left),za(n,\"border-right-width\",t.margin.right),za(n,\"border-top-width\",t.margin.top)),e.rect&&(za(n,\"left\",t.rect.left),za(n,\"top\",t.rect.top)),e.elementInfo&&u(t),e.show&&(za(n,\"display\",t.show?\"block\":\"none\"),t.show||s())},u:function(){!function(e){e.parentNode.removeChild(e)}(n)},d:Va}}var ja=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this._state=Wa({},e.data),this._fragment=Ba(0,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n pointer-events: none;\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n}\\n#tinybugme-tooltip-container.platform-android {\\n font-family: Roboto, Ubuntu, Arial, sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ios {\\n color: rgb(48 57 66);\\n font-family: \"-apple-system-font\", \"Helvetica Neue\", \"Lucida Grande\", sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container.platform-ide {\\n font-family: \"Helvetica Neue\", \"Lucida Grande\", \"Segoe UI\", Tahoma, sans-serif;\\n --sat: var(--safe-area-inset-top);\\n --sar: var(--safe-area-inset-right);\\n --sab: var(--safe-area-inset-bottom);\\n --sal: var(--safe-area-inset-left);\\n}\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n#tinybugme-tooltip-container.platform-android .tooltip-content {\\n max-width: 100%;\\n}\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n'];t<n.length;t++){o=n[t],r=void 0,(r=document.createElement(\"style\")).innerHTML=o,document.head.appendChild(r)}var o,r}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=Va,this.fire(\"destroy\"),this.set=this.get=Va,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var o=0;o<n.length;o+=1){var r=n[o];r.__calling||(r.__calling=!0,r.call(this,t),r.__calling=!1)}},e.prototype.observe=function(e,t,n){var o=t.bind(this);return n&&!1===n.init||o(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&o(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(Wa({},e)),this.root._lock||(this.root._lock=!0,Ga(this.root._beforecreate),Ga(this.root._oncreate),Ga(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},o=!1;for(var r in e)this._differs(e[r],t[r])&&(n[r]=o=!0);o&&(this._state=Wa(Wa({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function Fa(e,t){var n=document.createElement(e);return t&&(n.className=t),n}function za(e,t,n){e.style.setProperty(t,n)}function Ua(e,t,n){t.insertBefore(e,n)}function Ha(e,t){t.appendChild(e)}function Va(){}function Wa(e,t){for(var n in t)e[n]=t[n];return e}function Ga(e){for(;e&&e.length;)e.shift()()}function Za(e,t,n){var o=Fa(t,n);return o.addEventListener(\"click\",(function(e){e.stopPropagation()}),!1),e.appendChild(o),o}function qa(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function Ya(e,t){var n=document.createTextNode(t);return e.appendChild(n),n}function Qa(e){if(e&&e.nodeType===Node.ELEMENT_NODE){var t=function(e){if(e)return e.__zInstance__||e.__zComposite__}(e);if(t)return t}}function Xa(e){for(var t=0;e&&t<5;){var n=Qa(e);if(n)return n;e=e.parentNode,t++}}var Ka={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},Ja=!1;function $a(e){Ja&&e.stopImmediatePropagation()}var es=function(){function e(){var e=this;this.inspectModeHighlightConfig=Ka,this.onWindowScroll=function(){e.currentFocusNode&&e.doHighlightNode(e.currentFocusNode,e.highlightConfig)},this.hidehighlight=this.hidehighlight.bind(this),this.handleInspectMouseOver=rn(this.handleInspectMouseOver.bind(this),150,setTimeout,clearTimeout),this.handleInspectClick=this.handleInspectClick.bind(this),window.addEventListener(\"scroll\",rn(this.onWindowScroll,16,setTimeout,clearTimeout),!0)}return e.initGlobalEventListener=function(){window.addEventListener(\"mouseup\",$a,!0),window.addEventListener(\"mousedown\",$a,!0),window.addEventListener(\"touchstart\",$a,!0),window.addEventListener(\"touchend\",$a,!0)},e.prototype.bindBridge=function(e){this.bridge=e},e.prototype.highlightNode=function(e,t){void 0===t&&(t={}),this.highlightConfig=t,this.currentFocusNode=e;var n=e.getBoundingClientRect();n.height||n.width?this.doHighlightNode(e,t):this.hidehighlight()},e.prototype.hidehighlight=function(){this.highlightConfig=void 0,this.currentFocusNode=void 0,this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e),document.addEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.addEventListener(\"mouseout\",this.hidehighlight,!0),document.addEventListener(\"click\",this.handleInspectClick,!0),Ja=!0},e.prototype.leaveInspectMode=function(){document.removeEventListener(\"mouseover\",this.handleInspectMouseOver,!0),document.removeEventListener(\"mouseout\",this.hidehighlight,!0),document.removeEventListener(\"click\",this.handleInspectClick,!0),Ja=!1,this.inspectModeHighlightConfig=Ka},e.prototype.handleInspectMouseOver=function(e){},e.prototype.handleInspectClick=function(e){},e.prototype.doHighlightNode=function(e,t){void 0===t&&(t={});var n=e.getBoundingClientRect(),o={},r=Xa(e),i=\"unknown\";try{var a=this.bridge.getClientProxy().getClientInfo();i=a.isIDE?\"ide\":a.isIOS?\"ios\":\"android\"}catch(e){}if(t.showInfo&&r){var s=r._debug;if(s){if(o.tagName=s.nodeName.toLowerCase(),s.attrClass){var c=s.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");c.length>0&&(o.className=\".\".concat(c))}o.idValue=s.attributes.get(\"id\")}o.nodeHeight=La(n.height,4),o.nodeWidth=La(n.width,4),o.nodeLeft=La(n.left,4),o.nodeTop=La(n.top,4);var u=window.getComputedStyle(e);o.style=u}var l=function(e){var t=window.getComputedStyle(e),n=function(e){return Number(e.slice(0,-2))<0?\"0px\":e};return{border:{bottom:t.borderBottomWidth,left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth},boxSizing:t.boxSizing,margin:{bottom:n(t.marginBottom),left:n(t.marginLeft),right:n(t.marginRight),top:n(t.marginTop)},padding:{bottom:t.paddingBottom,left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop}}}(e),d=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},p={border:$i($i({},l.border),{color:d(t.borderColor)}),content:{color:d(t.contentColor)},elementInfo:o,margin:$i($i({},l.margin),{color:d(t.marginColor)}),padding:$i($i({},l.padding),{color:d(t.paddingColor)}),platform:i,rect:{height:\"\".concat(n.height,\"px\"),left:\"\".concat(n.left-Number(l.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(n.top-Number(l.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(n.width,\"px\")},show:!0};this.overlayComponent?this.overlayComponent.set(p):this.overlayComponent=new ja({data:p,target:document.body})},e}();var ts,ns=function(e){function t(){var n=e.call(this)||this;return t.initGlobalEventListener(),n}return Ji(t,e),t.prototype.highlightNode=function(t,n){if(t.nodeType===Node.ELEMENT_NODE){var o=Xa(t);o&&this.bridge.getZNodeDebugInfo(o),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},t.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(n.nodeType===Node.ELEMENT_NODE){this.highlightNode(n,this.inspectModeHighlightConfig);var o=Xa(n);if(o){var r=this.bridge.getZNodeDebugInfo(o);if(!r.activated){for(var i=[],a=r.getParentNode();a&&!a.activated;)i.unshift(a),a=a.getParentNode();a&&i.unshift(a),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}r.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:r.nodeId})}}},t.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(t.nodeType===Node.ELEMENT_NODE){var n=Xa(t);if(n){var o=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o.nodeId})}}},t}(es),os=function(e){function t(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,o){var r=e.split(\".\"),i=n.getMessageHandler(r);i&&i(n,t,o)})),n}return Ji(t,e),t.prototype.getClientProxy=function(){return this.option.clientProxy},t.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new ns,this.overlayManager.bindBridge(this)),this.overlayManager},t.prototype.enableShadowRootElements=function(){!function(){if(!aa){for(var e=document.head.querySelectorAll(\"link\"),t=\"\",n=0,o=Array.from(e);n<o.length;n++){var r=o[n];if(/af-appx\\.min\\.css$/.test(r.href)){t=r.href;break}}if(t){var i=new XMLHttpRequest;i.open(\"GET\",t),i.onload=function(){if(i.responseText)try{var e=Ti.parse(i.responseText);aa={ownerNode:null,postCSSRoot:e,styleSheetId:void 0,hash:\"\"}}catch(e){console.warn(e)}else console.warn(\"failed to request \".concat(t))},i.send()}else console.warn(\"failed to find af-appx.min.css link\")}}(),e.prototype.enableShadowRootElements.call(this)},t.prototype.getMessageHandler=function(e){for(var t=Aa,n=0,o=e;n<o.length;n++){if(!(t=t[o[n]]))break}return t},t}(Fo);function rs(e,t,n){var o=new os({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,o,r){return new oa(e,t,n,o,r)},createZNodeElement:function(e,t,n,o,r,i){return new na(e,t,n,o,r,i)}}});return wo(o),function(e,t){var n=t.h,o=window.$ZElementLocationResolver=new Xi(e,t);t.L||(t.L=function(){}),Co(t,\"L\",o.overwriteLocation),So(n,\"e\",o.bindZElement),Co(n,\"c\",o.bindZComponent)}(o,t.getZRuntime()),ca(),o}function is(e,t){for(var n=e.child;n&&(n.tag===ts.HostComponent||n.tag===ts.HostPortal||n.tag===ts.HostRoot);)n=n.child;if(n){var o=function(e){var t=[],n=e;for(;n;)t.push(n),n=n.sibling;return t}(n);o.forEach((function(e){us(e)?t(e):is(e,t)}))}}function as(e){var t=ss(e);return/AppX\\(\\S+\\)/.test(t)||\"PageComponent\"===t}function ss(e){var t,n=e.type,o=\"\";return\"string\"==typeof n?o=n:n&&\"string\"==typeof n.displayName?(o=n.displayName,cs(e)&&(o=(null===(t=e.memoizedProps)||void 0===t?void 0:t.__tag)||o)):n&&\"string\"==typeof n.name&&(o=n.name),o||\"Anonymous\"}function cs(e){var t=e.tag,n=e.type;return(t===ts.ClassComponent||t===ts.FunctionComponent)&&!(!n||!n.isCustomComponent)}function us(e){return e.tag===ts.HostText||(!!as(e)||!!cs(e))}function ls(e){var t=e.tag;return t===ts.HostComponent||t===ts.HostText?e:e.child?ls(e.child):void 0}function ds(e){var t=ls(e);if(t)return t.stateNode}function ps(e){for(var t=e.return;t;){if(us(t))return t;t=t.return}}function hs(e){var t;return Boolean(e.__debug_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_serialized))}function fs(e){var t=o({},e);return delete t.$isCustomComponent,delete t.__tag,delete t.className,delete t.children,t.__owner&&t.__owner.pluginId&&delete t.__owner,t}function gs(e){var t=[];if(e.memoizedProps){e.memoizedProps.className&&t.push.apply(t,_o(\"className\",e.memoizedProps.className));var n=fs(e.memoizedProps);Object.keys(n).forEach((function(e){t.push.apply(t,_o(e,n[e]))}))}return t}function ms(e,t){t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var n=e.getFiberId(e.getPrimaryFiber(t)),o=0;return t.return&&(o=e.getFiberId(e.getPrimaryFiber(t.return))),{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t.stateNode.textContent,parentId:o}}function vs(e,t,n){var o,r,i;void 0===n&&(n=0),t.__debug_serialized=!0,t.alternate&&(t.alternate.__debug_serialized=!0);var a=e.getFiberId(e.getPrimaryFiber(t)),s=ss(t);s=s.replace(/^AppX\\((\\S+)\\)$/,\"$1\");var c,u,l,d=0;if(is(t,(function(t){if(u||(u=t),n>0){c||(c=[]);var o=ys(e,t,n-1);o&&c.push(o)}d+=1})),!c&&1===d&&u&&u.tag===ts.HostText){c||(c=[]);var p=ys(e,u,n-1);p&&c.push(p)}if(!d&&t.memoizedProps&&\"string\"==typeof t.memoizedProps.children){c||(c=[]);for(var h=t.child;h&&h.child;)h=h.child;if((null===(i=null===(r=null===(o=null==h?void 0:h.stateNode)||void 0===o?void 0:o.childNodes)||void 0===r?void 0:r[0])||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE){var f=h.stateNode.childNodes[0],g={alternate:null,child:null,effectTag:0,key:null,memoizedProps:l=t.memoizedProps.children,memoizedState:null,pendingProps:l,return:null,sibling:null,stateNode:f,tag:ts.HostText,type:null};e.recordMount(g),c.push(ms(e,g))}else console.warn(\"bugme failed to create a fiber-like text node, the parent is\",t)}c&&c.length&&(t.__debug_children_serialized=!0,t.alternate&&(t.alternate.__debug_children_serialized=!0));var m=0;return t.return&&(m=e.getFiberId(e.getPrimaryFiber(t.return))),{attributes:gs(t),backendNodeId:a,childNodeCount:d,children:c,localName:s,nodeId:a,nodeName:s,nodeType:1,nodeValue:\"\",parentId:m,shadowRoots:void 0}}function ys(e,t,n){var o;switch(void 0===n&&(n=0),t.tag){case ts.FunctionComponent:case ts.ClassComponent:case ts.HostComponent:o=vs(e,t,n);break;case ts.HostText:o=ms(e,t);break;default:console.debug(\"unhandled node type\",t.tag,t)}return o}!function(e){e[e.FunctionComponent=0]=\"FunctionComponent\",e[e.ClassComponent=1]=\"ClassComponent\",e[e.IndeterminateComponent=2]=\"IndeterminateComponent\",e[e.HostRoot=3]=\"HostRoot\",e[e.HostPortal=4]=\"HostPortal\",e[e.HostComponent=5]=\"HostComponent\",e[e.HostText=6]=\"HostText\",e[e.Fragment=7]=\"Fragment\",e[e.Mode=8]=\"Mode\",e[e.ContextConsumer=9]=\"ContextConsumer\",e[e.ContextProvider=10]=\"ContextProvider\",e[e.ForwardRef=11]=\"ForwardRef\",e[e.Profiler=12]=\"Profiler\",e[e.SuspenseComponent=13]=\"SuspenseComponent\",e[e.MemoComponent=14]=\"MemoComponent\",e[e.SimpleMemoComponent=15]=\"SimpleMemoComponent\",e[e.LazyComponent=16]=\"LazyComponent\",e[e.IncompleteClassComponent=17]=\"IncompleteClassComponent\"}(ts||(ts={}));var bs=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getDocument:function(e,t,n){e.resetFiberSerializedState();var o=e.getPageComponent();if(o){var r=ys(e,o,1);r.localName=r.nodeName=\"page\",r.attributes=[],n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[r],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}else{var i=\"page-not-found\";n(void 0,{root:{backendNodeId:1,childNodeCount:1,children:[{attributes:[],backendNodeId:2,childNodeCount:0,localName:i,nodeId:2,nodeName:i,nodeType:1,nodeValue:\"\",parentId:1}],localName:\"\",nodeId:1,nodeName:\"#document\",nodeType:9,nodeValue:\"\"}})}ma().forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:ba(t)})}))},markUndoableState:function(e,t,n){n(void 0,{})},pushNodesByBackendIdsToFrontend:function(e,t,n){n(void 0,{nodeIds:t.backendNodeIds})},requestChildNodes:function(e,t,n){var o=t.nodeId,r=e.getFiberNodeById(o);if(r){var i=ys(e,r,1);i&&i.children&&e.sendMessage(\"DOM.setChildNodes\",{nodes:i.children,parentId:o})}else console.warn(\"requestChildNodes node not exists\",o);n(void 0,{})},setAttributesAsText:function(e,t,n){var o=t.nodeId,r=t.text,i=t.name,a=e.getFiberNodeById(o);if(a&&a.memoizedProps){var s=Sa(r);if(\"class\"===i){if((p=ls(a))&&p.stateNode&&p.stateNode.classList){var c=p.stateNode,u=p.memoizedProps.className||\"\";c.className=u;var l=a.memoizedProps.className||\"\";if(l)try{l.split(/\\s/).filter(Boolean).forEach((function(e){c.classList.remove(e)}))}catch(e){console.warn(\"setAttributesAsText remove class error, className=\".concat(l))}var d=s.class||\"\";d&&d.split(/\\s/).filter(Boolean).forEach((function(e){c.classList.add(e)})),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:o,value:d})}}else if(\"style\"===i){var p;if((p=ls(a))&&p.stateNode&&p.stateNode.nodeType===Node.ELEMENT_NODE)p.stateNode.setAttribute(i,s.style),e.sendMessage(\"DOM.attributeModified\",{name:i,nodeId:o,value:s.style})}}n(void 0,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var o=t.nodeId,r=t.value,i=e.getFiberNodeById(o);if(i&&i.tag===ts.HostText)return i.stateNode.textContent=r,n(void 0,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:r,nodeId:o});n(-32e3,{})}});function ws(e,t){if(e&&as(e)){var n=ds(e);if(n&&n.nodeType===Node.ELEMENT_NODE)return Qi({getInlineStyle:function(){return n.getAttribute(\"style\")||\"\"},inlineStyleSheetId:\"2000.\".concat(t)})}}var Ss=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},getComputedStyleForNode:function(e,t,n){var o=t.nodeId,r=e.getFiberNodeById(o),i=[];if(r&&as(r)){var a=ds(r);if(a&&a.nodeType===Node.ELEMENT_NODE){var s=getComputedStyle(a);i=Array.from(s).map((function(e){return{name:e,value:s[e]}}))}}n(void 0,{computedStyle:i})},getInlineStylesForNode:function(e,t,n){var o,r=t.nodeId,i=e.getFiberNodeById(r);if(i&&as(i)){var a=ds(i);if(a&&a.nodeType===Node.ELEMENT_NODE){o={cssProperties:[],cssText:\"\",range:{endColumn:0,endLine:0,startColumn:0,startLine:0},shorthandEntries:[],styleSheetId:\"2000.\".concat(r)};var s=ws(i,r);s&&(o=s)}}o?n(void 0,{inlineStyle:o}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){var o=t.nodeId,r=e.getFiberNodeById(o),i={matchedCSSRules:[]};if(r&&as(r)){var a=ds(r);if(a&&a.nodeType===Node.ELEMENT_NODE){wa((function(e,t){ra(a,e.selector)&&i.matchedCSSRules.push(ia(e,a,t))}));var s=ws(r,o);s&&(i.inlineStyle=s)}}if(i.matchedCSSRules.length)try{i.matchedCSSRules=Bi(i.matchedCSSRules)}catch(e){}n(void 0,i)},getStyleSheetText:function(e,t,n){var o=\"\",r=va(t.styleSheetId);r&&(o=r.ownerNode.textContent||\"\"),n(void 0,{text:o})},setStyleTexts:function(e,t,n){var o=[],r=\"2000.\";t.edits.forEach((function(t){var n=t.styleSheetId;if(0===n.indexOf(r)){var i=Number(n.replace(r,\"\")),a=e.getFiberNodeById(i);if(a){var s=ds(a);if(s&&s.nodeType===Node.ELEMENT_NODE){s.setAttribute(\"style\",t.text);var c=ws(a,i);c&&o.push(c)}}}else{t.range.startLine+=1,t.range.startColumn+=1;var u=Ca(n,t.range,t.text);u&&o.push(u)}})),n(void 0,{styles:o})}});var Cs=Object.freeze({__proto__:null,enable:function(e,t,n){n(void 0,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(void 0,{})},highlightNode:function(e,t,n){var o=t.nodeId,r=t.highlightConfig;if(t.selector)n(void 0,{});else{var i=e.getFiberNodeById(o);if(i){var a=ds(i);a&&a.nodeType===Node.ELEMENT_NODE&&e.getOverlayManager().highlightNode(a,r)}n(void 0,{})}},setInspectMode:function(e,t,n){var o=t.mode,r=t.highlightConfig;\"none\"===o?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(r),n(void 0,{})}});var _s=Object.freeze({__proto__:null,getComponentData:function(e,t,n){var o=t.nodeId,r=e.getFiberNodeById(o);r&&cs(r)?(e.activatedCustomComponentId=o,n(void 0,{data:Io(r.memoizedState&&r.memoizedState.data||{}).data,props:Io(fs(r.memoizedProps||{})).data})):(e.activatedCustomComponentId=void 0,n(void 0,{}))}}),Is=Object.freeze({__proto__:null,Elements:_s}),xs=Object.freeze({__proto__:null,CSS:Ss,DOM:bs,Overlay:Cs,Tiny:Is});function Ps(e,t,n,o,r){var i,a,s=null,c=0;r||(r={});var u=function(){c=!1===r.leading?0:Date.now(),s=null,a=e.apply(null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var p=Date.now();c||!1!==r.leading||(c=p);var h=t-(p-c);return i=l,h<=0||h>t?(o(s),s=null,c=p,a=e.apply(null,i),i=null):s||!1===r.trailing||(s=n(u,h)),a}}var ks=1,Es=4;function Os(e,t){var n=t.current,o=n.alternate;if(o){var r=null!=o.memoizedState&&null!=o.memoizedState.element,i=null!=n.memoizedState&&null!=n.memoizedState.element;!r&&i?As(e,n):r&&i&&Ds(e,n,o)}else As(e,n);!function(e){Ns.forEach((function(t){var n=t.nodeId,o=t.parentNodeId;e.sendMessage(\"DOM.childNodeRemoved\",{nodeId:n,parentNodeId:o})})),Ns.clear(),Ts.forEach((function(t){var n=ps(t);if(n&&hs(n)){var o=e.getFiberId(n),r=0;if(is(n,(function(){r+=1})),function(e){var t;return Boolean(e.__debug_children_serialized||(null===(t=e.alternate)||void 0===t?void 0:t.__debug_children_serialized))}(n)){var i=function(e){var t=ps(e);if(!t)return null;var n=null,o=null;return is(t,(function(t){t===e&&(o=n),n=t})),o}(t);e.sendMessage(\"DOM.childNodeInserted\",{node:ys(e,t),parentNodeId:o,previousNodeId:i?e.getFiberId(i):0})}else e.sendMessage(\"DOM.childNodeCountUpdated\",{childNodeCount:r,nodeId:o})}})),Ts.clear()}(e)}var Ms,Ns=new Set,Ts=new Set;function As(e,t){us(t)&&e.recordMount(t);for(var n=t.child;n;)As(e,n),n=n.sibling}function Ds(e,t,n){if(us(t)){var o=n?e.getFiberId(n):0,r=e.getFiberId(t);if(n&&o&&!r){if(e.recordMount(t),hs(n)&&((t.effectTag&Es)===Es||(t.effectTag&ks)===ks)){var i=e.activatedCustomComponentId===o;t.memoizedProps&&n.memoizedProps&&t.memoizedProps!==n.memoizedProps&&\"object\"==typeof t.memoizedProps&&Object.keys(t.memoizedProps).forEach((function(r){if(\"children\"!==r&&t.memoizedProps[r]!==n.memoizedProps[r]){var a=_o(r,t.memoizedProps[r]);2===a.length&&e.sendMessage(\"DOM.attributeModified\",{name:a[0],nodeId:o,value:a[1]}),i&&(Ms||(Ms=Ps(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),Ms(\"Tiny.Elements.componentDataChanged\",{nodeId:o,props:Io(fs(t.memoizedProps||{})).data,targetId:-1}))}})),i&&t.memoizedState&&n.memoizedState&&t.memoizedState.data!==n.memoizedState.data&&(Ms||(Ms=Ps(e.sendMessage.bind(e),500,setTimeout,clearTimeout)),Ms(\"Tiny.Elements.componentDataChanged\",{nodeId:o,data:Io(t.memoizedState.data||{}).data,targetId:-1}))}}else o||r||(As(e,t),Ts.add(t))}for(var a=t.child;a;)Ds(e,a,a.alternate),a=a.sibling}function Rs(e){var t;window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&console.warn(\"bugme ReactDevtoolHook has been injected\");var n={},o={supportsFiber:!0,inject:function(e){if(t)throw new Error(\"FiberRender has been already injected\");return t=e,o.uniqueFiberRenderer=e,1},onCommitFiberRoot:function(t,n){var r=n.current,i=e.getFiberRoot()===n,a=null==r.memoizedState||null==r.memoizedState.element;i||a?i&&a&&e.setFiberRoot():e.setFiberRoot(n),o.wasCommited||(o.wasCommited=!0,o.emit(\"first-commit\"));try{Os(e,n)}catch(e){console.warn(e)}},onCommitFiberUnmount:function(t,n){try{!function(e,t){if(us(t)){var n=Array.from(Ns).some((function(e){if(function(e,t){for(var n=t.return;n;){if(n===e)return!0;n=n.return}return!1}(e.node,t))return!0}));n||Ns.add({node:t,nodeId:e.getFiberId(t),parentNodeId:e.getFiberId(ps(t))})}}(e,n)}catch(e){console.warn(e)}},wasCommited:!1,on:function(e,t){n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var o=n[e];if(o){var r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length||delete n[e]}},emit:function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var r=n[e];r&&r.forEach((function(e){e.apply(void 0,t)}))}};window.__REACT_DEVTOOLS_GLOBAL_HOOK__=o}var Ls=function(e){function n(){var t,n=this;return(n=e.call(this)||this).fiberRenderer=null===(t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)||void 0===t?void 0:t.uniqueFiberRenderer,n}return t(n,e),n.prototype.bindBridge=function(e){this.bridge=e},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(this.fiberRenderer&&n.nodeType===Node.ELEMENT_NODE){var o=this.fiberRenderer.findFiberByHostInstance(n);if(o){var r=ps(o);if(r){if(!this.bridge.getFiberId(r)&&this.bridge.getFiberId(r.alternate)&&(r=r.alternate),this.highlightNode(n,this.inspectModeHighlightConfig),!hs(r)){for(var i=[],a=ps(r);a&&!hs(a);)i.unshift(a),a=ps(a);a&&i.unshift(a),i.forEach((function(e){var n=ys(t.bridge,e,1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}var s=this.bridge.getFiberId(this.bridge.getPrimaryFiber(r));s&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:s})}}}},n.prototype.handleInspectClick=function(e){e.stopPropagation(),this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(this.fiberRenderer&&t.nodeType===Node.ELEMENT_NODE){var n=this.fiberRenderer.findFiberByHostInstance(t);if(n){var o=ps(n);if(o){var r=this.bridge.getFiberId(this.bridge.getPrimaryFiber(o));r&&this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:r})}}}},n}(es),Bs=2;var js,Fs,zs,Us,Hs,Vs=function(){function e(e){var t=this;this.connection=e,this.fiberToIdMap=new Map,this.idToFiberMap=new Map,this.connection.onMessage((function(e,n,o){for(var r=e.split(\".\"),i=xs,a=0,s=r;a<s.length;a++){if(!(i=i[s[a]]))break}i?i(t,n,o):console.warn(\"unhandled protocol\",e)})),Rs(this)}return e.prototype.getClientProxy=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZRuntimeHelper=function(){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getZNodeComponentDebugInfo=function(e){throw new Error(\"Method not implemented.\")},e.prototype.getDOMNodeDebugInfo=function(e,t,n){throw new Error(\"Method not implemented.\")},e.prototype.getDocumentNode=function(){throw new Error(\"Method not implemented.\")},e.prototype.flushUpdatedQueue=function(){throw new Error(\"Method not implemented.\")},e.prototype.resetZNodeActivatedState=function(){throw new Error(\"Method not implemented.\")},e.prototype.enableShadowRootElements=function(){throw new Error(\"Method not implemented.\")},e.prototype.getNextNodeId=function(){throw new Error(\"Method not implemented.\")},e.prototype.setFiberRoot=function(e){this.uniqueFiberRoot=e},e.prototype.getFiberRoot=function(){return this.uniqueFiberRoot},e.prototype.sendMessage=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}))},e.prototype.sendMessageWithPriority=function(e,t){this.connection.send(JSON.stringify({method:e,params:t}),!0)},e.prototype.getPageComponent=function(){if(!this.uniqueFiberRoot)return null;for(var e=this.uniqueFiberRoot.current;e&&(!e.type||\"PageComponent\"!==e.type.displayName);)e=e.child;return e},e.prototype.recordMount=function(e){if(!this.getFiberId(e)){var t=e.alternate;if(t&&this.fiberToIdMap.has(t)){var n=this.fiberToIdMap.get(t);return this.fiberToIdMap.delete(t),this.fiberToIdMap.set(e,n),void this.idToFiberMap.set(n,e)}var o=Bs++;this.fiberToIdMap.set(e,o),this.idToFiberMap.set(o,e)}},e.prototype.recordUnMount=function(e){},e.prototype.getFiberId=function(e){return this.fiberToIdMap.get(e)||0},e.prototype.getPrimaryFiber=function(e){if(this.fiberToIdMap.has(e))return e;var t=e.alternate;return t&&this.fiberToIdMap.has(t)?t:e},e.prototype.getFiberNodeById=function(e){return this.idToFiberMap.get(e)},e.prototype.resetFiberSerializedState=function(){this.idToFiberMap.forEach((function(e){e.__debug_serialized=!1,e.__debug_children_serialized&&(e.__debug_children_serialized=!1),e.alternate&&(e.alternate.__debug_serialized=!1,e.alternate.__debug_children_serialized&&(e.alternate.__debug_children_serialized=!1))}))},e.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new Ls,this.overlayManager.bindBridge(this)),this.overlayManager},e}(),Ws=ke(),Gs=\"2.2.9\";function Zs(){Ws.silentLog(\"init render web -\",Gs),zs=new Xt,Hs=new Vs(zs),function(){i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,bt()];case 1:return t.sent(),It(window.AlipayJSBridge.startupParams||{})?[2]:(Fs=String(window.APVIEWID),js=wt(),(e=St(js,Fs))?(zs.setUrl(e),Lt((function(){Us.tryResume()})),(Us=new Qt(zs,js,Fs)).setup(),Us.resetAxmlVisitedState=function(){Hs&&Hs.resetFiberSerializedState()},[2]):[2])}}))}))}();try{Ls.initGlobalEventListener()}catch(e){Ws.error(\"init render web 1 global event listener error:\",e)}}var qs=function(){function e(e,t){this.devtool=e,this.zruntime=t,this.rootZInstanceToLocation=Se(),this.rootZTargetToLocation=Se(),this.zInstanceToLocation=Se(),this.zTargetToLocation=Se(),this.zInstanceLocationStack=[],this.locationVisited=(ge||Ce(),new ge),this.bindZElement=this.bindZElement.bind(this),this.bindZComponent=this.bindZComponent.bind(this),this.overwriteLocation=this.overwriteLocation.bind(this)}return e.prototype.bindZElement=function(e){var t=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];t&&(this.locationVisited.has(t)||(this.rootZInstanceToLocation.set(e,t),this.locationVisited.add(t)),this.zInstanceToLocation.set(e,t))},e.prototype.bindZComponent=function(e){var t=e[0],n=this.zInstanceLocationStack[this.zInstanceLocationStack.length-1];n&&(this.locationVisited.has(n)||(this.rootZTargetToLocation.set(t,n),this.locationVisited.add(n)),this.zTargetToLocation.set(t,n))},e.prototype.overwriteLocation=function(e){if(e.length>=3){var t=e[0],n=e[1],o=e[2],r=e[3],i=e[4],a={path:\"string\"==typeof i?i:this.getComponentInstancePathInfo(t),line:n,column:o};4&r&&(a.blockType=\"each\"),this.zInstanceLocationStack.push(a)}else e.length<=1&&this.zInstanceLocationStack.pop()},e.prototype.getZElementCompositedPathInfo=function(e){for(var t=[],n=this.devtool.getZNodeDebugInfo(e);n&&n.nodeType!==qt.Text;){if(n.nodeType===qt.Element){var o=n.node;if(o.document)break;var r=this.getZNodeOffsetInfo(n,n.node.ownerTargetId,this.zInstanceToLocation.get(n.node));t.push({pathInfo:r,element:o,type:\"Element\"})}else if(n.nodeType===qt.Component){r=this.getZNodeOffsetInfo(n,n.getComponentInstance().option.parentTarget.targetId,this.zTargetToLocation.get(n.getComponentInstance()));t.push({pathInfo:r,componentIs:n.getComponentIs(),type:\"Component\"})}n=n.getParentNode()}return t},e.prototype.getComponentInstancePathInfo=function(e){var t,n;return 2===(t=e.type<2?e.option.parentTarget:e).type?n=t.componentIs:3===t.type&&(n=t.option.runtime.proxy.pagePath),n},e.prototype.getZElementDescription=function(e){var t=this.devtool.getZNodeDebugInfo(e),n=\"\";if(t.nodeType===qt.Element){var o=t.getClassName();\"string\"==typeof o&&(n=o.split(/\\s+/).map((function(e){return\".\".concat(e)})).join(\"\"))}return\"\".concat(t.nodeName.toLowerCase()).concat(n)},e.prototype.getZNodeOffsetInfo=function(e,t,n){for(var o=e,r=[];o&&o.nodeType!==qt.Text;){var i=void 0;if(o.nodeType===qt.Element){var a=o.node;a.ownerTargetId===t&&(i={index:-1,description:this.getZElementDescription(a),element:a})}else if(o.nodeType===qt.Component){if(o===e)i={index:-1,componentIs:o.getComponentInstance().componentIs}}if(i){for(var s=o,c=void 0;s;){var u=void 0;if(s.nodeType===qt.Element?(u=this.zInstanceToLocation.get(s.node),c=this.rootZInstanceToLocation.get(s.node)):s.nodeType===qt.Component&&(u=this.zTargetToLocation.get(s.getComponentInstance()),c=this.rootZTargetToLocation.get(s.getComponentInstance())),u===n&&(i.index+=1,c))break;s=s.getPreviousElementOrTextSibling()}if(r.unshift(i),c)return{location:c,offsets:r}}o=o.getParentNode()}return{location:void 0,offsets:r}},e}(),Ys={};var Qs=function(){var e;e=function(){return this}();try{e=e||new Function(\"return this\")()}catch(t){\"object\"==typeof window&&(e=window),e=e||(\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof global?global:self)}return e||Ys}();var Xs=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getChildNodes=function(){var e=this;return\"text\"===this.nodeName?[{nodeType:qt.Text,serialize:function(){var t=e.node.root.firstChild.textContent,n=e.devtool.getNextNodeId();return{backendNodeId:n,childNodeCount:0,localName:\"\",nodeId:n,nodeName:\"#text\",nodeType:3,nodeValue:t,parentId:e.nodeId}}}]:bo(this.node.firstChild,(function(){return!1}),this.devtool)},n.prototype.getPseudoElements=function(){return this.getPlatformRootDOM().nodeType,[]},n}(Ao),Ks=Function.prototype.apply.call.bind(Function.prototype.apply),Js=Function.prototype.bind,$s=Function;function ec(e,t,n){return Ks(e,t,n)}function tc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ks(Js,e,t)}var nc=JSON.stringify,oc=JSON.parse,rc=Date.now.bind(Date);var ic=function(){function e(){this.statusMap={}}return e.prototype.loadResource=function(e,t){var n=this.getKeyFromResource(e),o=this.getLoadStatus4ResourceByKey(n);return 3===o.status?t(void 0,o.res):1!==o.status?2===o.status?this.shouldRetry4Resource(e)?(this.setLoadStatus4ResourceByKey(n,{status:1,callbacks:[t]}),this.loadResourceWithStatus(e)):t(o.error):0===o.status?(this.setLoadStatus4ResourceByKey(n,{status:1,callbacks:[t]}),this.loadResourceWithStatus(e)):void 0:void(o.callbacks=c(c([],o.callbacks,!0),[t],!1))},e.prototype.loadResourceWithStatus=function(e){var t=this;this.loadResourceInternal(e,(function(n,o){var r=t.getKeyFromResource(e),i=t.getLoadStatus4ResourceByKey(r);if(1===i.status){n?t.setLoadStatus4ResourceByKey(r,{status:2,error:n}):t.setLoadStatus4ResourceByKey(r,{status:3,res:o});var a=i.callbacks;if(Array.isArray(a))for(var s=0,c=a;s<c.length;s++){(0,c[s])(n,o)}}}))},e.prototype.getLoadStatus4ResourceByKey=function(e){var t=this.statusMap;return t[e]||(t[e]={status:0}),t[e]},e.prototype.setLoadStatus4ResourceByKey=function(e,t){this.statusMap[e]=t},e}();function ac(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function sc(e,t,n,o,r,i){return ac((a=ac(ac(t,e),ac(o,i)))<<(s=r)|a>>>32-s,n);var a,s}function cc(e,t,n,o,r,i,a){return sc(t&n|~t&o,e,t,r,i,a)}function uc(e,t,n,o,r,i,a){return sc(t&o|n&~o,e,t,r,i,a)}function lc(e,t,n,o,r,i,a){return sc(t^n^o,e,t,r,i,a)}function dc(e,t,n,o,r,i,a){return sc(n^(t|~o),e,t,r,i,a)}function pc(e,t){var n,o,r,i,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,u=-1732584194,l=271733878;for(n=0;n<e.length;n+=16)o=s,r=c,i=u,a=l,s=cc(s,c,u,l,e[n],7,-680876936),l=cc(l,s,c,u,e[n+1],12,-389564586),u=cc(u,l,s,c,e[n+2],17,606105819),c=cc(c,u,l,s,e[n+3],22,-1044525330),s=cc(s,c,u,l,e[n+4],7,-176418897),l=cc(l,s,c,u,e[n+5],12,1200080426),u=cc(u,l,s,c,e[n+6],17,-1473231341),c=cc(c,u,l,s,e[n+7],22,-45705983),s=cc(s,c,u,l,e[n+8],7,1770035416),l=cc(l,s,c,u,e[n+9],12,-1958414417),u=cc(u,l,s,c,e[n+10],17,-42063),c=cc(c,u,l,s,e[n+11],22,-1990404162),s=cc(s,c,u,l,e[n+12],7,1804603682),l=cc(l,s,c,u,e[n+13],12,-40341101),u=cc(u,l,s,c,e[n+14],17,-1502002290),s=uc(s,c=cc(c,u,l,s,e[n+15],22,1236535329),u,l,e[n+1],5,-165796510),l=uc(l,s,c,u,e[n+6],9,-1069501632),u=uc(u,l,s,c,e[n+11],14,643717713),c=uc(c,u,l,s,e[n],20,-373897302),s=uc(s,c,u,l,e[n+5],5,-701558691),l=uc(l,s,c,u,e[n+10],9,38016083),u=uc(u,l,s,c,e[n+15],14,-660478335),c=uc(c,u,l,s,e[n+4],20,-405537848),s=uc(s,c,u,l,e[n+9],5,568446438),l=uc(l,s,c,u,e[n+14],9,-1019803690),u=uc(u,l,s,c,e[n+3],14,-187363961),c=uc(c,u,l,s,e[n+8],20,1163531501),s=uc(s,c,u,l,e[n+13],5,-1444681467),l=uc(l,s,c,u,e[n+2],9,-51403784),u=uc(u,l,s,c,e[n+7],14,1735328473),s=lc(s,c=uc(c,u,l,s,e[n+12],20,-1926607734),u,l,e[n+5],4,-378558),l=lc(l,s,c,u,e[n+8],11,-2022574463),u=lc(u,l,s,c,e[n+11],16,1839030562),c=lc(c,u,l,s,e[n+14],23,-35309556),s=lc(s,c,u,l,e[n+1],4,-1530992060),l=lc(l,s,c,u,e[n+4],11,1272893353),u=lc(u,l,s,c,e[n+7],16,-155497632),c=lc(c,u,l,s,e[n+10],23,-1094730640),s=lc(s,c,u,l,e[n+13],4,681279174),l=lc(l,s,c,u,e[n],11,-358537222),u=lc(u,l,s,c,e[n+3],16,-722521979),c=lc(c,u,l,s,e[n+6],23,76029189),s=lc(s,c,u,l,e[n+9],4,-640364487),l=lc(l,s,c,u,e[n+12],11,-421815835),u=lc(u,l,s,c,e[n+15],16,530742520),s=dc(s,c=lc(c,u,l,s,e[n+2],23,-995338651),u,l,e[n],6,-198630844),l=dc(l,s,c,u,e[n+7],10,1126891415),u=dc(u,l,s,c,e[n+14],15,-1416354905),c=dc(c,u,l,s,e[n+5],21,-57434055),s=dc(s,c,u,l,e[n+12],6,1700485571),l=dc(l,s,c,u,e[n+3],10,-1894986606),u=dc(u,l,s,c,e[n+10],15,-1051523),c=dc(c,u,l,s,e[n+1],21,-2054922799),s=dc(s,c,u,l,e[n+8],6,1873313359),l=dc(l,s,c,u,e[n+15],10,-30611744),u=dc(u,l,s,c,e[n+6],15,-1560198380),c=dc(c,u,l,s,e[n+13],21,1309151649),s=dc(s,c,u,l,e[n+4],6,-145523070),l=dc(l,s,c,u,e[n+11],10,-1120210379),u=dc(u,l,s,c,e[n+2],15,718787259),c=dc(c,u,l,s,e[n+9],21,-343485551),s=ac(s,o),c=ac(c,r),u=ac(u,i),l=ac(l,a);return[s,c,u,l]}function hc(e){var t,n=\"\",o=32*e.length;for(t=0;t<o;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function fc(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var o=8*e.length;for(t=0;t<o;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function gc(e){var t,n,o=\"0123456789abcdef\",r=\"\";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=o.charAt(t>>>4&15)+o.charAt(15&t);return r}function mc(e){return unescape(encodeURIComponent(e))}function vc(e){return function(e){return hc(pc(fc(e),8*e.length))}(mc(e))}function yc(e,t){return function(e,t){var n,o,r=fc(e),i=[],a=[];for(i[15]=a[15]=void 0,r.length>16&&(r=pc(r,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^r[n],a[n]=1549556828^r[n];return o=pc(i.concat(fc(t)),512+8*t.length),hc(pc(a.concat(o),640))}(mc(e),mc(t))}function bc(e,t,n){return t?n?yc(t,e):gc(yc(t,e)):n?vc(e):gc(vc(e))}function wc(e,t){return{type:10,value:\"\".concat(e.value,\"@\").concat(t.value)}}\"undefined\"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE;var Sc={\"-webkit-animation-iteration-count\":!0,\"-webkit-box-flex\":!0,\"-webkit-box-ordinal-group\":!0,\"-webkit-column-count\":!0,\"-webkit-columns\":!0,\"-webkit-flex\":!0,\"-webkit-flex-grow\":!0,\"-webkit-flex-shrink\":!0,\"-webkit-line-clamp\":!0,\"-webkit-opacity\":!0,\"-webkit-order\":!0},Cc={\"animation-iteration-count\":!0,\"border-image-outset\":!0,\"border-image-slice\":!0,\"border-image-width\":!0,\"box-flex\":!0,\"box-flex-group\":!0,\"box-ordinal-group\":!0,\"column-count\":!0,columns:!0,flex:!0,\"flex-grow\":!0,\"flex-negative\":!0,\"flex-order\":!0,\"flex-positive\":!0,\"flex-shrink\":!0,\"font-weight\":!0,\"grid-area\":!0,\"grid-column\":!0,\"grid-column-end\":!0,\"grid-column-span\":!0,\"grid-column-start\":!0,\"grid-row\":!0,\"grid-row-end\":!0,\"grid-row-span\":!0,\"grid-row-start\":!0,\"line-clamp\":!0,\"line-height\":!0,opacity:!0,order:!0,orphans:!0,\"tab-size\":!0,widows:!0,\"z-index\":!0,zoom:!0},_c=/^-?(\\d+|\\d*\\.\\d+)([E|e][+|-]?\\d+)?$/;\"undefined\"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,\"undefined\"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Ic=function(e){console.log(e,rc())};function xc(){return[]}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.getLoadPluginOption=function(e){var t=function(e){if(e){var t=e.value;if(t){var n=t.indexOf(\"@\");if(n>0){var o=t.substr(0,n),r=t.substr(n+1,t.length);if(o&&r)return{extensionId:{type:4,value:o},version:{type:11,value:r}}}}}}(e);if(!t)return{plugin:e.value};var n=this.getCompileInfo(),o=n&&n.debugPlugins;if(!o)return{plugin:e.value};var r=o&&t.extensionId.value&&o[t.extensionId.value];return r?(Ic(\"[APPX] debugOptions.plugins[\".concat(t.extensionId.value,\"] hit => \").concat(r.scene,\":\").concat(r.version)),{plugin:wc(t.extensionId,{type:11,value:r.version}).value,pluginScene:r.scene}):(Ic(\"[APPX] debugOptions.plugins[\".concat(t.extensionId.value,\"] miss\")),{plugin:e.value})},n.prototype.loadResourceInternal=function(e,t){var n=this.getLoadPluginOption(e.dynamicPluginExpression);this.callInternalAPI(\"loadPlugin\",n,(function(e){if(void 0===e&&(e={}),e.error)t(e,void 0);else if(e.url){var n=e.package_nick,o=e.url,r=e.version,i=e.componentContext;t(void 0,{package_nick:n,url:o,version:r,componentContext:i})}else t({error:1,errorMessage:\"loadPlugin failed, did not get url\",res:e},void 0)}))},n.prototype.getKeyFromResource=function(e){return e.extensionId.value},n.prototype.shouldRetry4Resource=function(){return!0}}(ic),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._notations=[],t}t(n,e),n.prototype.addNotation=function(){this._notations.push(this.currentPath)},Object.defineProperty(n.prototype,\"notations\",{get:function(){return this._notations},enumerable:!1,configurable:!0})}(function(){function e(e,t){this.rules=[],this._currentPath=[],this.currentValue=e,this._rootValue=e,this.rules=t}return Object.defineProperty(e.prototype,\"currentPath\",{get:function(){return this._currentPath.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"rootValue\",{get:function(){return this._rootValue},enumerable:!1,configurable:!0}),e.prototype.pushPathItem=function(e){this._currentPath.push(e)},e.prototype.popPathItem=function(){this._currentPath.pop()},e.prototype.setCurrentPath=function(e){this._currentPath=e},e}());var Pc={ad:[{c:\"extInfo\",f:function(){return{}}},{c:\"immediately\",v:!1},{c:\"spaceCode\",v:\"\",p:\"unitId\"}],\"ai-camera\":[{c:\"applyMicPermissionWhenInit\"},{c:\"cameraVersion\",p:\"engineVersion\"},{c:\"devicePosition\",v:\"back\"},{c:\"extraInfo\"},{c:\"flash\",v:\"auto\"},{c:\"orientation\"},{c:\"outputDimension\"},{c:\"recordVideoOnly\"},{c:\"type\",v:\"ai-camera\",p:!1}],ar:[{c:\"camera-enable\",p:\"cameraEnable\"},{c:\"camera-position\",p:\"cameraPosition\"},{c:\"gesture-draggable\",p:\"gestureDraggable\"},{c:\"gesture-rotatable\",p:\"gestureRotatable\"},{c:\"gesture-scalable\",p:\"gestureScalable\"},{c:\"src\"},{c:\"track-attitude\",p:\"trackAttitude\"},{c:\"track-face\",p:\"trackFace\"},{c:\"track-face-beauty\",v:0,p:\"trackFaceBeauty\"},{c:\"track-face-max\",p:\"trackFaceMax\"},{c:\"track-face-smile\",v:0,p:\"trackFaceSmile\"},{c:\"track-mode\",p:\"trackMode\"},{c:\"type\",v:\"ar\",p:!1}],camera:[{c:\"applyMicPermissionWhenInit\"},{c:\"cameraVersion\",p:\"engineVersion\"},{c:\"devicePosition\",v:\"back\"},{c:\"extraInfo\"},{c:\"flash\",v:\"auto\"},{c:\"frameFormat\"},{c:\"frameSize\"},{c:\"mode\",v:\"normal\"},{c:\"needScanCodeDetail\",p:\"scanCodeFullResult\"},{c:\"outputDimension\"},{c:\"recordVideoOnly\"},{c:\"scanArea\"},{c:\"type\",v:\"camera\",p:!1}],canvas:[{c:\"backgroundColor\",p:!1},{c:\"timeStamp\",p:!1},{c:\"width\"},{c:\"height\"},{c:\"offscreen\"},{c:\"disableScroll\"},{c:\"type\"},{c:\"useVideoRecorder\"}],\"live-player\":[{c:\"autoplay\",v:!1},{c:\"backgroundMute\",v:!1},{c:\"extra-info\",p:\"extraInfo\"},{c:\"floatingMode\",v:\"none\"},{c:\"maxCache\",v:3},{c:\"minCache\",v:1},{c:\"mode\",v:\"live\"},{c:\"muted\",v:!1},{c:\"objectFit\",v:\"contain\"},{c:\"orientation\",v:\"vertical\"},{c:\"src\"}],\"live-pusher\":[{c:\"aspect\",v:\"9:16\"},{c:\"autoFocus\",v:!0},{c:\"autopush\",v:!1},{c:\"backgroundMute\",v:!1},{c:\"beauty\",v:0},{c:\"devicePosition\"},{c:\"enableAgc\",v:!0},{c:\"enableAns\",v:!0},{c:\"enableCamera\",v:!0},{c:\"maxBitrate\",v:1e3},{c:\"minBitrate\",v:200},{c:\"mode\",v:\"RTC\"},{c:\"muted\",v:!1},{c:\"orientation\",v:!1},{c:\"record\",v:!1},{c:\"url\",v:\"\"},{c:\"waitingImage\"},{c:\"waitingImageHash\"},{c:\"whiteness\",v:0},{c:\"zoom\",v:!1}],lottieview:[{c:\"assetsPath\"},{c:\"autoReverse\",v:!1},{c:\"autoplay\",v:!1},{c:\"config\"},{c:\"djangoId\"},{c:\"downgrade\"},{c:\"downgradeLevel\",v:\"\"},{c:\"md5\"},{c:\"optimize\"},{c:\"path\"},{c:\"placeholder\"},{c:\"renderType\",v:\"\"},{c:\"repeatCount\",v:0},{c:\"scene\",v:\"\"},{c:\"speed\",v:1},{c:\"variableLottie\",v:!1},{c:\"variableMap\",v:null}],map:[{c:\"bind-events\",p:!1},{c:\"circles\",f:xc},{c:\"controls\",f:xc},{c:\"customMapStyle\"},{c:\"enable-building\",p:\"enableBuilding\"},{c:\"enable-overlooking\",p:\"enableOverlooking\"},{c:\"enable-poi\",p:\"enablePoi\"},{c:\"enable-rotate\",p:\"enableRotate\"},{c:\"enable-satellite\",p:\"enableSatellite\"},{c:\"enable-scroll\",p:\"enableScroll\"},{c:\"enable-traffic\",p:\"enableTraffic\"},{c:\"enable-zoom\",p:\"enableZoom\"},{c:\"ground-overlays\",f:xc,p:\"groundOverlays\"},{c:\"include-padding\",p:\"includePadding\"},{c:\"include-points\",f:xc,p:\"includePoints\"},{c:\"include-points-animation\",p:\"includePointsAnimation\"},{c:\"latitude\",v:39.9},{c:\"limitRegion\"},{c:\"longitude\",v:116.39},{c:\"map-type\",p:\"mapType\"},{c:\"markers\",f:xc},{c:\"max-scale\",p:\"maxScale\"},{c:\"min-scale\",p:\"minScale\"},{c:\"panels\"},{c:\"polygon\",f:xc},{c:\"polyline\",f:xc},{c:\"rotate\",v:0},{c:\"scale\"},{c:\"setting\"},{c:\"show-compass\",p:\"showCompass\"},{c:\"show-indoormap\",p:\"showIndoormap\",v:!1},{c:\"show-location\",p:\"showLocation\",v:!1},{c:\"show-scale\",p:\"showScale\"},{c:\"skew\",v:0},{c:\"tile-overlay\",p:\"tileOverlay\"},{c:\"type\",p:!1,v:\"map\"}],\"rtc-room\":[{c:\"aliyunInfo\"},{c:\"autoplay\"},{c:\"beautyLevel\",v:0},{c:\"channelId\"},{c:\"disableInteractive\"},{c:\"enableCamera\",v:!0},{c:\"enableProximityMonitor\",v:!1},{c:\"enableVideoOnlyMode\",v:!1},{c:\"extraInfo\"},{c:\"fps\",v:15},{c:\"maxBitrate\"},{c:\"minBitrate\"},{c:\"mute\"},{c:\"privateMapKey\"},{c:\"record\"},{c:\"resolution\",v:1},{c:\"roomId\"},{c:\"signature\"},{c:\"token\"},{c:\"type\",p:!1,v:\"rtc-room\"},{c:\"userId\"}],video:[{c:\"autoplay\",v:!1},{c:\"controls\",v:!0},{c:\"direction\"},{c:\"duration\",v:0},{c:\"enable-progress-gesture\",p:\"enableProgressGesture\",v:!0},{c:\"enableHistory\"},{c:\"extra-info\",p:\"extraInfo\"},{c:\"floatingMode\",v:\"none\"},{c:\"initial-time\",p:\"initialTime\",v:0},{c:\"loop\",v:!1},{c:\"mobilenet-hint-type\",p:\"mobilenetHintType\",v:1},{c:\"muted\",v:!1},{c:\"object-fit\",p:\"objectFit\",v:\"contain\"},{c:\"page-gesture\",p:\"pageGesture\",v:!1},{c:\"show-center-play-btn\",p:\"showCenterPlayBtn\",v:!0},{c:\"show-fullscreen-btn\",p:\"showFullscreenBtn\",v:!0},{c:\"show-play-btn\",p:\"showPlayBtn\",v:!0},{c:\"showMuteBtn\",v:!0},{c:\"showThinProgressBar\",v:!1},{c:\"src\",v:\"\"}],\"web-view\":[{c:\"appId\"},{c:\"enableWK\",v:!0},{c:\"mini\",v:!1},{c:\"overlay\",p:!1},{c:\"src\"}],textfield:[]};var kc=Object.create(null);function Ec(e){return kc[e]}function Oc(e){return void 0===e||!!e}function Mc(e){return void 0!==e&&!!e}function Nc(e,t){return void 0===e?t:e}function Tc(e,t){var n=parseInt(e,10);return n!=n?t:n}function Ac(e,t){var n=parseFloat(e);return n!=n?t:n}function Dc(e){return e&&\"object\"==typeof e&&\"_v\"in e?e._v:e}function Rc(e){if(e.type&&e.data)return[e.data.element]}function Lc(e){return e}var Bc=function(){function e(e,t,n){void 0===n&&(n=\"default\"),this.type=e,this.createType=n,this.data=function(e,t,n,o){for(var r=0,i=Pc[e];r<i.length;r++){var a=i[r],s=a.c,c=a.v,u=a.f;if(!1===a.p)void 0===c&&!u||void 0!==t[s]||(t[s]=u?u():c);else{var l=a.p||s;if(!o||o[l]){var d=n?n[l]:void 0;t[s]=void 0===d?u?u():c:d}}}return t}(e,{}),this.platform=t.platform,this.root=this.platform.root;var o=t.ownerPageId,r=t.ownerTargetId;o&&(this.ownerPageId=o),r&&(this.ownerTargetId=r)}return e.prototype.setId=function(e,t){this.bridgeId=t||e,this.platform.setId(e)},e.prototype.setAttr=function(e,t){null==t?this.platform.removeAttribute(e):this.platform.setAttribute(e,t)},e.prototype.setClassName=function(e){this.platform.setClassName(e)},e.prototype.setStyleInline=function(e){this.platform.setStyleInline(e)},e.prototype.initClassStyleProp=function(e,t,n,o){var r=this;this.platform.initCompositeNode(this.bridgeId,this.type),this.attachCompositeNode(),o&&this.processAttrs(o,o),this.setClassName(t),n&&this.setStyleInline(n),this.platform.whenCompositeNeed2Create((function(){r.compositeNeed2Create()}),this.createType)},e.prototype.updateClassStyleProp=function(e,t,n,o,r,i,a){a&&this.compositeUpdateProps(i,a),n&&this.setClassName(t),r&&this.setStyleInline(o)},e.prototype.destroy=function(e){this.platform.destroy(e)},e.prototype.pageUpdateCallback=function(){this.platform.pageUpdateCallback()},e.prototype.drawComposite=function(e,t,n,o){this.platform.drawComposite(e,t,n,o)},e.prototype.updateComposite=function(e,t){this.platform.updateComposite(e||this.data,t)},e.prototype.removeComposite=function(){this.platform.removeComposite()},e.prototype.compositeUpdateProps=function(e,t){this.processAttrs(e,t),this.updateComposite()},e.prototype.setParamElem=function(e,t){return this.platform.setParamElem(e,t)},e.prototype.attachCompositeNode=function(e){this.platform.attachCompositeNode(e)},e.prototype.detachCompositeNode=function(){this.platform.detachCompositeNode()},e.prototype.setDOMStyle=function(e,t){this.platform.setDOMStyle(e,t)},e.prototype.getCompositeRoot=function(){return this.platform.getCompositeRoot()},e.prototype.getCompositeStyles=function(e){this.platform.getCompositeStyles(e)},e.prototype.getCompositeRect=function(e){this.platform.getCompositeRect(e)},e.prototype.getCompositeState=function(){return this.platform.getCompositeState()},e.prototype.createElement=function(e){return this.platform.createElement(e)},e.prototype.addTask=function(e,t,n,o,r,i){this.platform.addTask(e,t,n,o,r,i)},e.prototype.removeTask=function(e,t,n){this.platform.removeTask(e,t,n)},e.prototype.compositeNeed2Create=function(){this.drawComposite(this.data)},e.prototype.invokeBridgeCall=function(e,t,n){this.platform.invokeBridgeCall(e,t,n)},e.prototype.sendMessage=function(e,t){this.platform.sendMessage(e,t)},e.prototype.getStartupParams=function(){return this.platform.getStartupParams()},e.prototype.compositeNormalizeSrc=function(e){return this.platform.compositeNormalizeSrc(e)},e.prototype.fillDynamicAttributes=function(e,t,n,o,r){return this.platform.fillDynamicAttributes(e,t,n,o,r)},e}(),jc=function(e){function n(t,n,o){var r=e.call(this,t,n,\"PageReadied\")||this;return r.config=o,r}return t(n,e),n.prototype.attachCompositeNode=function(t){var n;(null===(n=this.config)||void 0===n?void 0:n.attatchCompositeNodeWhenDrawComposite)||e.prototype.attachCompositeNode.call(this,t)},n.prototype.compositeNeed2Create=function(){var t=this;this.getCompositeRect((function(n){var o;t.drawEntity(n),(null===(o=t.config)||void 0===o?void 0:o.attatchCompositeNodeWhenDrawComposite)&&e.prototype.attachCompositeNode.call(t)}))},n.prototype.drawEntity=function(e){this.drawComposite(void 0,{data:this.data,frame:e.size})},n}(Bc),Fc=function(e){function n(t,n,o,r){var i=e.call(this,t,n,\"PageReadied\")||this;return i.instance=o,i.config=r,i}return t(n,e),n.prototype.attachCompositeNode=function(t){var n;(null===(n=this.config)||void 0===n?void 0:n.requestCameraAuth)||e.prototype.attachCompositeNode.call(this,t)},n.prototype.compositeNeed2Create=function(){var t=this;this.getCompositeRect((function(n){var o;t.drawComposite(t.data,void 0,n),(null===(o=t.config)||void 0===o?void 0:o.requestCameraAuth)&&t.requestCameraAuthorization((function(n){var o;n.success?e.prototype.attachCompositeNode.call(t):null===(o=t.instance)||void 0===o||o.invokeError({errorCode:n.error,errorMessage:n.errorMessage})}))}))},n.prototype.requestCameraAuthorization=function(e){var t=this;return this.requestCameraAuthPromise||(this.requestCameraAuthPromise=new Promise((function(e){t.invokeBridgeCall(\"requestAuthorize\",{scope:\"scope.camera\"},e)}))),this.requestCameraAuthPromise.then(e)},n}(Bc);!function(e){function n(t,n,o){var r=e.call(this,\"video\",t)||this;r.config=n,r.feature=o,r.removed=!1,r.customPoster=!1;var i=r.getCompositeRoot(),a=r.wrapDOM=r.createElement(\"div\"),s=r.posterDOM=r.createElement(\"div\"),c=r.playDOM=r.createElement(\"div\");return a.className=\"a-video-wrap\",s.className=\"a-video-poster\",c.className=\"a-video-play\",i.appendChild(a),i.appendChild(s),i.appendChild(c),r.onChangeState=r.onChangeState.bind(r),r.onStartOrError=r.onStartOrError.bind(r),r.onTapPlay=r.onTapPlay.bind(r),i.addEventListener(\"touchend\",r.onTapPlay),r}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-video \"+t)},n.prototype.setId=function(t,n){e.prototype.setId.call(this,t,n),this.wrapDOM.setAttribute(\"id\",t+\"-wrap\")},n.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.addTask(\"nbcomponent.video.onChangeState\",this.bridgeId,this.onChangeState,Rc,Lc),this.addTask(\"nbcomponent.video.onError\",this.bridgeId,this.onStartOrError,Rc,Lc)},n.prototype.play=function(){0===this.getCompositeState()?this.playVideo():this.sendMessage(\"play\")},n.prototype.stop=function(){this.sendMessage(\"stop\"),this.stopVideo()},n.prototype.destroy=function(){this.removeTask(\"nbcomponent.video.onChangeState\",this.bridgeId),this.removeTask(\"nbcomponent.video.onError\",this.bridgeId),this.stopVideo(),this.onChangeState=null},n.prototype.togglePlayBtn=function(e){this.playDOM.setAttribute(\"style\",e?\"display: none\":\"\")},n.prototype.togglePosterDOM=function(e){this.setDOMStyle(this.posterDOM,{display:e?\"none\":\"block\"})},n.prototype.toggleHintType=function(e){e<=1?this.getCompositeRoot().insertBefore(this.wrapDOM,this.posterDOM):this.getCompositeRoot().insertBefore(this.posterDOM,this.wrapDOM)},n.prototype.togglePosterSize=function(e){this.setDOMStyle(this.posterDOM,{backgroundSize:e===zc?\"\":e})},n.prototype.togglePlayDOM=function(e,t){var n=this.playDOM;e||void 0===e&&!1===t?n.parentNode&&n.parentNode.removeChild(n):n.parentNode||this.getCompositeRoot().appendChild(n)},n.prototype.processAttrs=function(e,t){var n=this,o=this.data;!function(e,t,n,o,r,i){if(o.autoplay){var a=Mc(n.autoplay);t.autoplay=a,e.togglePlayBtn(a)}if(o.src&&(t.src=Nc(n.src,\"\")),o.hidePoster&&e.togglePosterDOM(!!n.hidePoster),o.initialTime&&(t[\"initial-time\"]=Tc(n.initialTime,0)),o.duration&&(t.duration=Tc(n.duration,0)),o.floatingMode&&(t.floatingMode=Nc(n.floatingMode,\"none\"),Ec(\"floatingMode\")||(null==i?void 0:i.floatingMode)||\"miniprogram\"!==t.floatingMode||(t.floatingMode=\"microapp\")),(o.controls||r&&void 0!==n.controls)&&(t.controls=Oc(n.controls)),o.loop&&(t.loop=n.loop),o.muted&&(t.muted=n.muted),(o.showFullscreenBtn||r&&void 0!==n.showFullscreenBtn)&&(t[\"show-fullscreen-btn\"]=Oc(n.showFullscreenBtn)),(o.showPlayBtn||r&&void 0!==n.showPlayBtn)&&(t[\"show-play-btn\"]=Oc(n.showPlayBtn)),(o.showCenterPlayBtn||r&&void 0!==n.showCenterPlayBtn)&&(t[\"show-center-play-btn\"]=Oc(n.showCenterPlayBtn)),o.objectFit&&(t[\"object-fit\"]=Nc(n.objectFit,\"contain\")),o.pageGesture&&(t[\"page-gesture\"]=n.pageGesture),(o.enableProgressGesture||r&&void 0!==n.enableProgressGesture)&&(t[\"enable-progress-gesture\"]=Oc(n.enableProgressGesture)),o.extraInfo&&(t[\"extra-info\"]=n.extraInfo),o.direction&&(t.direction=n.direction),o.mobilenetHintType||r&&void 0!==n.mobilenetHintType){var s=t[\"mobilenet-hint-type\"]=Tc(n.mobilenetHintType,1);e.toggleHintType(s)}if((o.showMuteBtn||r&&void 0!==n.showMuteBtn)&&(t.showMuteBtn=Oc(n.showMuteBtn)),o.showThinProgressBar&&(t.showThinProgressBar=n.showThinProgressBar),o.enableHistory&&(t.enableHistory=n.enableHistory),o.posterSize){var c=Nc(n.posterSize,\"contain\");e.togglePosterSize(c)}if(o.hidePlay||o.showCenterPlayBtn||r&&void 0!==n.showCenterPlayBtn||r&&void 0!==n.hidePlay){var u=n.hidePlay,l=Oc(n.showCenterPlayBtn);e.togglePlayDOM(u,l)}}(this,o,e,t,e===t,this.feature);var r=t.src,i=this.customPoster,a=!1;if(t.poster){var s=e.poster;void 0===s?(i=this.customPoster=!1,a=!0):(i=this.customPoster=!0,this.setPosterUrl(s))}var c=t.hidePoster;if((r||a||c)&&!i&&!e.hidePoster&&o.src){r&&this.setPosterUrl();var u=o.src;this.invokeBridgeCall(\"getPosterFromVideoUrl\",{src:u},(function(e){e&&e.apFilePath&&!n.customPoster&&n.setPosterUrl(e.apFilePath)}))}this.fillDynamicAttributes(\"video\",t,e,o)},n.prototype.compositeNeed2Create=function(){this.data.autoplay&&this.playVideo()},n.prototype.attachCompositeNode=function(){this.config.lazyAttachCompositeNode||e.prototype.attachCompositeNode.call(this,this.wrapDOM)},n.prototype.compositeUpdateProps=function(e,t){this.processAttrs(e,t);var n=this.data,o=this.getCompositeState(),r=function(e,t){return{autoPlay:t.autoplay&&e.autoplay,src:t.src&&void 0!==e.src,muted:t.muted&&void 0!==e.muted,videoProp:Object.keys(t).some(Uc)}}(n,t),i=r.autoPlay,a=r.src,s=r.muted,c=r.videoProp;i&&0===o?this.playVideo():o>2&&(a?(this.stop(),n.autoplay&&this.playVideo()):c?this.updateComposite():s&&this.sendMessage(\"mute\",{ison:n.muted}))},n.prototype.playVideo=function(){var t={autoplay:!0};this.config.lazyAttachCompositeNode?(e.prototype.attachCompositeNode.call(this,this.wrapDOM),6===this.getCompositeState()&&this.drawComposite(o(o({},this.data),t))):this.drawComposite(o(o({},this.data),t))},n.prototype.stopVideo=function(){this.config.lazyAttachCompositeNode&&this.detachCompositeNode(),this.config.need2RemoveCompositeWhenStopVideo&&this.removeComposite(),e.prototype.destroy.call(this,!0),this.removed=!0},n.prototype.setPosterUrl=function(e){this.setDOMStyle(this.posterDOM,{backgroundImage:e?\"url(\"+this.compositeNormalizeSrc(e)+\")\":\"\"})},n.prototype.onChangeState=function(e){switch(e.data.state){case 0:return this.removed?this.removed=!1:this.stopVideo(),this.setDOMStyle(this.playDOM,{display:\"block\"}),void this.setDOMStyle(this.posterDOM,{display:\"block\"});case 5:return this.removed=!1,void this.onStartOrError()}},n.prototype.onStartOrError=function(){this.setDOMStyle(this.posterDOM,{display:\"none\"}),this.setDOMStyle(this.playDOM,{display:\"none\"})},n.prototype.onTapPlay=function(e){e.target===this.playDOM&&this.play()}}(Bc);var zc=\"contain\";function Uc(e){return\"initialTime\"===e||\"duration\"===e||\"controls\"===e||\"loop\"===e||\"showFullscreenBtn\"===e||\"showPlayBtn\"===e||\"showCenterPlayBtn\"===e||\"objectFit\"===e||\"pageGesture\"===e||\"enableProgressGesture\"===e||\"extraInfo\"===e||\"enableHistory\"===e||\"floatingMode\"===e}var Hc,Vc=1,Wc=!1,Gc=!1;!function(e){function n(t,n){var o=e.call(this,\"map\",t)||this;if(o.feature=n,o.optimizeSwitch=!1,o.eventsChanged=!1,!1===Wc){Wc=!0;var r=(o.getStartupParams()||{}).appXMapOptimize;Hc=!r,Gc=r}return Hc||(o.optimizeSwitch=Gc),o}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-map \"+t)},n.prototype.setHandlerNames=function(e){this.feature.bindEvent&&this.data[\"bind-events\"]!==e&&(this.data[\"bind-events\"]=e,this.getCompositeState()>2&&(this.eventsChanged=!0,this.batchedData={\"bind-events\":e}))},n.prototype.pageUpdateCallback=function(){e.prototype.pageUpdateCallback.call(this),this.eventsChanged&&this.updateComposite()},n.prototype.processAttrs=function(e,t){Hc&&t.optimize&&(this.optimizeSwitch=e.optimize),t.defaultScale&&(this.defaultScale=Ac(e.defaultScale,16));var n=this.eventsChanged?this.batchedData:this.batchedData=Object.create(null),o=this.data,r=this.optimizeSwitch;!function(e,t,n,o){if(n.setting){var r=t.setting;e.setting=r,o&&(o.setting=r)}if(n.customMapStyle){var i=t.customMapStyle;e.customMapStyle=i,o&&(o.customMapStyle=i)}if(n.tileOverlay){var a=t.tileOverlay;e[\"tile-overlay\"]=a,o&&(o[\"tile-overlay\"]=a)}if(n.includePointsAnimation){var s=Dc(t.includePointsAnimation);e[\"include-points-animation\"]=s,o&&(o[\"include-points-animation\"]=s)}if(n.enableSatellite){var c=t.enableSatellite;e[\"enable-satellite\"]=c,o&&(o[\"enable-satellite\"]=c)}if(n.panels){var u=t.panels;e.panels=u,o&&(o.panels=u)}if(n.showIndoormap){var l=Mc(t.showIndoormap);e[\"show-indoormap\"]=l,o&&(o[\"show-indoormap\"]=l)}if(n.mapType){var d=t.mapType;e[\"map-type\"]=d,o&&(o[\"map-type\"]=d)}if(n.minScale){var p=t.minScale;e[\"min-scale\"]=p,o&&(o[\"min-scale\"]=p)}if(n.maxScale){var h=t.maxScale;e[\"max-scale\"]=h,o&&(o[\"max-scale\"]=h)}if(n.longitude){var f=Ac(Dc(t.longitude),116.39);e.longitude=f,o&&(o.longitude=f)}if(n.latitude){var g=Ac(Dc(t.latitude),39.9);e.latitude=g,o&&(o.latitude=g)}if(n.scale){var m=Dc(t.scale);e.scale=m,o&&(o.scale=m)}if(n.markers){var v=Nc(t.markers,[]);e.markers=v,o&&(o.markers=v)}if(n.polyline){var y=Nc(t.polyline,[]);e.polyline=y,o&&(o.polyline=y)}if(n.circles){var b=Nc(t.circles,[]);e.circles=b,o&&(o.circles=b)}if(n.controls){var w=Nc(t.controls,[]);e.controls=w,o&&(o.controls=w)}if(n.polygon){var S=Nc(t.polygon,[]);e.polygon=S,o&&(o.polygon=S)}if(n.showLocation){var C=Mc(Dc(t.showLocation));e[\"show-location\"]=C,o&&(o[\"show-location\"]=C)}if(n.includePoints){var _=Nc(t.includePoints,[]);e[\"include-points\"]=_,o&&(o[\"include-points\"]=_)}if(n.includePadding){var I=t.includePadding;e[\"include-padding\"]=I,o&&(o[\"include-padding\"]=I)}if(n.groundOverlays){var x=Nc(t.groundOverlays,[]);e[\"ground-overlays\"]=x,o&&(o[\"ground-overlays\"]=x)}if(n.skew){var P=Ac(t.skew,0);e.skew=P,o&&(o.skew=P)}if(n.showCompass){var k=t.showCompass;e[\"show-compass\"]=k,o&&(o[\"show-compass\"]=k)}if(n.showScale){var E=t.showScale;e[\"show-scale\"]=E,o&&(o[\"show-scale\"]=E)}if(n.enableOverlooking||void 0!==t.enableOverlooking){var O=!!t.enableOverlooking;e[\"enable-overlooking\"]=O,o&&(o[\"enable-overlooking\"]=O)}if(n.enableZoom||void 0!==t.enableZoom){var M=!!t.enableZoom;e[\"enable-zoom\"]=M,o&&(o[\"enable-zoom\"]=M)}if(n.enableScroll||void 0!==t.enableScroll){var N=!!t.enableScroll;e[\"enable-scroll\"]=N,o&&(o[\"enable-scroll\"]=N)}if(n.enableRotate||void 0!==t.enableRotate){var T=!!t.enableRotate;e[\"enable-rotate\"]=T,o&&(o[\"enable-rotate\"]=T)}if(n.enableTraffic||void 0!==t.enableTraffic){var A=!!t.enableTraffic;e[\"enable-traffic\"]=A,o&&(o[\"enable-traffic\"]=A)}if(n.enablePoi||void 0!==t.enablePoi){var D=!!t.enablePoi;e[\"enable-poi\"]=D,o&&(o[\"enable-poi\"]=D)}if(n.enableBuilding||void 0!==t.enableBuilding){var R=!!t.enableBuilding;e[\"enable-building\"]=R,o&&(o[\"enable-building\"]=R)}if(n.rotate){var L=Ac(t.rotate,0);e.rotate=L,o&&(o.rotate=L)}if(n.limitRegion){var B=t.limitRegion;e.limitRegion=B,o&&(o.limitRegion=B)}}(o,e,t,r?n:void 0),this.fillDynamicAttributes(\"map\",t,e,o)&&r&&this.fillDynamicAttributes(\"map\",t,e,n)},n.prototype.drawComposite=function(){var t=this.optimizeSwitch,n={};t&&(n.optimize=!0,n._version=0),null==this.data.scale&&(n.scale=t||void 0===this.defaultScale?16:this.defaultScale),e.prototype.drawComposite.call(this,o(o({},this.data),n)),this.eventsChanged=!1},n.prototype.updateComposite=function(){var t=this.batchedData;this.optimizeSwitch?(t._version=Vc++,t.optimize=!0,t.type=\"map\",e.prototype.updateComposite.call(this,t)):e.prototype.updateComposite.call(this),this.eventsChanged=!1}}(Bc),function(e){function n(t,n,o){return e.call(this,\"camera\",t,n,o)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-camera \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){var r,i,a,s,c,u,l,d,p,h;(o.applyMicPermissionWhenInit||void 0!==o.applyMicPermissionWhenInit)&&(t.applyMicPermissionWhenInit=n.applyMicPermissionWhenInit,null===(r=e.applyMicPermissionWhenInitParam)||void 0===r||r.setAttribute(\"value\",t.applyMicPermissionWhenInit)),o.flash&&(t.flash=Nc(n.flash,\"auto\"),null===(i=e.flashParam)||void 0===i||i.setAttribute(\"value\",t.flash)),o.frameFormat&&(t.frameFormat=n.frameFormat),o.frameSize&&(t.frameSize=n.frameSize,null===(a=e.frameSizeParam)||void 0===a||a.setAttribute(\"value\",t.frameSize)),o.mode&&(t.mode=Nc(n.mode,\"normal\"),null===(s=e.modeParam)||void 0===s||s.setAttribute(\"value\",t.mode)),o.scanArea&&(t.scanArea=n.scanArea),o.outputDimension&&(t.outputDimension=n.outputDimension,null===(c=e.outputDimensionParam)||void 0===c||c.setAttribute(\"value\",t.outputDimension)),o.devicePosition&&(t.devicePosition=Nc(n.devicePosition,\"back\"),null===(u=e.devicePositionParam)||void 0===u||u.setAttribute(\"value\",t.devicePosition)),o.recordVideoOnly&&(t.recordVideoOnly=n.recordVideoOnly,null===(l=e.recordVideoOnlyParam)||void 0===l||l.setAttribute(\"value\",t.recordVideoOnly)),o.extraInfo&&(t.extraInfo=n.extraInfo,null===(d=e.extraInfoParam)||void 0===d||d.setAttribute(\"value\",t.extraInfo)),o.engineVersion&&(t.cameraVersion=n.engineVersion,null===(p=e.cameraVersionParam)||void 0===p||p.setAttribute(\"value\",t.cameraVersion)),o.scanCodeFullResult&&(t.needScanCodeDetail=n.scanCodeFullResult,null===(h=e.needScanCodeDetailParam)||void 0===h||h.setAttribute(\"value\",t.needScanCodeDetail))}(this,n,e,t),this.fillDynamicAttributes(\"camera\",t,e,n,!0)},n.prototype.attachCompositeNode=function(t){var n=this.data;this.modeParam=this.setParamElem(\"mode\",n.mode),this.devicePositionParam=this.setParamElem(\"devicePosition\",n.devicePosition),this.flashParam=this.setParamElem(\"flash\",n.flash),this.frameSizeParam=this.setParamElem(\"frameSize\",\"\"),this.applyMicPermissionWhenInitParam=this.setParamElem(\"applyMicPermissionWhenInit\",\"\"),this.outputDimensionParam=this.setParamElem(\"outputDimension\",\"\"),this.recordVideoOnlyParam=this.setParamElem(\"recordVideoOnly\",\"\"),this.extraInfoParam=this.setParamElem(\"extraInfo\",\"\"),this.cameraVersionParam=this.setParamElem(\"cameraVersion\",\"\"),this.needScanCodeDetailParam=this.setParamElem(\"needScanCodeDetail\",\"\"),e.prototype.attachCompositeNode.call(this,t)}}(Fc),function(e){function n(t,n,o,r){var i=e.call(this,\"canvas\",t,\"PageReadied\")||this;return i.instance=n,i.config=o,i.feature=r,i.onRenderReady=i.onRenderReady.bind(i),i}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-canvas \"+t)},n.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.config.setParamElement&&(this.renderModeParam=this.setParamElem(\"uc_render_mode\",\"3\")),this.config.canvasReady&&this.feature.canvasReady&&this.addTask(\"nbcomponent.canvas.ready\",this.bridgeId,this.onRenderReady,Rc,Lc)},n.prototype.processAttrs=function(e,t){var n=this.data;this.config.setParamElement&&(e===t||t)&&this.handleSelfDrawAndUCRenderMode(t),function(e,t,n){n.width&&(e.width=t.width+\"\"),n.height&&(e.height=t.height+\"\"),n.offscreen&&(e.offscreen=t.offscreen?\"true\":\"false\"),n.disableScroll&&(e.disableScroll=t.disableScroll?\"true\":\"false\"),n.type&&(e.type=t.type+\"\"),n.useVideoRecorder&&(e.useVideoRecorder=t.useVideoRecorder?\"true\":\"false\")}(n,e,t),this.fillDynamicAttributes(\"canvas\",t,e,n)},n.prototype.destroy=function(t){this.config.setParamElement&&(this.renderModeParam&&(this.renderModeParam=void 0),this.selfDrawParam&&(this.selfDrawParam=void 0)),this.config.canvasReady&&this.feature.canvasReady&&this.removeTask(\"nbcomponent.canvas.ready\",this.bridgeId),e.prototype.destroy.call(this,t)},n.prototype.attachCompositeNode=function(t){this.config.attatchCompositeNodeWhenDrawComposite||e.prototype.attachCompositeNode.call(this,t)},n.prototype.compositeUpdateProps=function(t,n){e.prototype.compositeUpdateProps.call(this,t,n),this.config.setParamElement&&this.handleSelfDrawAndUCRenderMode(t)},n.prototype.compositeNeed2Create=function(){var t=this;this.appendEssentialData((function(){t.config.canvasReady?t.drawComposite(t.data):t.drawComposite(t.data,void 0,void 0,t.onRenderReady),t.config.attatchCompositeNodeWhenDrawComposite&&e.prototype.attachCompositeNode.call(t)}))},n.prototype.updateComposite=function(){var t=this;this.appendEssentialData((function(){e.prototype.updateComposite.call(t)}))},n.prototype.appendEssentialData=function(e){var t=this;this.getCompositeStyles((function(n){var o=t.data,r=n.clientWidth,i=n.clientHeight,a=n.backgroundColor;n.transform,o.width||(o.width=r+\"\"),o.height||(o.height=i+\"\"),o.timeStamp=Date.now()+\"\",o.backgroundColor||(o.backgroundColor=function(e){if(/^rgb/i.test(e)){for(var t=e.replace(/[a-z()\\s]/gi,\"\").split(\",\"),n=t.length,o=\"#\",r=1,i=0;i<n;i+=1){var a=Number(t[i]);3===i&&(a=parseInt(255*a+\"\",10));var s=a.toString(16),c=s.length;c<2&&(s=\"0\"+s,c+=1),o+=s,r+=c}if(7===r)return o+\"ff\";if(9===r)return o}return e}(a)),e()}))},n.prototype.handleSelfDrawAndUCRenderMode=function(e){var t=this.getStartupParams(),n=t&&\"1\"===t[\"canvas.selfdraw\"],o=e&&e.offscreen;if(n&&!o?this.selfDrawParam||(this.selfDrawParam=this.setParamElem(\"selfdraw\",\"1\")):this.selfDrawParam&&(this.selfDrawParam.parentNode&&this.selfDrawParam.parentNode.removeChild(this.selfDrawParam),this.selfDrawParam=void 0),o)this.renderModeParam.setAttribute(\"value\",\"2\");else{var r=t&&\"\".concat(t.canvas_uc_render_mode);\"1\"!==r&&\"2\"!==r||this.renderModeParam.setAttribute(\"value\",r)}},n.prototype.onRenderReady=function(){this.instance.invokeRenderReady()}}(Bc),function(e){function n(t,n){var o=e.call(this,\"lottieview\",t)||this;return o.instance=n,o}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-lottie \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.downgradeLevel&&(e.downgradeLevel=Nc(t.downgradeLevel,\"\")),n.downgrade&&(e.downgrade=t.downgrade),n.config&&(e.config=t.config),n.scene&&(e.scene=Nc(t.scene,\"\")),n.optimize&&(e.optimize=t.optimize),n.md5&&(e.md5=t.md5),n.djangoId&&(e.djangoId=t.djangoId),n.autoReverse&&(e.autoReverse=Mc(t.autoReverse)),n.repeatCount&&(e.repeatCount=Tc(t.repeatCount,0)),n.speed&&(e.speed=Ac(t.speed,1)),n.autoplay&&(e.autoplay=Mc(t.autoplay)),n.variableLottie&&(e.variableLottie=Mc(t.variableLottie)),n.variableMap&&(e.variableMap=Nc(t.variableMap,null)),n.renderType&&(e.renderType=Nc(t.renderType,\"\"))}(n,e,t),t.placeholder&&(n.placeholder=this.compositeNormalizeSrc(e.placeholder)),t.path&&(n.path=this.compositeNormalizeSrc(e.path)),t.assetsPath&&(n.assetsPath=this.compositeNormalizeSrc(e.assetsPath)),this.fillDynamicAttributes(\"lottie\",t,e,n)},n.prototype.initClassStyleProp=function(t,n,o,r){e.prototype.initClassStyleProp.call(this,t,n,o,r),this.instance&&this.instance.ownerOpenCapabilityElement&&(this.onAnimationStart=this.onAnimationStart.bind(this),this.addTask(\"nbcomponent.lottieview.animationStart\",this.bridgeId,this.onAnimationStart,Rc,Lc))},n.prototype.destroy=function(t){this.instance&&this.instance.ownerOpenCapabilityElement&&this.removeTask(\"nbcomponent.lottieview.animationStart\",this.bridgeId),e.prototype.destroy.call(this,t)},n.prototype.onAnimationStart=function(){var e=this.instance;e&&e.ownerOpenCapabilityElement&&e.invokeAnimationStart()}}(Bc),function(e){function n(t,n){return e.call(this,\"ad\",t,n)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ad \"+t)},n.prototype.setStyleInline=function(t){e.prototype.setStyleInline.call(this,t+\" ; height: \"+this.height+\"px\")},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.extInfo&&(e.extInfo=t.extInfo),n.immediately&&(e.immediately=Mc(t.immediately)),n.unitId&&(e.spaceCode=t.unitId)}(n,e,t),this.fillDynamicAttributes(\"ad\",t,e,n)},n.prototype.initClassStyleProp=function(t,n,o,r){this.setHeight(0),e.prototype.initClassStyleProp.call(this,t,n,o,r)},n.prototype.setHeight=function(e){this.height=e,this.setDOMStyle(this.root,{height:e+\"px\"})}}(jc),function(e){function n(t,n,o){return e.call(this,\"ai-camera\",t,n,o)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ai-camera \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){var r,i,a,s,c,u,l,d;o.devicePosition&&(t.devicePosition=Nc(n.devicePosition,\"back\"),null===(r=e.devicePositionParam)||void 0===r||r.setAttribute(\"value\",t.devicePosition)),o.flash&&(t.flash=Nc(n.flash,\"auto\"),null===(i=e.flashParam)||void 0===i||i.setAttribute(\"value\",t.flash)),o.orientation&&(t.orientation=n.orientation,null===(a=e.orientationParam)||void 0===a||a.setAttribute(\"value\",t.orientation)),o.outputDimension&&(t.outputDimension=n.outputDimension,null===(s=e.outputDimensionParam)||void 0===s||s.setAttribute(\"value\",t.outputDimension)),(o.applyMicPermissionWhenInit||void 0!==o.applyMicPermissionWhenInit)&&(t.applyMicPermissionWhenInit=n.applyMicPermissionWhenInit,null===(c=e.applyMicPermissionWhenInitParam)||void 0===c||c.setAttribute(\"value\",t.applyMicPermissionWhenInit)),(o.recordVideoOnly||void 0!==o.recordVideoOnly)&&(t.recordVideoOnly=n.recordVideoOnly,null===(u=e.recordVideoOnlyParam)||void 0===u||u.setAttribute(\"value\",t.recordVideoOnly)),o.extraInfo&&(t.extraInfo=n.extraInfo,null===(l=e.extraInfoParam)||void 0===l||l.setAttribute(\"value\",t.extraInfo)),o.engineVersion&&(t.cameraVersion=n.engineVersion,null===(d=e.cameraVersionParam)||void 0===d||d.setAttribute(\"value\",t.cameraVersion))}(this,n,e,t),this.fillDynamicAttributes(\"ai-camera\",t,e,n,!0)},n.prototype.attachCompositeNode=function(t){var n=this.data;this.devicePositionParam=this.setParamElem(\"devicePosition\",n.devicePosition),this.flashParam=this.setParamElem(\"flash\",n.flash),this.orientationParam=this.setParamElem(\"orientation\",\"\"),this.outputDimensionParam=this.setParamElem(\"outputDimension\",\"\"),this.applyMicPermissionWhenInitParam=this.setParamElem(\"applyMicPermissionWhenInit\",\"\"),this.recordVideoOnlyParam=this.setParamElem(\"recordVideoOnly\",\"\"),this.extraInfoParam=this.setParamElem(\"extraInfo\",\"\"),this.cameraVersionParam=this.setParamElem(\"cameraVersion\",\"\"),e.prototype.attachCompositeNode.call(this,t)}}(Fc),function(e){function n(t,n){return e.call(this,\"ar\",t,n)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-ar \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.src&&(e.src=t.src),n.cameraEnable&&(e[\"camera-enable\"]=t.cameraEnable),n.cameraPosition&&(e[\"camera-position\"]=t.cameraPosition),n.gestureDraggable&&(e[\"gesture-draggable\"]=t.gestureDraggable),n.gestureRotatable&&(e[\"gesture-rotatable\"]=t.gestureRotatable),n.gestureScalable&&(e[\"gesture-scalable\"]=t.gestureScalable),n.trackAttitude&&(e[\"track-attitude\"]=t.trackAttitude),n.trackFace&&(e[\"track-face\"]=t.trackFace),n.trackFaceBeauty&&(e[\"track-face-beauty\"]=Nc(t.trackFaceBeauty,0)),n.trackFaceSmile&&(e[\"track-face-smile\"]=Nc(t.trackFaceSmile,0)),n.trackFaceMax&&(e[\"track-face-max\"]=t.trackFaceMax),n.trackMode&&(e[\"track-mode\"]=t.trackMode)}(n,e,t),this.fillDynamicAttributes(\"ar\",t,e,n)},n.prototype.drawEntity=function(e){this.drawComposite(this.data,{frame:e.size})}}(jc),function(e){function n(t,n){return e.call(this,\"ad\",t,n)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-cdp \"+t)},n.prototype.setStyleInline=function(t){e.prototype.setStyleInline.call(this,t+\" ; height: \"+this.height+\"px\")},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n){n.extInfo&&(e.extInfo=t.extInfo),n.immediately&&(e.immediately=Mc(t.immediately)),n.spaceCode&&(e.spaceCode=t.spaceCode)}(n,e,t),this.fillDynamicAttributes(\"cdp\",t,e,n)},n.prototype.initClassStyleProp=function(t,n,o,r){this.setHeight(0),e.prototype.initClassStyleProp.call(this,t,n,o,r)},n.prototype.setHeight=function(e){this.height=e,this.setDOMStyle(this.root,{height:e+\"px\"})}}(jc),function(e){function n(t,n){var o=e.call(this,\"live-player\",t)||this;return o.feature=n,o}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-live-player \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o,r){var i,a;if((o.src||void 0!==n.src)&&(t.src=n.src,null===(i=e.srcParam)||void 0===i||i.setAttribute(\"value\",t.src)),(o.mode||void 0!==n.mode)&&(t.mode=Nc(n.mode,\"live\"),null===(a=e.modeParam)||void 0===a||a.setAttribute(\"value\",t.mode)),o.muted&&(t.muted=Mc(n.muted)),o.autoplay&&(t.autoplay=Mc(n.autoplay)),(o.orientation||void 0!==n.orientation)&&(t.orientation=Nc(n.orientation,\"vertical\")),(o.objectFit||void 0!==n.objectFit)&&(t.objectFit=Nc(n.objectFit,\"contain\")),o.backgroundMute&&(t.backgroundMute=Mc(n.backgroundMute)),o.floatingMode||void 0!==n.floatingMode){var s=n.floatingMode;Ec(\"floatingMode\")||(null==r?void 0:r.floatingMode)||\"miniprogram\"!==s||(s=\"microapp\"),t.floatingMode=s}(o.minCache||void 0!==n.minCache)&&(t.minCache=Ac(n.minCache,1)),(o.maxCache||void 0!==n.maxCache)&&(t.maxCache=Ac(n.maxCache,3)),(o.extraInfo||void 0!==n.extraInfo)&&(t.extraInfo=t[\"extra-info\"]=n.extraInfo)}(this,n,e,t,this.feature),this.fillDynamicAttributes(\"live-player\",t,e,n)},n.prototype.attachCompositeNode=function(t){var n=this.data;this.srcParam=this.setParamElem(\"src\",n.src),this.modeParam=this.setParamElem(\"mode\",n.mode),e.prototype.attachCompositeNode.call(this,t)}}(Bc),function(e){function n(t){return e.call(this,\"live-pusher\",t)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-live-pusher \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data,o=e===t;o&&(this.modeDOM=this.setParamElem(\"mode\",\"RTC\"),this.urlDOM=this.setParamElem(\"url\",\"\")),function(e,t,n,o,r){var i,a;if(o.mode||r&&void 0!==o.mode){var s=t.mode=Nc(n.mode,\"RTC\");null===(i=e.modeDOM)||void 0===i||i.setAttribute(\"value\",s)}if((o.enableCamera||r&&void 0!==o.enableCamera)&&(t.enableCamera=Oc(n.enableCamera)),(o.autoFocus||r&&void 0!==o.autoFocus)&&(t.autoFocus=Oc(n.autoFocus)),o.beauty&&(t.beauty=Ac(n.beauty,0)),o.whiteness&&(t.whiteness=Ac(n.whiteness,0)),(o.aspect||r&&void 0!==o.aspect)&&(t.aspect=Nc(n.aspect,\"9:16\")),(o.minBitrate||r&&void 0!==o.minBitrate)&&(t.minBitrate=Ac(n.minBitrate,200)),(o.maxBitrate||r&&void 0!==o.maxBitrate)&&(t.maxBitrate=Ac(n.maxBitrate,1e3)),o.autopush&&(t.autopush=Mc(n.autopush)),o.muted&&(t.muted=Mc(n.muted)),o.orientation&&(t.orientation=Nc(n.orientation,!1)),o.zoom&&(t.zoom=Mc(n.zoom)),o.backgroundMute&&(t.backgroundMute=Mc(n.backgroundMute)),(o.enableAgc||r&&void 0!==o.enableAgc)&&(t.enableAgc=Oc(n.enableAgc)),(o.enableAns||r&&void 0!==o.enableAns)&&(t.enableAns=Oc(n.enableAns)),o.record&&(t.record=Mc(n.record)),o.url){var c=t.url=n.url;null===(a=e.urlDOM)||void 0===a||a.setAttribute(\"value\",c)}o.waitingImage&&(t.waitingImage=n.waitingImage),o.waitingImageHash&&(t.waitingImageHash=n.waitingImageHash),o.devicePosition&&(t.devicePosition=n.devicePosition)}(this,n,e,t,o),this.fillDynamicAttributes(\"live-pusher\",t,e,n)}}(Bc),function(e){function n(t){return e.call(this,\"rtc-room\",t)||this}t(n,e),n.prototype.setClassName=function(t){e.prototype.setClassName.call(this,\"a-rtc-room \"+t)},n.prototype.processAttrs=function(e,t){var n=this.data;!function(e,t,n,o){n.roomId&&(e.roomId=t.roomId),n.token&&(e.token=t.token),n.userId&&(e.userId=t.userId),n.signature&&(e.signature=t.signature),(n.fps||o&&void 0!==n.fps)&&(e.fps=Tc(t.fps,15)),(n.resolution||o&&void 0!==n.resolution)&&(e.resolution=Tc(t.resolution,1)),(n.beautyLevel||o&&void 0!==n.beautyLevel)&&(e.beautyLevel=Tc(t.beautyLevel,0)),(n.enableCamera||o&&void 0!==n.enableCamera)&&(e.enableCamera=Oc(t.enableCamera)),n.autoplay&&(e.autoplay=t.autoplay),n.mute&&(e.mute=t.mute),n.record&&(e.record=t.record),n.minBitrate&&(e.minBitrate=t.minBitrate),n.maxBitrate&&(e.maxBitrate=t.maxBitrate),n.extraInfo&&(e.extraInfo=t.extraInfo),n.channelId&&(e.channelId=t.channelId),n.aliyunInfo&&(e.aliyunInfo=t.aliyunInfo),n.privateMapKey&&(e.privateMapKey=t.privateMapKey),n.disableInteractive&&(e.disableInteractive=t.disableInteractive),n.enableProximityMonitor&&(e.enableProximityMonitor=t.enableProximityMonitor),n.enableVideoOnlyMode&&(e.enableVideoOnlyMode=t.enableVideoOnlyMode)}(n,e,t,e===t),this.fillDynamicAttributes(\"rtc-room\",t,e,n)}}(Bc);var Zc=function(){function e(e){this.provider=e,this.index=0}return e.prototype[Symbol.iterator]=function(){return this},e.prototype.next=function(e){return this.provider.item(this.index++)},e.prototype.throw=function(e){throw new Error(\"throw unimplemented\")},e.prototype.return=function(e){throw new Error(\"return unimplemented\")},e}(),qc=function(){function e(e){this.generator=e,this.done=!1,this.results=[]}return e.prototype.ref=function(){return new Zc(this)},e.prototype.item=function(e){for(;e>this.results.length-1;){var t=this.generator.next();if(!1!==t.done){this.done=!0;break}this.results.push(t.value)}return this.done?{done:!0,value:null}:{done:!1,value:this.results[e]}},e}();function Yc(e){if(e&&e.node)for(var t=e.node&&e.node.nextSibling;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}function Qc(e){return e&&1===e.nodeType}function Xc(e){return e}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=Se(),t}t(n,e),n.prototype.iterateTargetAXML=function(t,n){return this.createIterator(e.prototype.iterateTargetAXML,[t,n])},n.prototype.iterateChildTargetByOwnerId=function(t,n,o){return this.createIterator(e.prototype.iterateChildTargetByOwnerId,[t,n,o])},n.prototype.iterateDeepSlotBlockByOwnerId=function(t,n){return this.createIterator(e.prototype.iterateDeepSlotBlockByOwnerId,[t,n])},n.prototype.iterateTargetDeep=function(t,n){return this.createIterator(e.prototype.iterateTargetDeep,[t,n])},n.prototype.iterateDeepXML=function(t){return this.createIterator(e.prototype.iterateDeepXML,[t])},n.prototype.createIterator=function(e,t){var n=this.cache.get(e);n||(n=we(),this.cache.set(e,n));var o=t.map((function(e){return\"\".concat(\"object\"==typeof e&&e?e.targetId:e)})).join(\"_\"),r=n.get(o);return r||(r=new qc(e.apply(this,t))),r.ref()}}(function(){function e(){}return e.prototype.iterateTargetAXML=function(e,t){var n,o,r,i;return a(this,(function(a){switch(a.label){case 0:if(n=function(e){for(var t=e.node&&e.node.firstChild;;){if(!t)return;var n=t.component;if(n&&2===n.type)return n;t=t.nextSibling}}(e),!n)return[2,null];o=n.node,a.label=1;case 1:return o?(r=o).component&&2===r.component.type?[4,i=r.component]:[3,4]:[3,5];case 2:return a.sent(),[5,s(this.iterateChildTargetByOwnerId(i,t))];case 3:a.sent(),a.label=4;case 4:return o=o.nextSibling,[3,1];case 5:return[2,null]}}))},e.prototype.iterateChildTargetByOwnerId=function(e,t,n){var o,r,i,c,u,l,d,p,h,f,g,m,v;return a(this,(function(a){switch(a.label){case 0:if(!e.slotProviders)return[2,null];o=e.slotProviders,a.label=1;case 1:a.trys.push([1,13,14,15]),r=s(o),i=r.next(),a.label=2;case 2:if(i.done)return[3,12];c=i.value,u=this.iterateDeepSlotBlockByOwnerId(e,t),a.label=3;case 3:if(!1!==(l=u.next()).done)return[3,9];if(!(d=l.value).node)return[3,8];if(d.provider!==c)return[3,8];p=d.node.firstChild,a.label=4;case 4:return p?(h=p).component?2!==h.component.type?[3,7]:[4,f=h.component]:[3,7]:[3,8];case 5:return a.sent(),n?[3,7]:[5,s(this.iterateChildTargetByOwnerId(f,t))];case 6:a.sent(),a.label=7;case 7:return p=p.nextSibling,[3,4];case 8:return[3,10];case 9:return[3,11];case 10:return[3,3];case 11:return i=r.next(),[3,2];case 12:return[3,15];case 13:return g=a.sent(),m={error:g},[3,15];case 14:try{i&&!i.done&&(v=r.return)&&v.call(r)}finally{if(m)throw m.error}return[7];case 15:return[2,null]}}))},e.prototype.iterateDeepSlotBlockByOwnerId=function(e,t){var n,o,r,i;return a(this,(function(a){switch(a.label){case 0:if(!e.node)return[2,null];n=e.node.firstChild,a.label=1;case 1:return n?(o=n).component&&1===o.component.type?(r=o.component,c=r.provider,((u=c.slotProviderParentContextInstance).type<2?u.option.parentTarget:u).targetId!==t?[3,3]:[4,r]):[3,6]:[3,9];case 2:return a.sent(),[3,5];case 3:return[5,s(this.iterateDeepSlotBlockByOwnerId(r,t))];case 4:a.sent(),a.label=5;case 5:return[3,8];case 6:return o.component&&2===o.component.type&&(i=o.component).slotProviders?[5,s(this.iterateDeepSlotBlockByOwnerId(i,t))]:[3,8];case 7:a.sent(),a.label=8;case 8:return n=n.nextSibling,[3,1];case 9:return[2,null]}var c,u}))},e.prototype.iterateTargetDeep=function(e,t){var n,o;return a(this,(function(r){switch(r.label){case 0:return[5,s(this.iterateDeepXML(e))];case 1:r.sent(),n=this.iterateChildTargetByOwnerId(e,t),r.label=2;case 2:return!1!==(o=n.next()).done?[3,5]:[4,o.value];case 3:return r.sent(),[5,s(this.iterateDeepXML(o.value))];case 4:return r.sent(),[3,6];case 5:return[3,7];case 6:return[3,2];case 7:return[2,null]}}))},e.prototype.iterateDeepXML=function(e){var t,n,o;return a(this,(function(r){switch(r.label){case 0:if(!e.slotProviders||!e.node)return[2,null];t=e.node.firstChild,r.label=1;case 1:return t?(n=t.component)&&2===n.type?[4,n]:[3,8]:[3,10];case 2:return r.sent(),[5,s(this.iterateTargetDeep(n,e.targetId))];case 3:r.sent(),o=Yc(n),r.label=4;case 4:return o?[4,o]:[3,7];case 5:return r.sent(),[5,s(this.iterateDeepXML(o))];case 6:return r.sent(),o=Yc(o),[3,4];case 7:return[3,10];case 8:t=t.nextSibling,r.label=9;case 9:return[3,1];case 10:return[2,null]}}))},e}());var Kc=0;var Jc,$c=function(){return\"z:\".concat(++Kc)},eu={id:0},tu=[];function nu(e){return process.env.ZEPHYR_RUNTIME_PAGE_SINGLETON?Jc:tu[e]}var ou=[!1,5,1e3,0,!1,!1,!1,!1,!1,!1,!1,!1,!1,[],!1,!1,!1,!0,!1,[],!1,!1,2,!1,!1,!1,!1,!0,null,0,!1,!1,!0,!1,0,!1,void 0,!1,!1,!1,!1,!1,0,!1,[0],null,!1,!1,0,!1,!1,0,!1,!1,0,0,0,!1,!1,!1,!1,!1,!1,0,{},!1,!1,!1,!1];var ru,iu=function(){function e(){this.plugins=[],this.px=this.px.bind(this),this.refresh()}return e.prototype.enableScalableStyle=function(e){},e.prototype.enableCssVarDownGrade=function(e){},e.prototype.enableCssVarRedeclareCheck=function(){},e.prototype.normalizeInlineStyleName=function(e){var t=\"-\"===e[1]&&\"-\"===e[0],n=this._name(e,t)||\"\";return t?n:function(e){var t=e.replace(/\\B([A-Z])/g,\"-$1\").toLowerCase();return t.length>=6&&\"w\"===t[0]&&\"e\"===t[1]&&\"b\"===t[2]&&\"k\"===t[3]&&\"i\"===t[4]&&\"t\"===t[5]?\"-\"+t:t}(n)},e.prototype.normalizeInlineStyleValue=function(e){return this._value(e,this)},e.prototype.normalizeStyleSheetText=function(e){return this._sheet(e,this)},e.prototype.getInlineStyleExtractType=function(e){var t=this._extract;return e>=t?e:t},e.prototype.px=function(e){return this._px(e)},e.prototype.refresh=function(){for(var e=[],t=[],n=[],o=[],r=0,i=this.plugins;r<i.length;r++){var a=i[r];if(a){var s=a.px,c=a.sheet,u=a.name,l=a.value;s&&e.push(s),c&&t.push(c),u&&n.push(u),l&&o.push(l)}}this._px=au(e,1),this._sheet=au(t,2),this._name=au(n,2),this._value=au(o,2),this._extract=n.length?2:o.length?1:0},e}();function au(e,t){var n=e.length;if(0===n)return Xc;if(1===n)return e[0];for(var o=\"\",r=1;r<t;r+=1)o+=\",v\"+r;var i,a=\"\",s=\"this(v0\"+o+\")\";for(r=1;r<n;r+=1){var c=\"f\"+r;a+=c+\",\",s=c+\"(\"+s+o+\")\"}return i=$s(a+\"v0\"+o,\"return (\"+s+\")\"),Ks(Js,i,e)}function su(){return ru||(ru=new iu)}function cu(e,t,n,o,r){uu(e).callHostReadyTargetMethod(e.ownerTargetId,t,n,o,r)}function uu(e){return process.env.ZEPHYR_RUNTIME_PAGE_SINGLETON?nu(null).option.runtime.proxy:nu(e.ownerPageId).option.runtime.proxy}function lu(e){var t=uu(e).renderer;if(t)return t.vm[e.ownerTargetId]}var du=[\"\",[]];function pu(e,t){var n;return _c.test(t)?(n=e)&&(\"-\"===n[0]&&\"-\"===n[1]||(\"-\"===n[0]&&\"w\"===n[1]?Sc[n]:Cc[n]))||(t=su().px(t)+\"px\"):t=su().normalizeInlineStyleValue(t),t}function hu(e){if(e){if(\"object\"!=typeof e)return function(e){if(!e)return du;var t=\"\",n=!1,o=0,r=function(e){for(var t,n,o=[],r=0,i=0,a=0,s=e.length;i<s;){var c=e[i];switch(r){case 0:\":\"===c?(r=1,t=e.slice(a,i).trim(),a=i+1):\";\"===c&&(r=0,a=i+1);break;case 1:\"(\"===c?r=2:\";\"===c?(r=0,n=e.slice(a,i).trim(),a=i+1,o.push(t,n)):\"'\"===c?r=5:'\"'===c&&(r=6);break;case 2:\"'\"===c?r=3:'\"'===c?r=4:\")\"===c&&(r=1);break;case 3:\"'\"===c?r=2:\"\\\\\"===c&&(i+=1);break;case 4:'\"'===c?r=2:\"\\\\\"===c&&(i+=1);break;case 5:\"'\"===c?r=1:\"\\\\\"===c&&(i+=1);break;case 6:'\"'===c?r=1:\"\\\\\"===c&&(i+=1)}i++}return r>=1&&o.push(t,e.slice(a).trim()),o}(e);for(;o<r.length;){var i=r[o],a=r[o+1],s=su().normalizeInlineStyleName(i);s!==i&&(r[o]=i=s,n=!0);var c=pu(i,a);c!==a&&(r[o+1]=a=c,n=!0),t+=\"\".concat(i,\": \").concat(a,\";\"),o+=2}return[n?t:e,r]}(e);var t=Object.keys(e);if(t.length){for(var n=\"\",o=[],r=0,i=t;r<i.length;r++){var a=i[r],s=su().normalizeInlineStyleName(a),c=e[a];null==c||!0===c||!1===c?c=\"\":\"\"!==c&&(c=pu(s,c+\"\")),o.push(s,c),n+=\"\".concat(s,\": \").concat(c,\"; \")}return[n,o]}}return du}var fu,gu,mu=/(?:^|\\s+)a-\\S+|\\s+/g,vu=/(?:^|\\s+)a-\\S+/g;function yu(e){var t=\"\",n=e.length;if(n>0){t+=e[0];for(var o=1;o<n;o+=1)t+=\" \"+e[o]}return t}\"function\"==typeof setTimeout&&\"function\"==typeof clearTimeout&&(fu=tc(setTimeout,void 0),gu=tc(clearTimeout,void 0));var bu=function(){function e(){this.state=void 0,this.delayMap=void 0,this.delayId=0}return e.prototype.destroy=function(){this.delayMap&&(this.delayMap=void 0)},e.prototype.clearTimeout=function(e){var t=this.clearDelayMap(e);void 0!==t&&gu(t)},e.prototype.setTimeout=function(e,t){if(void 0===t&&(t=0),this.isAlive()&&\"function\"==typeof e)return this.setDelayMap(fu(this.createDelayCallback(e),t))},e.prototype.getState=function(){if(this.isAlive()){var e=this.state;return e||(e=this.state={}),e}},e.prototype.createDelayCallback=function(e){var t=this;return function(){t.isAlive()&&e()}},e.prototype.setDelayMap=function(e){var t=this.delayMap;t||(t=this.delayMap=we());var n=++this.delayId;return t.set(n,e),n},e.prototype.clearDelayMap=function(e){var t=this.delayMap;if(t)return t.get(e)},e}();!function(e){function n(t){var n=e.call(this)||this;return n.sjsInlineStyle=void 0,n.sjsClassName=\"\",n.element=t,n.setClassNameImpl=t.setClassName.bind(t),n.setStyleInlineImpl=t.setStyleInline.bind(t),t.setClassName=n.setClassNameProxy.bind(n),t.setStyleInline=n.setStyleInlineProxy.bind(n),n}t(n,e),n.prototype.destroy=function(){this.element&&(this.element=null),e.prototype.destroy.call(this)},n.prototype.isAlive=function(){return!!this.element},n.prototype.setClassNameProxy=function(e,t){var n=this.element;if(n){var o=this.sjsClassName;if(o){var r=lu(n);r&&r.handleExternalClasses&&(o=r.handleExternalClasses(n,o)),e+=\" \"+o}return this.setClassNameImpl(e,t)}},n.prototype.setStyleInlineProxy=function(e,t){var n=this.sjsInlineStyle&&this.sjsInlineStyle[0];return n&&(e+=\" ;\"+n),this.setStyleInlineImpl(e,t)},n.prototype.callMethod=function(e,t){this.element&&cu(this.element,e,t)},n.prototype.setStyle=function(e){this.element&&(this.sjsInlineStyle=hu(e),this.setStyleInlineProxy(this.element.inlineStyleExp))},n.prototype.addClass=function(){if(this.element){var e=yu(arguments).replace(vu,\"\");e&&(this.sjsClassName?this.sjsClassName+=\" \"+e:this.sjsClassName=e,this.setClassNameProxy(this.element.classNameExp))}},n.prototype.removeClass=function(){if(this.element){var e=this.getUserClass(),t=this.sjsClassName;if(e||t){for(var n=e&&\" \"+e+\" \",o=t&&\" \"+t+\" \",r=n,i=o,a=0,s=yu(arguments).split(mu);a<s.length;a++){var c=s[a];if(c){for(var u=\" \"+c+\" \";r&&r.indexOf(u)>-1;)r=r.replace(u,\" \");for(;i&&i.indexOf(u)>-1;)i=i.replace(u,\" \")}}var l=n!==r,d=o!==i;l&&(r=r.trim(),this.setUserClass(r)),d&&(this.sjsClassName=i.trim()),(l||d)&&this.setClassNameProxy(this.element.classNameExp)}}},n.prototype.hasClass=function(e){if(this.element){var t=this.element.root;if(t&&function(e){return 1===e.nodeType}(t))return(\" \"+this.getUserClass()+\" \"+this.sjsClassName+\" \").indexOf(\" \"+e+\" \")>-1}return!1},n.prototype.getDataset=function(){if(this.element){var e=this.element.root;return e&&e.$$dataset?(t=e.$$dataset,oc(nc(t))):{}}var t},n.prototype.getUserClass=function(){var e=this.element,t=e.userDefinedClass;return void 0===t?e.classNameExp:t},n.prototype.setUserClass=function(e){var t=this.element;if(void 0===t.userDefinedClass)t.classNameExp=e;else{var n=lu(t);if(n){var o=function(e,t,n){var o,r=n?n+\"\":\"\",i=r;if(r){var a=0===t.type?null===(o=t.option)||void 0===o?void 0:o.parent:t;a&&a.handleExternalClasses&&(i=a.handleExternalClasses(e,r))}return[r,i]}(t,n,e),r=o[0],i=o[1];t.userDefinedClass=r,t.classNameExp=i}}}}(bu),function(e){function n(t,n){var o=e.call(this)||this;return o.ownerPageId=t,o.ownerTargetId=n,o}t(n,e),n.prototype.destroy=function(){this.ownerTargetId=this.ownerPageId=-1,e.prototype.destroy.call(this)},n.prototype.callMethod=function(e,t){this.isAlive()&&cu(this,e,t)},n.prototype.isAlive=function(){return this.ownerPageId>-1}}(bu);var wu=function(){function e(e,t,n,o,r){this.bindLinkNode=r,this.updatingDiff=null,this.scopedBlocks=[],this.unscopedBlocks=[],this.disposing=!1,this.detaching=!1,this.factory=e,this.currentData=t,this.slotProviderParentContextInstance=n,this.scopeId=o}return e.prototype.createBlockWithScope=function(e,t){var n,o,r=this.scopeId;return e&&r?(n=Su(e,this.currentData,r),(o=this.createBlock(this.slotProviderParentContextInstance,t,n,!0)).__scopeContext__=e):(n=this.currentData,o=this.createBlock(this.slotProviderParentContextInstance,t,n,!1)),o.bType=1,o},e.prototype.createBlockWithoutScope=function(e){var t=this.createBlock(this.slotProviderParentContextInstance,e,this.currentData,!1);return t.bType=1,t},e.prototype.updateBlockWithDynamicNameScopeAndFallback=function(e,t,n,o,r,i){if(t._name===e){var a=this.scopeId;if(n&&a){var s=Su(n,this.currentData,a),c=Object.create(this.updatingDiff);c[a]=!0,t.updateScopeContext(n),t.updateScopeAndFallbackContext(c,s,o,r)}else t.updateFallbackContext(o,r)}else{var u=void 0;u=n?this.createBlockWithScope(n,i):this.createBlockWithoutScope(i),t.updateDynamicNameAndFallbackContext(e,u,o,r)}return null},e.prototype.updateBlockWithScopeAndFallback=function(e,t,n,o){var r=this.scopeId;if(t&&r){var i=Su(t,this.currentData,r),a=Object.create(this.updatingDiff);a[r]=!0,e.updateScopeContext(t),e.updateScopeAndFallbackContext(a,i,n,o)}else e.updateFallbackContext(n,o)},e.prototype.updateBlockWithScope=function(e,t){var n=this.scopeId;if(t&&n){var o=Su(t,this.currentData,n),r=Object.create(this.updatingDiff);r[n]=!0,e.__scopeContext__=t,e.u(r,o)}},e.prototype.enterProviderDetaching=function(){this.detaching=!0},e.prototype.exitProviderDetaching=function(){this.detaching=!1;var e=this.detachedBlocks;if(e){this.detachedBlocks=null;for(var t=0,n=e;t<n.length;t++){var o=n[t],r=1===o.__slotType__?this.scopedBlocks:this.unscopedBlocks;o.__slotIndex__=r.push(o)-1,o.d(!0)}}},e.prototype.createBlock=function(e,t,n,o){var r,i,a;if(o?(i=1,r=this.scopedBlocks.length,a=this.scopedBlocks):(i=0,r=this.unscopedBlocks.length,a=this.unscopedBlocks),this.detaching){var s=this.detachedBlocks;if(s){var c=s.shift();if(c)return a.push(c),c.__slotIndex__=r,c.__slotType__=i,c}}var u=this.factory(e,n);return this.bindLinkNode&&(u=this.bindLinkNode(u,this)),u.d=this.destroyBlock.bind(this,u,u.d),a.push(u),u.__slotIndex__=r,u.__slotType__=i,u},e.prototype.destroyBlock=function(e,t,n){var o=e.__slotIndex__;if(o>=0){if(!this.disposing){var r=1===e.__slotType__?this.scopedBlocks:this.unscopedBlocks,i=r.length-1,a=r[i];a.__slotIndex__=o,r[o]=a,r.length=i}if(this.detaching){var s=this.detachedBlocks;s||(s=this.detachedBlocks=[]),s.push(e)}else t.call(e,n);e.__slotIndex__=-1}},e}();function Su(e,t,n){var o=Object.create(t);return o[n]=e[0],e.length>1&&(o[n+\"d\"]=e[1],o[n+\"n\"]=e[2]),o}!function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.exitProviderUpdating=function(){},n.prototype.enterProviderUpdating=function(e,t){this.currentData=t;for(var n=this.scopeId,o=0,r=this.unscopedBlocks;o<r.length;o++){(c=r[o]).u(e,t)}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var a=0,s=this.scopedBlocks;a<s.length;a++){var c,u=Su((c=s[a]).__scopeContext__,t,n);c.u(i,u)}}},n.prototype.destroyBlocks=function(e){if(this.disposing=!0,this.scopeId){for(var t=0,n=this.scopedBlocks;t<n.length;t++){n[t].d(e)}this.scopedBlocks=[]}for(var o=0,r=this.unscopedBlocks;o<r.length;o++){r[o].d(e)}this.unscopedBlocks=[]}}(wu),function(e){function n(){return null!==e&&e.apply(this,arguments)||this}t(n,e),n.prototype.enterProviderUpdating=function(e,t){this.updatingDiff=e,this.currentData=t;for(var n=this.scopeId,o=0,r=this.unscopedBlocks;o<r.length;o++){r[o].__slotUpdating__=!0}if(n&&this.scopedBlocks.length)for(var i=0,a=this.scopedBlocks;i<a.length;i++){a[i].__slotUpdating__=!0}},n.prototype.destroyBlocks=function(e){this.disposing=!0,this.scopeId&&(this.scopedBlocks=[]),this.unscopedBlocks=[]},n.prototype.exitProviderUpdating=function(){for(var e=this.updatingDiff,t=this.currentData,n=this.scopeId,o=0,r=this.unscopedBlocks;o<r.length;o++){(c=r[o]).__slotUpdating__&&(c.__slotUpdating__=!1,c.u(e,t))}if(n&&this.scopedBlocks.length){var i=Object.create(e);i[n]=!1;for(var a=0,s=this.scopedBlocks;a<s.length;a++){var c;if((c=s[a]).__slotUpdating__){c.__slotUpdating__=!1;var u=Su(c.__scopeContext__,t,n);c.u(i,u)}}}this.updatingDiff=null}}(wu);var Cu=function(){function e(e){this.type=0,this.uid=eu.id++,this.option=e;var t=this.root=e.parent.root;this.document=t.document;var n=e.parent.context;this.context=n?{getDynamicComponent:null,isolation:n.isolation,pickerView:n.pickerView,providerInfo:n.providerInfo,styleScope:n.styleScope,swiper:n.swiper,swiperChildren:n.swiperChildren,ownerOpenCapabilityElement:n.ownerOpenCapabilityElement}:{getDynamicComponent:null,isolation:null,pickerView:null,providerInfo:null,styleScope:null,swiper:null,swiperChildren:null,ownerOpenCapabilityElement:null}}return e.prototype.destroy=function(e){var t=this;t._fragment&&(t._fragment.d(e),t._fragment=null),t.root=null,t.document=null,t.option=null,t.context=null},e}();!function(e){function n(t,n,r,i,a,s){var c=e.call(this,t)||this;return c.depthOfBatching=0,c.pendingData=[],c.typedCallbacks=[],c.context=o(o({},c.context),{providerInfo:r,isolation:i,styleScope:a,ownerOpenCapabilityElement:s}),c.logicInstance=n,c}t(n,e),n.prototype.getTargetId=function(){return this.targetId},n.prototype.initProps=function(e){this.logicInstance.initProps(e)},n.prototype.receiveProps=function(e,t){this.logicInstance.updateProps(e,t)},n.prototype.afterCreate=function(){var e=this.logicInstance;this.enterBatching(),e.onZComponentCreated(),this.exitBatching()},n.prototype.mountFragment=function(e,t){this._fragment.m(e,t),this.enterBatching(),this.logicInstance.onZComponentAttached(),this.logicInstance.onZComponentReady(),this.exitBatching()},n.prototype.enterBatching=function(){++this.depthOfBatching},n.prototype.exitBatching=function(){0===--this.depthOfBatching&&this.flushData()},n.prototype.pushData=function(e,t,n){var o=n&&\"function\"==typeof n;this.pendingData.push({type:e,diff:t}),o&&this.pushCallback(n),this.logicInstance.step},n.prototype.flushData=function(){var e=this,t=this.pendingData;if(t.length){for(var n={},o=0,r=t;o<r.length;o++)for(var i=r[o],a=0,s=Object.keys(i.diff);a<s.length;a++){n[s[a]]=!0}this._fragment.u(n,this.logicInstance.getState())}setTimeout((function(){e.root&&e.root.flushUpdatedQueue()}),0),this.pendingData=[],this.typedCallbacks.length&&setTimeout((function(){e.logicInstance&&e.flushCallbacks()}),0)},n.prototype.flushCallbacks=function(){var e=this.typedCallbacks.slice();if(this.typedCallbacks.length=0,this.enterBatching(),e.length)for(var t=0,n=e;t<n.length;t++){n[t].call(this.logicInstance.publicInstance)}this.exitBatching()},n.prototype.destroy=function(t){this.enterBatching(),this.logicInstance.onZComponentDetached(),this.exitBatching(),this.logicInstance=null,e.prototype.destroy.call(this,t)},n.prototype.pushCallback=function(e){this.typedCallbacks.push(e)}}(Cu);var _u=function(){function e(e){this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.hType=1,this.component=e,this.isDirty=!0,this.isNew=!0}return e.prototype.reset=function(){this.isDirty=!0,this.isNew=!0},e.prototype.appendChild=function(e){var t=e.parent;if(t&&Iu(t,e),e.parent=this,e.isDirty)for(var n=this;n&&!n.isDirty;)n.isDirty=!0,n=n.parent;var o=this.lastChild;o?(e.previousSibling=o,o.nextSibling=e):this.firstChild=e,this.lastChild=e,1===e.hType&&(e.root=this.root,this.root.addOperation(2,[this.component.targetId,e.component.targetId]))},e.prototype.insertBefore=function(e,t){if(t){var n=e.parent;if(n&&Iu(n,e),e.parent=this,e.isDirty)for(var o=this;o&&!o.isDirty;)o.isDirty=!0,o=o.parent;var r=t.previousSibling;if(t.previousSibling=e,r?r.nextSibling=e:this.firstChild=e,e.previousSibling=r,e.nextSibling=t,1===e.hType){e.root=this.root;for(var i=t;i&&1!==i.hType;)i=i.nextSibling;i?this.root.addOperation(0,[this.component.targetId,e.component.targetId,i.component.targetId]):this.root.addOperation(2,[this.component.targetId,e.component.targetId])}}else this.appendChild(e)},e.prototype.removeChild=function(e){var t=e.parent,n=e.nextSibling,o=e.previousSibling;n?(n.previousSibling=o,e.nextSibling=null):t.lastChild=o,o?(o.nextSibling=n,e.previousSibling=null):t.firstChild=n,e.parent=null,1===e.hType&&this.root.addOperation(1,[t.component.targetId,e.component.targetId])},e.prototype.destroy=function(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.component=null},e}();function Iu(e,t){var n=t.nextSibling,o=t.previousSibling;n?(n.previousSibling=o,t.nextSibling=null):e.lastChild=o,o?(o.nextSibling=n,t.previousSibling=null):e.firstChild=n,t.parent=null}var xu=function(){function e(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.hType=0}return e.prototype.destroy=function(){this.parent=null,this.previousSibling=null,this.nextSibling=null},e}();function Pu(e,t,n){for(var o=t.firstChild;o;){var r=o.component,i=o.isDirty,a=o.isNew;r&&e.addOperation(2,[t.component.targetId,r.targetId]),i&&(o.isDirty=!1),a&&(o.isNew=!1),o=o.nextSibling}for(o=t.firstChild;o;){(r=o.component)&&Pu(e,o),o=o.nextSibling}}function ku(e,t){for(var n=e.firstChild;n;){var o=n.component;o&&(t.push(o),ku(n,t)),n=n.nextSibling}}function Eu(e,t,n){for(var o,r=e.firstChild;r;)(o=r.component)&&r.isDirty&&(t||(r.isDirty=!1),r.isNew&&(t||(r.isNew=!1),n.push(o)),Eu(r,t,n)),r=r.nextSibling}!function(e){function n(t){var n=e.call(this,t)||this;return n.root=n,n.operations=[],n.lastOperation=null,ou[15]&&(n.createComment=n.createCommentWithText,n.cloneComment=n.cloneCommentWithText),n}t(n,e),n.prototype.createComment=function(e){return new xu},n.prototype.cloneComment=function(e){return new xu},n.prototype.addOperation=function(e,t){var n=this.lastOperation;if(n&&n[0]===e)n[1].push(t);else{var o=this.lastOperation=[e,[t]];this.operations.push(o)}},n.prototype.getAllOperations=function(){return this.operations=[],this.lastOperation=null,Pu(this,this,this.operations),this.operations},n.prototype.getNewOperations=function(){var e=this.operations;return this.operations=[],this.lastOperation=null,e},n.prototype.getNewOrderedTargets=function(e){var t=[];return e||(this.isDirty=!1),Eu(this,e,t),t},n.prototype.getAllOrderedTargets=function(){var e=[];return ku(this,e),e},n.prototype.isDocumentDirty=function(){return this.isDirty},n.prototype.createCommentWithText=function(e){var t=new xu;return t.textContent=e||$c(),t},n.prototype.cloneCommentWithText=function(e){var t=new xu;return t.textContent=e.textContent,t}}(_u),function(){function e(e){this.node=e}e.prototype.item=function(e){for(var t=0,n=this.node.firstChild;n;){if(t===e)return n;t++,n=n.nextSibling}},Object.defineProperty(e.prototype,\"length\",{get:function(){for(var e=0,t=this.node.firstChild;t;)e++,t=t.nextSibling;return e},enumerable:!1,configurable:!0})}();var Ou=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getPseudoElements=function(){return this.node,[]},n.prototype.getAttributes=function(e){return{}},n.prototype.getChildNodes=function(e){return function(e){var t=[];if(Qc(e))for(var n=e.firstChild;n;)t.push(n),n=n.nextSibling;return t}(e)},n.prototype.getNodeName=function(e){return Qc(e)?e.tagName:\"unknown\"},n}(Lo);function Mu(e,t,n,o,r){return i(this,void 0,void 0,(function(){var e,i,s,c;return a(this,(function(a){switch(a.label){case 0:return e=[],n.selectors.length>1?(s=(i=e.push).apply,c=[e],[4,t.testAll(n.selectors,o)]):[3,2];case 1:return s.apply(i,c.concat([a.sent()])),[3,3];case 2:e.push(0),a.label=3;case 3:return[2,{matchingSelectors:e,rule:{origin:\"regular\",selectorList:{selectors:n.selectors.map((function(e){return{range:r?{endColumn:n.source.start.column+n.selector.length-1,endLine:n.source.start.line-1,startColumn:n.source.start.column-1,startLine:n.source.start.line-1}:void 0,text:e}})),text:n.selector},style:Ri(n,r),styleSheetId:r}}]}}))}))}var Nu=function(){function e(e){this.doc=e,this.map={}}return e.prototype.elementMatches=function(e,t){var n=this;return t in this.map?o(this.map[t]):new Promise((function(e,r){n.doc.querySelectorEnhanced([{selector:{type:\"all\",value:t},option:{id:!1,rect:!1,size:!1,scrollOffset:!1,computedStyle:[],toImage:!1}}],(function(i,a){if(i)r(i);else{if(!a)return e(!1),void(n.map[t]=null);var s=a[0]||[];n.map[t]=s,e(o(s))}}))}));function o(t){for(var n=0,o=t;n<o.length;n++){if(o[n].node===e.root)return!0}}},e.prototype.testAll=function(e,t){return i(this,void 0,void 0,(function(){var n,o=this;return a(this,(function(r){switch(r.label){case 0:return n=[],[4,Promise.all(e.map((function(e,r){return i(o,void 0,void 0,(function(){return a(this,(function(o){switch(o.label){case 0:return[4,this.elementMatches(t,e)];case 1:return o.sent()&&n.push(r),[2]}}))}))})))];case 1:return r.sent(),[2,n]}}))}))},e}();function Tu(e,t){var n=e.createElement(\"style\");return n.textContent=t,e.head.appendChild(n),n}var Au=function(e,t,n){return i(void 0,void 0,void 0,(function(){var o,r,i,s=this;return a(this,(function(a){switch(a.label){case 0:for(o=[],r=function(r){if(r in e){var i=Promise.resolve(e[r]).then((function(o){return t.call(n||s,o,r,e)}));o.push(i)}},i=0;i<e.length;i++)r(i);return[4,Promise.all(o)];case 1:return a.sent(),[2]}}))}))};function Du(e,t,n){var o=e.createElement(t);return n&&(o.className=n),o}function Ru(e,t,n){t.insertBefore(e,n)}function Lu(e,t){t.appendChild(e)}function Bu(e){e.parentNode.removeChild(e)}var ju=new Map,Fu=new Map;function zu(e){var t=e.hasAttribute(\"data-page-path\"),n=e.hasAttribute(\"data-exter-class\");if(t||n){var o=bc(e.textContent);return\"\".concat(t,\"-\").concat(o.slice(0,8))}return\"empty\"}function Uu(e,t){for(var n=new Map,o=function(e){for(var t=[],n=e.head.firstChild;n;)Qc(n)&&\"style\"===n.tagName.toLowerCase()&&t.push(n),n=n.nextSibling;for(var o=[],r=0,i=t;r<i.length;r++){var a=i[r];if(a.textContent){var s=zu(a);o.push({hash:s,node:a})}}return{usedStylesSheets:o}}(e).usedStylesSheets,r=0;r<o.length;r++){var i=o[r];try{var a=i.node,s=i.hash;if(!ju.has(s)||t){var c=a.textContent,u=Ti.parse(c),l=a.getAttribute(\"data-stylesheet-id\");l||(l=\"1000.\".concat(ju.size)),ju.set(s,{ownerNode:a,postCSSRoot:u,styleSheetId:l,hash:s}),a.setAttribute(\"data-stylesheet-id\",l);var d=Fu.get(l);d&&ju.delete(d),Fu.set(l,s)}n.set(s,ju.get(s))}catch(e){console.warn(e)}}return n}function Hu(e){var t=Fu.get(e);if(t)return ju.get(t)}function Vu(e){var t=e.postCSSRoot,n=e.ownerNode,o=e.styleSheetId;return{disabled:!1,endColumn:t.last?t.last.source.end.column-1:0,endLine:t.last?t.last.source.end.line-1:0,frameId:\"MOCK_FRAME_ID\",isInline:!0,length:n.textContent.length,origin:\"regular\",sourceURL:\"\",startColumn:t.first?t.first.source.start.column-1:0,startLine:t.first?t.first.source.start.line-1:0,styleSheetId:o,title:\"\",sourceMapURL:\"\"}}function Wu(e,t){return i(this,void 0,void 0,(function(){var n=this;return a(this,(function(o){switch(o.label){case 0:return[4,Au(Array.from(Uu(e).values()),(function(e){var o=e.postCSSRoot,r=e.styleSheetId;return i(n,void 0,void 0,(function(){var e=this;return a(this,(function(n){switch(n.label){case 0:return o.nodes?[4,Au(o.nodes,(function(n){return i(e,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return\"rule\"!==n.type?[3,2]:[4,t(n,r)];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))}))];case 1:return o.sent(),[2]}}))}))}function Gu(e,t){return i(this,void 0,void 0,(function(){var n,o,r,s,c=this;return a(this,(function(u){switch(u.label){case 0:return n={matchedCSSRules:[],pseudoElements:[]},(o=Qi(t))&&(n.inlineStyle=o),t.node?(r=t.node,s=new Nu(e),[4,Wu(e,(function(e,t){return i(c,void 0,void 0,(function(){var o,i,c;return a(this,(function(a){switch(a.label){case 0:return o=e.selector,[4,s.elementMatches(r,o)];case 1:return a.sent()?(c=(i=n.matchedCSSRules).push,[4,Mu(0,s,e,r,t)]):[3,3];case 2:return c.apply(i,[a.sent()]),[3,3];case 3:return[2]}}))}))}))]):[3,2];case 1:u.sent(),u.label=2;case 2:try{n.matchedCSSRules=Bi(n.matchedCSSRules)}catch(e){}return[2,n]}}))}))}function Zu(e){return e.replace(/^['\"]|['\"]$/g,\"\")}function qu(e,t,n,o){var r=Tu(e,o),i=n.attributes;if(i)for(var a=i,s=0;s<a.length;s++){var c=a.item(s);c&&r.setAttribute(c.name,c.value)}!function(e,t){var n=Hu(e);if(n)try{var o=zu(t);ju.set(o,{ownerNode:t,postCSSRoot:Ti.parse(t.textContent),styleSheetId:e,hash:o}),Fu.set(e,o)}catch(o){var r=n.hash;ju.set(r,{ownerNode:t,postCSSRoot:Ti.parse(\"\"),styleSheetId:e,hash:r}),console.warn(o)}}(t,r),Bu(n)}var Yu=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getComputedStyleForNode:function(e,t,n){var o,r,i=t.nodeId,a=e.nodeId2ZNode.get(i),s=e.nodeId2DOMNode.get(i),c=e.nodeId2PseudoElement.get(i),u=e.getClientProxy().platform.getDocument();a&&a.nodeType===qt.Element?o=a.getPlatformRootDOM():s&&1===s.nodeType&&Qc(s.node)?o=s.node:c&&Qc(c.root)&&(o=c.root,r=c.pseudoType),u.getComputedStyle&&o?u.getComputedStyle(o,r?\"::\".concat(r):null,(function(e,t){var o=t||{},r=Object.keys(o);n(null,{computedStyle:r.filter((function(e){return\"string\"==typeof o[e]})).map((function(e){return{name:e,value:o[e]}}))})})):n(null,{computedStyle:[]})},getInlineStylesForNode:function(e,t,n){var o,r=t.nodeId,i=e.nodeId2ZNode.get(r);i&&i.nodeType===qt.Element&&(o=Qi(i)),o?n(null,{inlineStyle:o}):n(-32e3)},getMatchedStylesForNode:function(e,t,n){return i(this,void 0,void 0,(function(){var o,r,i,s;return a(this,(function(a){switch(a.label){case 0:return o=t.nodeId,r=e.nodeId2ZNode.get(o),i=e.getClientProxy().platform.getDocument(),s={matchedCSSRules:[]},r&&r.nodeType===qt.Element?[4,Gu(i,r)]:[3,2];case 1:s=a.sent(),a.label=2;case 2:return n(null,s),[2]}}))}))},getStyleSheetText:function(e,t,n){var o=\"\",r=Hu(t.styleSheetId);r&&(o=r.ownerNode.textContent),n(null,{text:o})},setStyleTexts:function(e,t,n){var o=[];t.edits.forEach((function(t){var n=t.styleSheetId,r=\"2000.\";if(0===n.indexOf(r)){var i=Number(n.replace(r,\"\")),a=e.nodeId2ZNode.get(i);if(a&&a.nodeType===qt.Element){a.updateInlineStyle(t.text);var s=Qi(a);s&&o.push(s),e.getZRuntimeHelper().X(a.node,a.getLinkedContext(),a.getClassName()||\"\",!1,a.getInlineStyle(),!0,a.getProperties(),{},2),e.flushUpdatedQueue()}}else{t.range.startLine+=1,t.range.startColumn+=1;var c=function(e,t,n,o){var r=Hu(t);if(r){var i;try{i=Ti.parse(o)}catch(e){return void console.warn(\"setStyleTexts4StyleSheet parse text error\",e)}var a,s=n.startLine,c=n.startColumn,u=r.postCSSRoot,l=r.ownerNode;return(u.nodes||[]).some((function(n,o){if(\"rule\"!==n.type)return!1;if(n.source&&n.source.start&&n.source.end&&(s>n.source.start.line||s===n.source.start.line&&c>=n.source.start.column)&&(s<n.source.end.line||s===n.source.end.line&&c<=n.source.end.column)){try{n.nodes=i.nodes,n.raws.semicolon=i.raws.semicolon,qu(e,t,l,u.toString());var r=(Hu(t)||{}).postCSSRoot;a=Ri(r.nodes[o],t)}catch(e){console.warn(e)}return!0}})),a}}(e.getClientProxy().platform.getDocument(),n,t.range,t.text);c&&o.push(c)}})),n(null,{styles:o})}}),Qu=Jt,Xu=$t;var Ku=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},getDocument:function(e,t,n){Kt(e,0,n);var o=e.getClientProxy().platform.getDocument();Uu(o).forEach((function(t){e.sendMessageWithPriority(\"CSS.styleSheetRemoved\",{styleSheetId:t.styleSheetId}),e.sendMessageWithPriority(\"CSS.styleSheetAdded\",{header:Vu(t)});var n=t.ownerNode;Object.getOwnPropertyDescriptor(n,\"textContent\")||Object.defineProperty(n,\"textContent\",{get:function(){return function(e){return e.textContent}(n)},set:function(r){var i=t.styleSheetId,a=qu(o,i,n,r);return e.sendMessage(\"CSS.styleSheetRemoved\",{styleSheetId:i}),e.sendMessage(\"CSS.styleSheetAdded\",{header:Vu(t)}),a},configurable:!0})}))},getOuterHTML:function(e,t,n){var o=t.nodeId,r=e.nodeId2ZNode.get(o);r?n(null,{outerHTML:r.getOuterAXML()}):n(-32e3,{message:\"node with nodeId(\".concat(o,\") not found\")})},markUndoableState:function(e,t,n){n(null,{})},pushNodesByBackendIdsToFrontend:Qu,requestChildNodes:Xu,setAttributesAsText:function(e,t,n){var o,r,i=t.nodeId,a=t.text,s=t.name,c=e.nodeId2ZNode.get(i);if(c&&c.nodeType===qt.Element){var u=c,l=(r={},a.trim().split(/\\s+/).map((function(e){return e.split(\"=\")})).forEach((function(e){var t=e[0],n=e[1];t=Zu(t.trim()),n=Zu(n.trim()),t&&(r[t]=n)})),r),d=u.getClassName(),p=!1,h=u.getInlineStyle(),f=!1;if(\"class\"===s&&l.class!==d&&(d=l.class,p=!0,u.updateClassName(d)),\"style\"===s&&l.style!==h&&(h=l.style,f=!0,u.updateInlineStyle(h)),p||f)return e.getZRuntimeHelper().X(u.node,u.getLinkedContext(),d||\"\",p,h||\"\",f,u.getProperties(),{},3),void e.flushUpdatedQueue();var g=\"data-\";if(0===s.indexOf(g)){var m=s.replace(g,\"\"),v=u.getDataset().get(m),y=l[s];switch(typeof v){case\"number\":isNaN(Number(y))||(y=Number(y));break;case\"boolean\":\"true\"===y?y=!0:\"false\"===y&&(y=!1)}if(y!==v){var b=((o={})[m]=y,o);c.node.updateDatasetPartial(b),u.updateDataset(b)}}u.invalidate()}n(null,{})},setNodeName:function(e,t,n){n(-32e3)},setNodeValue:function(e,t,n){var o=t.nodeId,r=t.value,i=e.nodeId2ZNode.get(o);if(i&&i.nodeType===qt.Text)return i.dom.node.textContent=r,n(null,{}),void e.sendMessage(\"DOM.characterDataModified\",{characterData:r,nodeId:o});n(-32e3,{})}});var Ju=Object.freeze({__proto__:null,enable:function(e,t,n){n(null,{})},hideHighlight:function(e,t,n){e.getOverlayManager().hidehighlight(),n(null,{})},highlightNode:function(e,t,n){var o=t.nodeId,r=t.highlightConfig,i=t.selector,a=e.nodeId2ZNode.get(o),s=e.nodeId2DOMNode.get(o);if(i)n(null,{});else{if(a){if(a.nodeType===qt.Element)1===(c=a.getPlatformRootDOM()).nodeType&&e.getOverlayManager().highlightNode(a.getPlatformRootDOM(),r);else if(a.nodeType===qt.Component){var c,u=a.getChildNodes();if(1===u.length&&u[0].nodeType===qt.Element)1===(c=u[0].getPlatformRootDOM()).nodeType&&e.getOverlayManager().highlightNode(c,r)}}else s?1===s.nodeType&&e.getOverlayManager().highlightNode(s.node,r):e.getOverlayManager().hidehighlight();n(null,{})}},setInspectMode:function(e,t,n){var o=t.mode,r=t.highlightConfig;\"none\"===o?e.getOverlayManager().leaveInspectMode():e.getOverlayManager().enterInspectMode(r),n(null,{})}}),$u=ko,el=Object.freeze({__proto__:null,getComponentData:$u}),tl=Object.freeze({__proto__:null,Elements:el}),nl=Object.freeze({__proto__:null,CSS:Yu,DOM:Ku,Overlay:Ju,Tiny:tl});function ol(e,t){if(\"rgb\"===t){var n=e[0],o=e[1],r=e[2],i=e[3];return\"rgb(\".concat((255*n).toFixed(),\" \").concat((255*o).toFixed(),\" \").concat((255*r).toFixed()).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}if(\"hsl\"===t){var a=function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=Math.max(t,n,o),a=Math.min(t,n,o),s=i-a,c=i+a,u=.5*c;return[a===i?0:t===i?(1/6*(n-o)/s+1)%1:n===i?1/6*(o-t)/s+1/3:1/6*(t-n)/s+2/3,0===u||1===u?0:u<=.5?s/c:s/(2-c),u,r]}(e),s=a[0],c=a[1],u=a[2];i=a[3];return\"hsl(\".concat(Math.round(360*s),\"deg \").concat(Math.round(100*c),\" \").concat(Math.round(100*u)).concat(1===i?\"\":\" / \"+Math.round(100*i)/100,\")\")}throw new Error(\"NOT_REACHED\")}function rl(e,t,n){return e<t?e=t:e>n&&(e=n),e}function il(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var al=function(){function e(){this.styleDeclaration=Se()}return e.prototype.getNodeStyleDeclaration=function(e){var t=this.styleDeclaration.get(e);return t||(t=new cl(e),this.styleDeclaration.set(e,t)),t},e}(),sl=new al,cl=function(){function e(e){this.node=e,this.styleDeclaration={},this.isBatching=!1}return e.prototype.batching=function(){this.isBatching=!0},e.prototype.endBatching=function(){this.isBatching=!1,this.setStyleDeclaration()},e.prototype.setProperty=function(e,t,n){this.styleDeclaration[e]=\"important\"===n?\"\".concat(t,\"!important\"):t,this.setStyleDeclaration()},e.prototype.removeProperty=function(e){delete this.styleDeclaration[e],this.setStyleDeclaration()},e.prototype.setStyle=function(e){this.styleDeclaration=function(e){var t={};return e.trim().split(\";\").forEach((function(e){var n=e.split(\":\"),o=n[0],r=n[1],i=o.trim(),a=r.trim();i&&a&&(t[i]=a)})),t}(e),this.setStyleDeclaration()},e.prototype.setStyleDeclaration=function(){this.isBatching||(this.node.style=function(e){var t=[];for(var n in e)t.push(\"\".concat(n,\": \").concat(e[n]));return t.join(\";\")}(this.styleDeclaration))},e}();var ul,ll,dl=function(){function e(e){void 0===e&&(e=!0),this.autoRun=e,this.pendingTasks=[],this.state=0}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.pendingTasks.push((function(n){e.apply(void 0,c([n],t,!1))})),this.autoRun&&this.run()},e.prototype.run=function(){0===this.state&&this.pendingTasks.length&&this.runTask()},e.prototype.runTask=function(){var e=this,t=this.pendingTasks.shift();if(t){this.state=1;try{t({done:function(){return e.runnableFinish()}})}catch(e){console.error(\"exec runnable error\",e),this.runnableFinish()}}else this.runnableFinish()},e.prototype.runnableFinish=function(){this.pendingTasks.length?this.runTask():this.state=0},e}(),pl=new dl(!0);function hl(e,t,n){-1===(n=n||(e.className||\"\").trim().split(/\\s+/)).indexOf(t)&&(n.push(t),e.className=n.join(\" \"))}function fl(e,t,n){var o=(n=n||(e.className||\"\").trim().split(/\\s+/)).filter((function(e){return e!==t}));e.className=o.join(\" \")}function gl(e,t,n){if(!0===n)return hl(e,t);if(!1===n)return fl(e,t);var o=(e.className||\"\").trim().split(/\\s+/);-1===o.indexOf(t)?hl(e,t,o):fl(e,t,o)}function ml(e,t){var n,o,r,i,a,s,c=function(){pl.add((function(e){var t=e.done;a&&function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(a),t()}))};function u(t,n){var o=Du(e.doc,\"div\",\"element-info\"),r=Sl(e.doc,o,\"div\",\"element-info-header\"),i=function(e){if(e.layoutObjectName&&e.layoutObjectName.endsWith(\"Grid\"))return\"grid\";if(e.layoutObjectName&&\"LayoutNGFlexibleBox\"===e.layoutObjectName)return\"flex\";return null}(t);i&&Sl(e.doc,r,\"div\",\"element-layout-type \".concat(i));var a=Sl(e.doc,r,\"div\",\"element-description monospace\"),s=Sl(e.doc,a,\"text\",\"material-tag-name\");_l(e.doc,s,t.tagName);var c=Sl(e.doc,a,\"text\",\"material-node-id\"),u=t.idValue?\"#\"+Cl(t.idValue,80):\"\";_l(e.doc,c,u),gl(c,\"hidden\",!t.idValue);var l=Sl(e.doc,a,\"text\",\"material-class-name\");u.length<80&&_l(e.doc,l,Cl(t.className||\"\",80-u.length)),gl(l,\"hidden\",!t.className);var d=Sl(e.doc,r,\"div\",\"dimensions\");_l(e.doc,Sl(e.doc,d,\"text\",\"material-node-width\"),String(Math.round(100*t.nodeWidth)/100)),_l(e.doc,d,\"×\"),_l(e.doc,Sl(e.doc,d,\"text\",\"material-node-height\"),String(Math.round(100*t.nodeHeight)/100));var p,h=t.style||{},f=h.color;f&&\"#00000000\"!==f&&C(\"Color\",f,n);var g=h[\"font-family\"],m=h[\"font-size\"];g&&\"0px\"!==m&&S(\"Font\",\"\".concat(m,\" \").concat(g));var v=h[\"background-color\"];v&&\"#00000000\"!==v&&C(\"Background\",v,n);var y=h.margin;y&&\"0px\"!==y&&S(\"Margin\",y);var b=h.padding;function w(t,n,r){p||(p=Sl(e.doc,o,\"div\",\"element-info-body\"));var i=Sl(e.doc,p,\"div\",\"element-info-row\");n&&hl(i,n);var a=Sl(e.doc,i,\"div\",\"element-info-name\");return _l(e.doc,a,t),Sl(e.doc,i,\"div\",\"element-info-gap\"),Sl(e.doc,i,\"div\",r||\"\")}function S(t,n){_l(e.doc,w(t,\"\",\"element-info-value-text\"),n)}function C(t,n,o){var r=w(t,\"\",\"element-info-value-color\"),i=Sl(e.doc,r,\"div\",\"color-swatch\");Sl(e.doc,i,\"div\",\"color-swatch-inner\").style=\"background-color: \".concat(n,\";\"),_l(e.doc,r,function(e,t){if(\"rgb\"===t||\"hsl\"===t)return ol(function(e){return(e.match(/#(\\w\\w)(\\w\\w)(\\w\\w)(\\w\\w)/)||[]).slice(1).map((function(e){return parseInt(e,16)/255}))}(e),t);if(e.endsWith(\"FF\"))return e.substr(0,7);return e}(n,o))}return b&&\"0px\"!==b&&S(\"Padding\",b),o}var l=function(t){pl.add((function(n){var o,r,i,c,l=n.done;if(t.elementInfo&&0===Object.keys(t.elementInfo).length)l();else{t.platform&&hl(a,\"platform-\".concat(t.platform));var d=null!==(o=t.elementInfo.nodeLeft)&&void 0!==o?o:Number.MAX_VALUE,p=null!==(r=t.elementInfo.nodeTop)&&void 0!==r?r:Number.MAX_VALUE,h=null!==(i=t.elementInfo.nodeLeft+t.elementInfo.nodeWidth)&&void 0!==i?i:-Number.MAX_VALUE,f=null!==(c=t.elementInfo.nodeTop+t.elementInfo.nodeHeight)&&void 0!==c?c:-Number.MAX_VALUE,g=Sl(e.doc,a,\"div\"),m=Sl(e.doc,g,\"div\",\"tooltip-content\"),v=u(t.elementInfo,t.colorFormat);m.appendChild(v);var y=il(e.doc.documentElement.clientWidth,4),b=il(e.doc.documentElement.clientHeight,4);m.getBoundingClientRect((function(t,n){if(t)l();else{var o,r=n.width,i=n.height,a=10,c=y-2-a-16;if(h-d<36)o=.5*(d+h)-8;else{var u=d+a;o=u>12&&u<c?u:rl(12,u,h-a-16)}var g=o<12||o>c,v=o-a;v=rl(v,2,y-r-2),w=function(e,t){var n=p-8-i,a=!0;n<e?(n=Math.min(b-i,f+8),a=!1):p>b&&(n=b-8-i-t);var s=v>=d&&v+r<=h&&n>=p&&n+i<=f;if(v<h&&v+r>d&&n<f&&n+i>p&&!s)return m.style=\"display: none;\",void l();var c=\"top: \".concat(n,\"px; left: \").concat(v,\"px; --arrow-visibility: \").concat(g||s?\"hidden\":\"visible\",\";\");if(g)return m.style=c,void l();c+=\"--arrow: \".concat(a?\"var(--arrow-down)\":\"var(--arrow-up)\",\"; --shadow-direction: \").concat(a?\"var(--shadow-up)\":\"var(--shadow-down)\",\";--arrow-top: \").concat(a?i-2:-8,\"px; --arrow-left: \").concat(o-v,\"px;\"),m.style=c,l()},void 0===ul||void 0===ll?e.doc.getComputedStyle?e.doc.getComputedStyle(s,null,(function(e,t){if(!e){var n=t.paddingTop;if(n){var o=Number(n.slice(0,-2));isNaN(o)||(ul=o)}var r=t.paddingBottom;r&&(o=Number(r.slice(0,-2)),isNaN(o)||(ll=o))}w(ul,ll)})):w(ul=0,ll=0):w(ul,ll)}var w}))}}))};return{c:function(){n=Du(e.doc,\"div\"),o=Du(e.doc,\"div\"),r=Du(e.doc,\"div\"),i=Du(e.doc,\"div\"),(a=Du(e.doc,\"div\")).id=\"tinybugme-tooltip-container\",s=Du(e.doc,\"div\",\"safe-area-node\"),this.h()},h:function(){var e=sl.getNodeStyleDeclaration(i);e.batching(),e.setProperty(\"background-color\",t.content.color),e.setProperty(\"box-sizing\",\"border-box\"),e.setProperty(\"height\",\"100%\"),e.setProperty(\"width\",\"100%\"),e.endBatching();var a=sl.getNodeStyleDeclaration(r);a.batching(),a.setProperty(\"border-color\",t.padding.color),a.setProperty(\"border-bottom-width\",t.padding.bottom),a.setProperty(\"border-left-width\",t.padding.left),a.setProperty(\"border-right-width\",t.padding.right),a.setProperty(\"border-top-width\",t.padding.top),a.setProperty(\"border-style\",\"solid\"),a.setProperty(\"box-sizing\",\"border-box\"),a.setProperty(\"height\",\"100%\"),a.setProperty(\"width\",\"100%\"),a.endBatching();var s=sl.getNodeStyleDeclaration(o);s.batching(),s.setProperty(\"border-color\",t.border.color),s.setProperty(\"border-bottom-width\",t.border.bottom),s.setProperty(\"border-left-width\",t.border.left),s.setProperty(\"border-right-width\",t.border.right),s.setProperty(\"border-top-width\",t.border.top),s.setProperty(\"border-style\",\"solid\"),s.setProperty(\"box-sizing\",\"border-box\"),s.setProperty(\"height\",t.rect.height),s.setProperty(\"width\",t.rect.width),s.endBatching();var u=sl.getNodeStyleDeclaration(n);u.batching(),u.setProperty(\"border-color\",t.margin.color),u.setProperty(\"border-bottom-width\",t.margin.bottom),u.setProperty(\"border-left-width\",t.margin.left),u.setProperty(\"border-right-width\",t.margin.right),u.setProperty(\"border-top-width\",t.margin.top),u.setProperty(\"border-style\",\"solid\"),u.setProperty(\"box-sizing\",\"border-box\"),u.setProperty(\"left\",t.rect.left),u.setProperty(\"position\",\"fixed\"),u.setProperty(\"top\",t.rect.top),u.setProperty(\"z-index\",\"999999\"),u.setProperty(\"display\",t.show?\"block\":\"none\"),u.setProperty(\"pointer-events\",\"none\"),u.endBatching(),c(),l(t)},m:function(e,t){Ru(s,e,t),Ru(n,e,t),Lu(o,n),Lu(r,o),Lu(i,r),Ru(a,e,t)},p:function(e,t){e.content&&sl.getNodeStyleDeclaration(i).setProperty(\"background-color\",t.content.color);if(e.padding){var a=sl.getNodeStyleDeclaration(r);a.batching(),a.setProperty(\"border-color\",t.padding.color),a.setProperty(\"border-bottom-width\",t.padding.bottom),a.setProperty(\"border-left-width\",t.padding.left),a.setProperty(\"border-right-width\",t.padding.right),a.setProperty(\"border-top-width\",t.padding.top),a.endBatching()}var s=sl.getNodeStyleDeclaration(o);s.batching(),e.border&&(s.setProperty(\"border-color\",t.border.color),s.setProperty(\"border-bottom-width\",t.border.bottom),s.setProperty(\"border-left-width\",t.border.left),s.setProperty(\"border-right-width\",t.border.right),s.setProperty(\"border-top-width\",t.border.top)),e.rect&&(s.setProperty(\"height\",t.rect.height),s.setProperty(\"width\",t.rect.width)),s.endBatching();var u=sl.getNodeStyleDeclaration(n);u.batching(),e.margin&&(u.setProperty(\"border-color\",t.margin.color),u.setProperty(\"border-bottom-width\",t.margin.bottom),u.setProperty(\"border-left-width\",t.margin.left),u.setProperty(\"border-right-width\",t.margin.right),u.setProperty(\"border-top-width\",t.margin.top)),e.rect&&(u.setProperty(\"left\",t.rect.left),u.setProperty(\"top\",t.rect.top)),u.endBatching(),e.elementInfo&&(c(),l(t)),e.show&&(u.setProperty(\"display\",t.show?\"block\":\"none\"),t.show||c())},u:function(){Bu(n)},d:yl}}var vl=function(){function e(e){this.options=e,this._handlers=Object.create(null),this._bind=e._bind,this.options=e,this.root=e.root||this,this.store=this.root.store||e.store,this.doc=e.doc,this.target=e.target,this._state=bl({},e.data),this._fragment=ml(this,this._state),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor));for(var t=0,n=['\\nbody {\\n --arrow-width: 15px;\\n --arrow-height: 8px;\\n --shadow-up: 5px;\\n --shadow-down: -5px;\\n --shadow-direction: var(--shadow-up);\\n --arrow-down: polygon(0 0, 100% 0, 50% 100%);\\n --arrow-up: polygon(50% 0, 0 100%, 100% 100%);\\n}\\n#tinybugme-tooltip-container {\\n margin: 0px;\\n padding: 0px;\\n font-size: 13px;\\n inset: 0px;\\n z-index: 100000000000;\\n pointer-events: none;\\n position: fixed;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n}\\n#tinybugme-tooltip-container.platform-android {\\n font-family: Roboto, Ubuntu, Arial, sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ios {\\n color: rgb(48 57 66);\\n font-family: \"-apple-system-font\", \"Helvetica Neue\", \"Lucida Grande\", sans-serif;\\n}\\n#tinybugme-tooltip-container.platform-ide {\\n font-family: \"Helvetica Neue\", \"Lucida Grande\", \"Segoe UI\", Tahoma, sans-serif;\\n}\\n#tinybugme-tooltip-container .px {\\n color: rgb(128 128 128);\\n}\\n#tinybugme-tooltip-container #element-title {\\n position: absolute;\\n z-index: 100000000001;\\n}\\n#tinybugme-tooltip-container .tooltip-content {\\n position: absolute;\\n user-select: none;\\n background-color: #fff;\\n padding: 5px 8px;\\n border: 1px solid #fff;\\n border-radius: 3px;\\n box-sizing: border-box;\\n min-width: 100px;\\n max-width: min(300px, 100% - 4px);\\n z-index: 100000000002;\\n background-clip: padding-box;\\n will-change: transform;\\n text-rendering: optimizeLegibility;\\n pointer-events: none;\\n filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));\\n}\\n#tinybugme-tooltip-container.platform-android .tooltip-content {\\n max-width: 100%;\\n}\\n#tinybugme-tooltip-container .tooltip-content::after {\\n content: \"\";\\n background: #fff;\\n width: var(--arrow-width);\\n height: var(--arrow-height);\\n clip-path: var(--arrow);\\n position: absolute;\\n top: var(--arrow-top);\\n left: var(--arrow-left);\\n visibility: var(--arrow-visibility);\\n}\\n#tinybugme-tooltip-container .element-info-section {\\n margin-top: 12px;\\n margin-bottom: 6px;\\n}\\n#tinybugme-tooltip-container .section-name {\\n color: #333;\\n font-weight: 500;\\n font-size: 10px;\\n text-transform: uppercase;\\n letter-spacing: 0.05em;\\n line-height: 12px;\\n}\\n#tinybugme-tooltip-container .element-info {\\n display: flex;\\n flex-direction: column;\\n}\\n#tinybugme-tooltip-container .element-info-header {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-body {\\n display: flex;\\n flex-direction: column;\\n padding-top: 2px;\\n margin-top: 2px;\\n}\\n#tinybugme-tooltip-container .element-info-row {\\n display: flex;\\n line-height: 19px;\\n}\\n#tinybugme-tooltip-container .separator-container {\\n display: flex;\\n align-items: center;\\n flex: auto;\\n margin-left: 7px;\\n}\\n#tinybugme-tooltip-container .separator {\\n border-top: 1px solid #ddd;\\n width: 100%;\\n}\\n#tinybugme-tooltip-container .element-info-name {\\n flex-shrink: 0;\\n color: #666;\\n}\\n#tinybugme-tooltip-container .element-info-gap {\\n flex: auto;\\n}\\n#tinybugme-tooltip-container .element-info-value-color {\\n display: flex;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n}\\n#tinybugme-tooltip-container .a11y-icon {\\n width: 16px;\\n height: 16px;\\n background-repeat: no-repeat;\\n display: inline-block;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast {\\n display: flex;\\n align-items: center;\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .element-info-value-contrast .a11y-icon {\\n margin-left: 8px;\\n}\\n#tinybugme-tooltip-container .element-info-value-icon {\\n display: flex;\\n align-items: center;\\n}\\n#tinybugme-tooltip-container .element-info-value-text {\\n text-align: right;\\n color: rgb(48 57 66);\\n margin-left: 10px;\\n align-items: baseline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n}\\n#tinybugme-tooltip-container .color-swatch {\\n display: flex;\\n margin-right: 2px;\\n width: 10px;\\n height: 10px;\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==\");\\n line-height: 10px;\\n}\\n#tinybugme-tooltip-container .color-swatch-inner {\\n flex: auto;\\n border: 1px solid rgb(128 128 128 / 60%);\\n}\\n#tinybugme-tooltip-container .element-layout-type {\\n margin-right: 10px;\\n width: 16px;\\n height: 16px;\\n}\\n#tinybugme-tooltip-container .element-layout-type.grid {\\n background-image: url(\\'data:image/svg+xml,<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"2.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"9.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/><rect x=\"2.5\" y=\"9.5\" width=\"4\" height=\"4\" stroke=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-layout-type.flex {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 3.5h8v3H1v-3zm-1 0a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm12 0h3v3h-3v-3zm-1 0a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-3zm-7 6H1v3h3v-3zm-3-1a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H1zm6 4v-3h8v3H7zm-1-3a1 1 0 011-1h8a1 1 0 011 1v3a1 1 0 01-1 1H7a1 1 0 01-1-1v-3z\" fill=\"%231A73E8\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .element-description {\\n flex: 1 1;\\n font-weight: bold;\\n word-wrap: break-word;\\n word-break: break-all;\\n}\\n#tinybugme-tooltip-container .dimensions {\\n color: hsl(0deg 0% 45%);\\n text-align: right;\\n margin-left: 10px;\\n}\\n#tinybugme-tooltip-container .material-node-width {\\n margin-right: 2px;\\n}\\n#tinybugme-tooltip-container .material-node-height {\\n margin-left: 2px;\\n}\\n#tinybugme-tooltip-container .material-tag-name {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (--override-dom-tag-name-color) */\\n color: rgb(136 18 128);\\n}\\n#tinybugme-tooltip-container .material-class-name,\\n.material-node-id {\\n /* Keep this in sync with inspectorSyntaxHighlight.css (.webkit-html-attribute-value) */\\n color: rgb(26 26 166);\\n}\\n#tinybugme-tooltip-container .contrast-text {\\n width: 16px;\\n height: 16px;\\n text-align: center;\\n line-height: 16px;\\n margin-right: 8px;\\n border: 1px solid rgb(0 0 0 / 10%);\\n padding: 0 1px;\\n}\\n#tinybugme-tooltip-container .a11y-icon-not-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.315 0-6-2.685-6-6 0-1.3875.4725-2.6625 1.2675-3.675l8.4075 8.4075c-1.0125.795-2.2875 1.2675-3.675 1.2675zm4.7325-2.325-8.4075-8.4075c1.0125-.795 2.2875-1.2675 3.675-1.2675 3.315 0 6 2.685 6 6 0 1.3875-.4725 2.6625-1.2675 3.675z\" fill=\"%239e9e9e\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-warning {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m8.25 11.25h1.5v1.5h-1.5zm0-6h1.5v4.5h-1.5zm.7425-3.75c-4.14 0-7.4925 3.36-7.4925 7.5s3.3525 7.5 7.4925 7.5c4.1475 0 7.5075-3.36 7.5075-7.5s-3.36-7.5-7.5075-7.5zm.0075 13.5c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z\" fill=\"%23e37400\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .a11y-icon-ok {\\n background-image: url(\\'data:image/svg+xml,<svg fill=\"none\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m9 1.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm0 13.5c-3.3075 0-6-2.6925-6-6s2.6925-6 6-6 6 2.6925 6 6-2.6925 6-6 6zm-1.5-4.35-1.95-1.95-1.05 1.05 3 3 6-6-1.05-1.05z\" fill=\"%230ca40c\"/></svg>\\');\\n}\\n#tinybugme-tooltip-container .safe-area-node {\\n display: none;\\n padding-top: env(safe-area-inset-top);\\n padding-right: env(safe-area-inset-right);\\n padding-bottom: env(safe-area-inset-bottom);\\n padding-left: env(safe-area-inset-left);\\n}\\n'];t<n.length;t++){var o=n[t];Tu(this.doc,o)}}return e.prototype._recompute=function(e,t){},e.prototype._differs=function(e,t){return e!=e?t==t:e!==t||e&&\"object\"==typeof e||\"function\"==typeof e},e.prototype._unmount=function(){this._fragment&&this._fragment.u()},e.prototype.destroy=function(e){this.destroy=yl,this.fire(\"destroy\"),this.set=this.get=yl,!1!==e&&this._fragment.u(),this._fragment.d(),this._fragment=this._state=null},e.prototype.get=function(e){return e?this._state[e]:this._state},e.prototype.fire=function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var o=0;o<n.length;o+=1){var r=n[o];r.__calling||(r.__calling=!0,r.call(this,t),r.__calling=!1)}},e.prototype.observe=function(e,t,n){var o=t.bind(this);return n&&!1===n.init||o(this.get()[e],void 0),this.on(n&&n.defer?\"update\":\"state\",(function(t){t.changed[e]&&o(t.current[e],t.previous&&t.previous[e])}))},e.prototype.on=function(e,t){if(\"teardown\"===e)return this.on(\"destroy\",t);var n=this._handlers[e]||(this._handlers[e]=[]);return n.push(t),{cancel:function(){var e=n.indexOf(t);~e&&n.splice(e,1)}}},e.prototype.set=function(e){this._set(bl({},e)),this.root._lock||(this.root._lock=!0,wl(this.root._beforecreate),wl(this.root._oncreate),wl(this.root._aftercreate),this.root._lock=!1)},e.prototype._set=function(e){var t=this._state,n={},o=!1;for(var r in e)this._differs(e[r],t[r])&&(n[r]=o=!0);o&&(this._state=bl(bl({},t),e),this._recompute(n,this._state),this._bind&&this._bind(n,this._state),this._fragment&&(this.fire(\"state\",{changed:n,current:this._state,previous:t}),this._fragment.p(n,this._state),this.fire(\"update\",{changed:n,current:this._state,previous:t})))},e.prototype._mount=function(e,t){this._fragment[this._fragment.i?\"i\":\"m\"](e,t||null)},e}();function yl(){}function bl(e,t){for(var n in t)e[n]=t[n];return e}function wl(e){for(;e&&e.length;)e.shift()()}function Sl(e,t,n,o){if(Qc(t)){var r=Du(e,n,o);return t.appendChild(r),r}}function Cl(e,t){return e.length<=t?String(e):e.substr(0,t-1)+\"…\"}function _l(e,t,n){var o=e.createTextNode(n);return t.appendChild(o),o}function Il(e){if(Qc(e)){var t=function(e){if(e)return e.__zInstance__||e.__zComposite__}(e);if(t)return t}}function xl(e){for(var t=0;e&&t<5;){var n=Il(e);if(n)return n;e=e.parentNode,t++}}var Pl={borderColor:{r:255,g:229,b:153,a:.66},contentColor:{r:111,g:168,b:220,a:.66},marginColor:{r:246,g:178,b:107,a:.66},paddingColor:{r:147,g:196,b:125,a:.55}},kl=function(){function e(e){var t=this;this.doc=e,this.inspectModeHighlightConfig=Pl,this.onWindowScroll=function(){t.currentFocusNode&&t.doHighlightNode(t.currentFocusNode,t.highlightConfig)},this.hidehighlight=this.hidehighlight.bind(this)}return e.initGlobalEventListener=function(){},e.prototype.bindBridge=function(e){this.bridge=e,this.bridge.getClientProxy().renderer.documentInstance.addScrollListener(function(e,t,n,o,r){var i,a,s=null,c=0;r||(r={});var u=function(){c=!1===r.leading?0:Date.now(),s=null,a=ec(e,null,i),i=null};return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var p=Date.now();c||!1!==r.leading||(c=p);var h=t-(p-c);return i=l,h<=0||h>t?(o(s),s=null,c=p,a=ec(e,null,i),i=null):s||!1===r.trailing||(s=n(u,h)),a}}(this.onWindowScroll,16,setTimeout,clearTimeout))},e.prototype.highlightNode=function(e,t){var n=this;void 0===t&&(t={}),this.highlightConfig=t,this.currentFocusNode=e,Qc(e)&&e.getBoundingClientRect((function(o,r){if(!o){if(!r.height&&!r.width)return void n.hidehighlight();n.doHighlightNode(e,t)}}))},e.prototype.hidehighlight=function(){this.highlightConfig=void 0,this.currentFocusNode=void 0,this.overlayComponent&&this.overlayComponent.set({rect:{height:\"0px\",left:\"0px\",top:\"0px\",width:\"0px\"},show:!1})},e.prototype.enterInspectMode=function(e){e&&(this.inspectModeHighlightConfig=e)},e.prototype.leaveInspectMode=function(){this.inspectModeHighlightConfig=Pl},e.prototype.doHighlightNode=function(e,t){var n=this;void 0===t&&(t={}),Qc(e)&&e.getBoundingClientRect((function(r,i){if(!r){var a={},s=xl(e),c=\"unknown\";try{var u=n.bridge.getClientProxy().getClientInfo();c=u.isIDE?\"ide\":u.isIOS?\"ios\":\"android\"}catch(r){}if(t.showInfo&&s){var l=s._debug;if(l){if(a.tagName=l.nodeName.toLowerCase(),l.attrClass){var d=l.attrClass.split(\" \").map((function(e){return e.trim()})).filter(Boolean).join(\".\");d.length>0&&(a.className=\".\".concat(d))}a.idValue=l.attributes.get(\"id\")}a.nodeHeight=il(i.height,4),a.nodeWidth=il(i.width,4),a.nodeLeft=il(i.left,4),a.nodeTop=il(i.top,4),a.style={}}var p={border:{bottom:\"0px\",left:\"0px\",right:\"0px\",top:\"0px\"},boxSizing:\"content-box\",margin:{bottom:\"0px\",left:\"0px\",right:\"0px\",top:\"0px\"},padding:{bottom:\"0px\",left:\"0px\",right:\"0px\",top:\"0px\"}},h=function(e){return e?\"rgba(\".concat(e.r,\", \").concat(e.g,\", \").concat(e.b,\", \").concat(e.a,\")\"):\"transparent\"},f={border:o(o({},p.border),{color:h(t.borderColor)}),content:{color:h(t.contentColor)},elementInfo:a,margin:o(o({},p.margin),{color:h(t.marginColor)}),padding:o(o({},p.padding),{color:h(t.paddingColor)}),platform:c,rect:{height:\"\".concat(i.height,\"px\"),left:\"\".concat(i.left-Number(p.margin.left.slice(0,-2)),\"px\"),top:\"\".concat(i.top-Number(p.margin.top.slice(0,-2)),\"px\"),width:\"\".concat(i.width,\"px\")},show:!0};n.overlayComponent?n.overlayComponent.set(f):n.overlayComponent=new vl({data:f,target:n.doc.body,doc:n.doc})}}))},e}();var El=function(e){function n(t){var o=e.call(this,t)||this;return n.initGlobalEventListener(),o}return t(n,e),n.prototype.highlightNode=function(t,n){if(Qc(t)){var o=xl(t);o&&this.bridge.getZNodeDebugInfo(o),e.prototype.highlightNode.call(this,t,n)}else e.prototype.highlightNode.call(this,t,n)},n.prototype.handleInspectMouseOver=function(e){var t=this,n=e.target;if(1===n.nodeType){this.highlightNode(n,this.inspectModeHighlightConfig);var o=xl(n);if(o){var r=this.bridge.getZNodeDebugInfo(o);if(!r.activated){for(var i=[],a=r.getParentNode();a&&!a.activated;)i.unshift(a),a=a.getParentNode();a&&i.unshift(a),i.forEach((function(e){var n=e.serialize(1);n&&n.children&&t.bridge.sendMessage(\"DOM.setChildNodes\",{nodes:n.children,parentId:n.nodeId})}))}r.nodeId&&this.bridge.sendMessage(\"Overlay.nodeHighlightRequested\",{nodeId:r.nodeId})}}},n.prototype.handleInspectClick=function(e){this.hidehighlight(),this.leaveInspectMode();var t=e.target;if(1===t.nodeType){var n=xl(t);if(n){var o=this.bridge.getZNodeDebugInfo(n);this.bridge.sendMessage(\"Overlay.inspectNodeRequested\",{backendNodeId:o.nodeId})}}},n}(kl),Ol=function(e){function n(t){var n=e.call(this,t)||this;return n.option.connection.onMessage((function(e,t,o){var r=e.split(\".\"),i=n.getMessageHandler(r);i&&i(n,t,o)})),n}return t(n,e),n.prototype.getClientProxy=function(){return this.option.clientProxy},n.prototype.getOverlayManager=function(){return this.overlayManager||(this.overlayManager=new El(this.getClientProxy().platform.getDocument()),this.overlayManager.bindBridge(this)),this.overlayManager},n.prototype.enableShadowRootElements=function(){e.prototype.enableShadowRootElements.call(this)},n.prototype.getMessageHandler=function(e){for(var t=nl,n=0,o=e;n<o.length;n++){if(!(t=t[o[n]]))break}return t},n}(Fo);function Ml(e,t,n){var o=new Ol({clientProxy:e,connection:n,debugProxy:t,dependencyFactory:{createDOMElement:function(e,t,n,o,r){return new Ou(e,t,n,o,r)},createZNodeElement:function(e,t,n,o,r,i){return new Xs(e,t,n,o,r,i)}}});return wo(o),function(e,t){var n=t.h,o=Qs.$ZElementLocationResolver=new qs(e,t);t.L||(t.L=function(){}),Co(t,\"L\",o.overwriteLocation),So(n,\"e\",o.bindZElement),Co(n,\"c\",o.bindZComponent)}(o,t.getZRuntime()),o}var Nl,Tl=\"starlinkgw.alipay.com/boatman\",Al={http:\"https://\".concat(Tl),websocket:\"wss://\".concat(Tl)},Dl=function(){function e(){}return e.prototype.getChannelIdFromStartupParams=function(e){return e.channelId},e.prototype.getChannelFromStartupParams=function(e){var t=e.channel;if(t)return t},e.prototype.getChannelId=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return e=this.getChannelIdFromStartupParams,[4,_e()];case 1:return[2,e.apply(this,[t.sent()])]}}))}))},e.prototype.getChannelIdSync=function(){return this.getChannelIdFromStartupParams(Ie())},e.prototype.getChannel=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return e=this.getChannelFromStartupParams,[4,_e()];case 1:return[2,e.apply(this,[t.sent()])]}}))}))},e.prototype.getChannelSync=function(){return this.getChannelFromStartupParams(Ie())},e.prototype.resolveExternalStateAsync=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,Promise.all([this.resolveChannelId(),this.resolveChannel()])]}))}))},e.prototype.resolveChannelIdSync=function(){return this.channelId=this.getChannelIdSync(),F(\"[boatman] resolve channel id sync\",this.channelId),this.channelId},e.prototype.resolveChannelId=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.channelId=this.resolveChannelIdSync(),this.channelId||!this.getChannelId?[3,2]:(e=this,[4,this.getChannelId()]);case 1:e.channelId=t.sent(),t.label=2;case 2:return F(\"[boatman] resolved channelId\",this.channelId),[2,this.channelId]}}))}))},e.prototype.resolveChannelSync=function(){return this.channel=this.getChannelSync(),F(\"[boatman] resolveChannelSync resolved channel\",this.channel),this.channel},e.prototype.resolveChannel=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.channel=this.resolveChannelSync(),this.channel||!this.getChannel?[3,2]:(e=this,[4,this.getChannel()]);case 1:e.channel=t.sent(),t.label=2;case 2:return F(\"[boatman] resolved channel\",this.channel),[2,this.channel||Al.websocket]}}))}))},e}();var Rl=function(){function e(e,t,n){void 0===n&&(n=\"wss\"),this.uuid=t,this.wsProtocol=n,this.url=e,this.url.startsWith(\"wss://\")?(this.url=this.url.slice(6),this.wsProtocol=\"wss\"):this.url.startsWith(\"ws://\")?(this.url=this.url.slice(5),this.wsProtocol=\"ws\"):this.url.startsWith(\"https://\")?(this.url=this.url.slice(8),this.wsProtocol=\"wss\"):this.url.startsWith(\"http://\")&&(this.url=this.url.slice(7),this.wsProtocol=\"ws\"),this.url.endsWith(\"/\")&&(this.url=this.url.slice(0,-1)),this.httpProtocol=\"wss\"===this.wsProtocol?\"https\":\"http\"}return e.prototype.getHost=function(){return\"\".concat(this.wsProtocol,\"://\").concat(this.url,\"/bugme/host/\").concat(this.uuid)},e.prototype.getAgent=function(e){return\"\".concat(this.wsProtocol,\"://\").concat(this.url,\"/bugme/agent/\").concat(this.uuid,\"?agentId=\").concat(e)},e.prototype.getClient=function(){return\"\".concat(this.wsProtocol,\"://\").concat(this.url,\"/bugme/client/\").concat(this.uuid,\"?breakpoint_sync=1\")},e.prototype.getClientW=function(){return\"\".concat(this.wsProtocol,\"://\").concat(this.url,\"/bugme/client_w/\").concat(this.uuid,\"?breakpoint_sync=1\")},e.prototype.getUnicast=function(e){var t=\"\".concat(this.wsProtocol,\"://\").concat(this.url,\"/bugme/unicast/\").concat(this.uuid);return e||(e=\"\"),t+=this.getUnicastQuery(e)},e.prototype.getUnicastQuery=function(e){return e?\"?agentId=\".concat(e):\"\"},e.prototype.getPaused=function(){return\"\".concat(this.httpProtocol,\"://\").concat(this.url,\"/bugme/channel/paused\")},e.prototype.getResume=function(){return\"\".concat(this.httpProtocol,\"://\").concat(this.url,\"/bugme/channel/resume\")},e.prototype.getCheckHost=function(){return\"\".concat(this.httpProtocol,\"://\").concat(this.url,\"/bugme/channel/checkHost?id=\").concat(this.uuid)},e.prototype.getRequestHeaders=function(){return{\"Content-Type\":\"application/json\",\"channel-id\":this.uuid}},e}();function Ll(){}var Bl,jl={remoteDebug:\"真机调试\",scriptPaused:\"断点命中\",resumeScript:\"继续\",performanceHint:\"真机调试模式下小程序运行性能与真实性能有偏差,如需观察性能表现请使用真机预览\",consoleContentTooLarge:\"打印的内容过长,单条消息内容大小限制为 20MB\",panelStatusPreparing:\"等待调试器连接\",panelStatusConnected:\"真机调试已连接\",panelStatusDisconnected:\"真机调试已断开\",panelStatusNoValidChannelId:\"真机调试未获取到调试通道信息\",getHelp:\"请联系支付宝技术支持进行排查。\",errorExit:\"本次真机调试已结束,请重新生成调试版本。原因:\",cannotFindPlugin:\"未找到对应插件\",unicastError:\"远程调试通道异常,请重试或联系支付宝技术支持。\\n错误码:{0}\\n错误信息:{1}\\n\",unicastEnd:\"远程调试通道已断开,本次真机调试已结束。\",usingRemoteDebugPackageInIDE:\"你正在 IDE 上使用真机调试的产物(可能是小程序插件),这可能会导致未定义的行为,推荐使用真机预览包。\",exit:\"退出\"},Fl={remoteDebug:\"Remote Debug\",scriptPaused:\"Paused in debugger\",resumeScript:\"Resume\",performanceHint:\"There is a deviation between the performance of a mini program running in remote-debug mode on a real device and its actual performance. If you need to observe performance, please use the Preview.\",consoleContentTooLarge:\"The log is too long. The size limit for a single log is 20MB\",panelStatusPreparing:\"Waiting for Debugger\",panelStatusConnected:\"Connected\",panelStatusDisconnected:\"Disconnected\",panelStatusNoValidChannelId:\"Remote debug failed to get channel info\",getHelp:\"Please contact Alipay technical support for troubleshooting.\",errorExit:\"Debug interrupted. Please re-generate Debug QR-Code. Reason: \",cannotFindPlugin:\"Cannot find the corresponding plugin\",unicastError:\"Remote Debug interrupted, Please contact Alipay technical support for troubleshooting.\\nerror code:{0}\\nerror message:{1}\\n\",unicastEnd:\"Remote Debug Socket is disconnected, Remote Debug is end.\",usingRemoteDebugPackageInIDE:\"You are using a remote-debugging product in IDE (possibly a mini-program plugin), this may lead to undefined behavior, it is recommended to use the preview product.\",exit:\"Exit\"};var zl=Bl||((Bl=new Pt(Pt.getLocaleFromNavigator())).setMessageBundle({zhCN:jl,enUS:Fl}),Bl.prefix=Bl.format(\"remoteDebug\"),Bl),Ul=\"ACK:\",Hl=\"MESSAGE:\",Vl=\"JOIN:\",Wl=\"LEAVE:\",Gl=\"SYSTEM:\";function Zl(e){var t,n=function(e,t,n){void 0===n&&(n=-1);var o=0,r=0,i=[];if(0===n)return[e];for(var a=0;a<e.length&&!(e[a]===t&&(i.push(e.slice(r,a)),o++,r=a+1,n>=0&&o>=n));a++);return r<e.length&&i.push(e.slice(r)),i}(e,\"#\",3),o=n[0],r=n[1],i=n[2],a=n[3];return\"client_w\"===o?t=r.startsWith(\"boat_\")?\"boatman\":\"worker\":\"agent\"===o&&(t=\"render\"),{type:o,clientType:t,uuid:r,agentId:i||\"\",message:a}}var ql,Yl=function(){function e(e){this.tag=e,this.enable=!0}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enable&&Ll.apply(void 0,c([this.tag],e,!1))},e}(),Ql=function(){function e(e,t,n){void 0===n&&(n=\"\"),this.unicast=e,this.type=t,this.agentId=n,this.logger=new Yl(\"[UniCastSubSocket:\".concat(t,\":\").concat(n,\"]\"))}return e.prototype.on=function(e,t){this.logger.log(\"on event: \",e),this.unicast.eventEmitter.on(\"\".concat(this.type,\":\").concat(this.agentId,\":\").concat(e),t)},e.prototype.close=function(){this.logger.log(\"close\"),this.unicast.sendCommand(this.type,\"leave\",this.agentId)},e.prototype.send=function(e){this.logger.log(\"send unicast message: \",e),this.unicast.sendMessage(this.type,\"string\"!=typeof e?JSON.stringify(e):e,this.agentId)},e.prototype.open=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.isSocketOpened?(this.logger.log(\"socket is opened\"),[2]):(this.logger.log(\"open unicast socket: \",this.type),[4,this.unicast.open()]);case 1:return e.sent(),this.logger.log(\"send join command: \",this.type),this.unicast.sendCommand(this.type,\"join\",this.agentId),[2]}}))}))},Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){var e=this.unicast.isSocketOpen(this.type,this.agentId);return this.logger.log(\"isSocketOpened: \",e),e},enumerable:!1,configurable:!0}),e}(),Xl=function(){function e(){var e=this;this.sendToUniCastQueue=new Map,this.eventEmitter=new Ht,this.socketOpenedMap=new Map,this.construct={message:function(e,t,n,o){return void 0===o&&(o=\"\"),Hl+[e,t,o,n].join(\"#\")},join:function(e,t,n){return void 0===n&&(n=\"\"),Vl+[e,t,n].join(\"#\")},leave:function(e,t,n){return void 0===n&&(n=\"\"),Wl+[e,t,n].join(\"#\")}},this.commandQueue=[],this.logger=new Yl(\"UniCastSocket\"),this.getUniCastUrl().then((function(t){e.unicastUrl=t})),this.socketTask=new Gt(void 0,{taskIdPrefix:\"remote_debug_bmu\"}),this.socketTask.on(\"open\",(function(){e.eventEmitter.emit(\"unicast-open\")})),this.eventEmitter.on(\"unicast-ready\",(function(){e.logger.log(\"unicast ready, flush mq, this.commandQueue.length: \",e.commandQueue.length),e.flushCommandQueue()})),this.socketTask.on(\"message\",(function(t){try{if(e.logger.log(\"on message:\",t),t.startsWith(Ul)){if((t=t.slice(Ul.length)).startsWith(Vl)){var n=Zl(t=t.slice(Vl.length)),o=n.agentId,r=n.clientType;e.socketOpenedMap.set(\"\".concat(r,\":\").concat(o),!0),e.eventEmitter.emit(\"\".concat(r,\":\").concat(o,\":open\")),e.flushCommandQueue(),e.flushMessageQueue(r)}else if(t.startsWith(Wl)){var i=Zl(t=t.slice(Wl.length));o=i.agentId,r=i.clientType;e.eventEmitter.emit(\"\".concat(r,\":\").concat(o,\":close\"),{agentId:o}),e.socketOpenedMap.set(\"\".concat(r,\":\").concat(o),!1)}}else if(t.startsWith(Hl)){var a=Zl(t=t.slice(Hl.length)),s=(o=a.agentId,a.message);r=a.clientType;e.eventEmitter.emit(\"\".concat(r,\":\").concat(o,\":message\"),s)}else t.startsWith(Gl)&&(F(\"unicast system message: \",t),\"READY\"===(t=t.slice(Gl.length))&&e.eventEmitter.emit(\"unicast-ready\"))}catch(n){e.logger.log(\"unicast parse message error: \",n,t)}})),this.socketTask.on(\"error\",(function(t){e.logger.log(\"unicast error\",t),e.eventEmitter.emit(\"unicast-error\",t),le({type:\"exception\",content:zl.format2(\"unicastError\",t.error,t.errorMessage)})})),this.socketTask.on(\"close\",(function(t){e.eventEmitter.emit(\"unicast-close\"),e.logger.log(\"unicast close\",t),le({type:\"fail\",duration:5e3,content:zl.format(\"unicastEnd\")})}))}return e.prototype.isSocketOpen=function(e,t){return void 0===t&&(t=\"\"),this.socketOpenedMap.get(\"\".concat(e,\":\").concat(t))},e.prototype.getUniCastUrl=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return this.unicastUrl?[2,this.unicastUrl]:[4,$()];case 1:return e=n.sent(),this.gateway?[2,this.gateway.getUnicast(e)]:[4,Jl().getGatewayAsync()];case 2:return t=n.sent(),this.gateway=t,this.uuid=t.uuid,this.unicastUrl=t.getUnicast(e),[2,this.unicastUrl]}}))}))},e.prototype.createSocketTask=function(e,t){return void 0===t&&(t=\"\"),new Ql(this,e,t)},e.prototype.flushCommandQueue=function(){var e=this;this.commandQueue.length>0&&(this.commandQueue.forEach((function(t){var n=t[0],o=t[1],r=t[2];e.realSendCommand(n,o,r)})),this.commandQueue=[])},e.prototype.flushMessageQueue=function(e){var t=this;if(this.sendToUniCastQueue.has(e)&&this.sendToUniCastQueue.get(e).length>0){var n=this.sendToUniCastQueue.get(e)||[];this.sendToUniCastQueue.set(e,[]),n.forEach((function(e){var n=e[0],o=e[1],r=e[2];t.sendMessage(n,o,r)}))}},e.prototype.sendMessage=function(e,t,n){if(void 0===n&&(n=\"\"),!this.socketOpenedMap.get(\"\".concat(e,\":\").concat(n))){this.logger.log(\"\".concat(e,\" is not opened, push to mq\"),t,n);var o=this.sendToUniCastQueue.get(e)||[];return o.push([e,t,n]),void this.sendToUniCastQueue.set(e,o)}this.flushMessageQueue(e);var r=\"render\"===e?\"agent\":\"client_w\",i=this.getUUID(e),a=this.construct.message(r,i,t,n);this.logger.log(\"send to unicast: \",a),this.socketTask.send(a)},e.prototype.realSendCommand=function(e,t,n){var o=this.getUUID(e),r=this.construct[t](this.clientTypeToRemoteType(e),o,n);this.logger.log(\"\".concat(e,\" send command: \"),r),this.socketTask.send(r)},e.prototype.sendCommand=function(e,t,n){if(void 0===n&&(n=\"\"),!this.socketTask.isSocketOpened)return this.logger.log(\"\".concat(e,\" is not opened, push to mq\"),t,n),void this.commandQueue.push([e,t,n]);this.flushCommandQueue(),this.realSendCommand(e,t,n)},e.prototype.getUUID=function(e){var t=this.uuid;return\"boatman\"===e?\"boat_\".concat(t):t},e.prototype.clientTypeToRemoteType=function(e){return\"render\"===e?\"agent\":\"client_w\"},e.prototype.open=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.socketTask.isSocketOpened?(this.logger.log(\"unicast socket is opened\"),[2]):this.unicastUrl?[3,2]:[4,this.getUniCastUrl()];case 1:t.sent(),t.label=2;case 2:return e=this.unicastUrl,this.logger.log(\"open unicast socket: \",e),this.socketTask.setUrl(e),this.socketTask.delayOpenOnce(),[2]}}))}))},e}(),Kl=function(){function e(){this.channelInfo=(Nl||(Nl=new Dl),Nl)}return e.prototype.getGatewayAsync=function(){return i(this,void 0,void 0,(function(){var e,t,n;return a(this,(function(o){switch(o.label){case 0:return this.gateway?[2,this.gateway]:[4,this.channelInfo.resolveExternalStateAsync()];case 1:if(e=o.sent(),t=e[0],n=e[1],!t){if(w())return console.log(zl.format(\"usingRemoteDebugPackageInIDE\")),[2];throw new Error(\"no-valid-channel-id\")}return this.gateway=new Rl(n,t),[2,this.gateway]}}))}))},e}();function Jl(){return ql||(ql=new Kl),ql}var $l=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.logger=ke(),t}return t(n,e),n.prototype.setupWithClientProxy=function(t){this.clientProxy=t,e.prototype.setup.call(this)},n.prototype.realStartDebugSession=function(){var e=this;if(this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var t=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){t.call(e.clientProxy.platform),e.checkHostBeforeAgentConnect()}}},n.prototype.startDebugSession=function(){e.prototype.startDebugSession.call(this),this.realStartDebugSession()},n}(yt),ed=4e3;var td,nd=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._disposables=[],this._disposables=e}return e.create=function(e){return{dispose:e}},e.prototype.add=function(e){this._disposables.push(e)},e.prototype.addFn=function(e){this._disposables.push({dispose:e})},e.prototype.dispose=function(){this._disposables.forEach((function(e){return e.dispose()})),this._disposables=[]},e}(),od=function(e){function r(t,n,o){var r=e.call(this,t,n,o)||this;return r.connection=t,r.uuid=n,r.agentId=o,r.logger=ke(),r.disposable=new nd,t.addOnCloseHandler((function(){return i(r,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,xe()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),r}return t(r,e),r.prototype.setupWithClientProxy=function(e){this.clientProxy=e,this.setup()},r.prototype.startDebugSession=function(){var e=this,t=this.clientProxy.getHostRuntime();if(!t)throw new Error(\"clientProxy.getHostRuntime is undefined! something wrong!\");var o=t.getEventManager(),r=function(t){return function(n){n.data&&n.data.instanceId===e.agentId&&t()}},i=r(this.throttledPageResume),a=r(this.onPagePause),s=r(this.onResume);if(o.addEventListener(n.pageResume,i),o.addEventListener(n.pagePause,a),o.addEventListener(n.resume,s),this.clientProxy.platform.renderMountCommited)this.checkHostBeforeAgentConnect();else{var c=this.clientProxy.platform.afterRenderMountCommit;this.clientProxy.platform.afterRenderMountCommit=function(){c.call(e.clientProxy.platform),e.checkHostBeforeAgentConnect()}}},r.prototype.request=function(e,t){return new Promise((function(n,r){!function(e,t){void 0===t.timeout&&(t.timeout=5e3),void 0===t.blockTimeout&&(t.blockTimeout=0),K(\"tyroRequest\",o({requestTaskId:ed++,url:e},t))}(e,o(o({},t),{success:function(e){n(e.data)},fail:function(e){r(e)}}))}))},r.prototype.getCheckHostUrl=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,Jl().getGatewayAsync()];case 1:return[2,e.sent().getCheckHost()]}}))}))},r.prototype.getResumeUrl=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,Jl().getGatewayAsync()];case 1:return[2,e.sent().getResume()]}}))}))},r.prototype.setup=function(){this.startDebugSession()},r}(mt),rd=function(){function e(t){var n=this;this.name=t,this.messageBeforeHandler=[],this.isActive=!0,this.onCloseHandlerSet=new Set,this.agentId=\"\",this.useUniCast=!1,this.logger=ke(),this.messageBeforeReady=[],this.createAgentUnicastConnection=function(t){var o=new e(\"agent-\".concat(t));return o.setAgentId(t),o.setUUID(n.uuid),o.setChannel(n.channel),o.useUniCast=!0,o},p&&p.__ril_dispatcher__&&p.__ril_dispatcher__.subscribe(\"tyroRequest\",(function(e){n.onDebugProtocol(e.id,e.method,e.params)}))}return Object.defineProperty(e.prototype,\"LOG_TAG\",{get:function(){return\"[name:\".concat(this.name,\"] [uuid:\").concat(this.uuid,\"] [agentId:\").concat(this.agentId,\"]\")},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.socketTask&&this.socketTask.close()},e.prototype.open=function(){return i(this,void 0,void 0,(function(){var e,t=this;return a(this,(function(n){return p.boatman||this.useUniCast?this.socketTask=(p.__unicast_socket||(p.__unicast_socket=new Xl),p.__unicast_socket).createSocketTask(\"render\",this.agentId):(e=void 0,e=this.channel?Ct(this.channel,this.uuid,this.agentId):St(this.uuid,this.agentId),this.logger.log(this.LOG_TAG,\"bugme url\",e),this.socketTask=new Yt(e,{taskIdPrefix:\"remote_debug_tbrr\"})),this.socketTask.on(\"open\",(function(){t.logger.log(t.LOG_TAG,\"bugme socket open\"),t.messageBeforeReady.length&&(t.messageBeforeReady.forEach((function(e){t.send(e)})),t.messageBeforeReady=[])})),this.socketTask.on(\"message\",(function(e){t.onSocketMessage(e)})),this.socketTask.on(\"close\",this.onSocketClose.bind(this)),this.socketTask.on(\"error\",(function(e){t.logger.warn(t.LOG_TAG,\"socket error\",e)})),this.socketTask.open(),[2]}))}))},Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){var e;return null===(e=this.socketTask)||void 0===e?void 0:e.isSocketOpened},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"isActivated\",{get:function(){return this.isActive},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(){},e.prototype.setChannel=function(e){this.channel=e},e.prototype.setUUID=function(e){this.uuid=e},e.prototype.setAgentId=function(e){this.agentId=e},e.prototype.sendMessage=function(e,t,n){this.send(JSON.stringify({method:e,params:t}),n)},e.prototype.onMessage=function(e){var t=this;this.devtoolHandler=e,this.messageBeforeHandler.length&&(this.messageBeforeHandler.forEach((function(e){t.handleMessage(e)})),this.messageBeforeHandler=[])},e.prototype.send=function(e,t){this.isSocketOpened?(this.logger.log(this.LOG_TAG,\"bugme send message\",e,\"is active\",this.isActive||t),(this.isActive||t)&&this.socketTask.send(e)):this.messageBeforeReady.push(e)},e.prototype.activate=function(){this.isActive=!0},e.prototype.inActivate=function(){this.isActive=!1},e.prototype.addOnCloseHandler=function(e){this.onCloseHandlerSet.add(e)},e.prototype.onSocketMessage=function(e){\"HOST:LEAVE\"!==e||w()?e&&e.startsWith(\"HOST:\")||e.startsWith(\"AGENT:\")||(this.devtoolHandler?this.handleMessage(e):this.messageBeforeHandler.push(e)):zt()},e.prototype.onSocketClose=function(){var e=this;this.logger.error(this.LOG_TAG,\"bugme socket close\"),this.onCloseHandlerSet.forEach((function(t){try{t()}catch(t){e.logger.error(e.LOG_TAG,\"bugme on close handler error\",t)}}))},e.prototype.handleMessage=function(e){var t;this.logger.log(this.LOG_TAG,\"bugme receive message\",e);try{t=JSON.parse(e)}catch(e){return}t.sessionId||(t.method?this.onDebugProtocol(t.id,t.method,t.params):this.logger.warn(this.LOG_TAG,\"invalid message: \",e))},e.prototype.onDebugProtocol=function(e,t,n){var o=this;this.isActivated&&(this.devtoolHandler?this.devtoolHandler(t,n,(function(t,n){t?o.send(JSON.stringify({id:e,error:{code:t,message:\"\".concat(t)}}),!0):o.send(JSON.stringify({id:e,result:n}),!0)})):this.messageBeforeHandler.push(JSON.stringify({id:e,method:t,params:n})))},e}(),id=function(){function e(e,t,n){this.clientProxy=e,this.devtoolBridge=t,this.connection=n,this.logger=ke(),this.agentId=String(e.pageId)}return e.prototype.resumeAgent=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.prepareAgent()];case 1:return[2,e.sent()]}}))}))},e}(),ad=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.engine=\"cube\",t.disposable=new nd,t}return t(n,e),n.prototype.prepareAgent=function(){var e;return i(this,void 0,void 0,(function(){var t,n,o,r,i,s,c,u;return a(this,(function(a){switch(a.label){case 0:return n=(t=this).clientProxy,o=t.devtoolBridge,r=t.logger,i=t.connection,s=t.agentId,r.log(\"prepare native agent for\",s),[4,Jl().getGatewayAsync()];case 1:return c=a.sent(),u=new od(i,c.uuid,s),this.connectionManager=u,this.disposable.addFn((function(){})),this.disposable.addFn(Lt((function(){u.tryResume()}))),u.setupWithClientProxy(n),u.resetAxmlVisitedState=function(){o&&o.resetZNodeActivatedState()},o&&window.AlipayJSBridge&&l(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&o.enableShadowRootElements(),[2]}}))}))},n.prototype.resumeAgent=function(){return this.disposable.dispose(),e.prototype.resumeAgent.call(this)},n}(id),sd=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.engine=\"webview\",t.disposable=new nd,t}return t(n,e),n.prototype.prepareAgent=function(){var e;return i(this,void 0,void 0,(function(){var t,n,o,r,i,s,c,u;return a(this,(function(a){return n=(t=this).clientProxy,o=t.devtoolBridge,r=t.logger,i=t.connection,s=t.agentId,c=wt(),r.log(\"bugme agentId\",s),r.log(\"bugme channel uuid\",c),i.setUUID(c),i.setAgentId(s),u=new $l(i,i.uuid,s),this.connectionManager=u,this.disposable.addFn(Lt((function(){u.tryResume()}))),u.setupWithClientProxy(n),u.resetAxmlVisitedState=function(){o&&o.resetZNodeActivatedState()},o&&window.AlipayJSBridge&&l(null===(e=window.AlipayJSBridge.startupParams)||void 0===e?void 0:e.devtoolShadowRootEnabled)&&o.enableShadowRootElements(),[2]}))}))},n.prototype.resumeAgent=function(){return this.disposable.dispose(),e.prototype.resumeAgent.call(this)},n}(id),cd=\"2.2.9\",ud=ke(),ld=function(){function e(){this.agentMap=new Map}return e.prototype.prepareAgentWorker=function(e,t,n,o){return i(this,void 0,void 0,(function(){var r;return a(this,(function(i){switch(i.label){case 0:return o&&3===o.type?(r=new ad(e,t,n),[3,3]):[3,1];case 1:return[4,bt()];case 2:i.sent(),r=new sd(e,t,n),i.label=3;case 3:return this.agentMap.set(r.agentId,r),[4,r.prepareAgent()];case 4:return i.sent(),[2]}}))}))},e.prototype.prepareAgent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(this,void 0,void 0,(function(){var t,n,o,r,i,s,c;return a(this,(function(a){switch(a.label){case 0:return t=e[0],n=e[1],o=e[2],r=e[3],i=String(t.pageId),this.agentMap.has(i)?[4,this.agentMap.get(i).resumeAgent()]:[3,2];case 1:return a.sent(),[2];case 2:return c=o,r&&3===r.type?(c=td.createAgentUnicastConnection(i),ud.log(\"init devtool for cube2, agentId: \".concat(i)),s=Ml.apply(null,[t,n,c])):(ud.log(\"init devtool for web, agentId: \".concat(i)),s=rs.apply(null,[t,n,o])),this.prepareAgentWorker(t,s,c,r),[2,s]}}))}))},e}(),dd=new ld;function pd(){ud.silentLog(\"init render web2 -\",cd),td=new rd(\"main\"),window.__APPXNG_DEVTOOL_HOOK__={init:hd,connection:td}}function hd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dd.prepareAgent.apply(dd,e)}try{p.__BUGME_RENDER_ON__||(p.__BUGME_RENDER_ON__=!0,function(){var e=ke();e.silentLog(\"init uniweb -\",\"2.2.9\");var t=m();if(t){var n=It(t);n?pd():Zs(),e.debug(\"init render uniweb - isNg: \".concat(n))}else pd(),Zs(),e.debug(\"init render uniweb - concurrent\")}())}catch(z){console.error(z)}}();","bugmeRPreview":"","bugmeWRemote":"(function(){\"use strict\";function compareVersion(e,t){if(e&&t){for(var n=stringToIntArraySplitBy(e,\".\"),r=stringToIntArraySplitBy(t,\".\"),o=0,a=0,i=void 0,s=void 0;a<n.length;a++){if((i=r[a]||0)>(s=n[a]||0)){o=-1;break}if(i<s){o=1;break}}return o}return 0}function stringToIntArraySplitBy(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var a=o[r];n.push(parseInt(a,10))}return n}var reiOS=/iPhone|iPad|iOS/i,finalPlatformType;function getUserAgent(){return\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\"}function getPlatformType(){if(finalPlatformType)return finalPlatformType;if(\"undefined\"!=typeof navigator){var e=getUserAgent();finalPlatformType=e.indexOf(\"Android\")>-1?2:e.match(reiOS)?1:0}else finalPlatformType=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return finalPlatformType}function isIOS(){return 1===getPlatformType()}function isLyra(){return/LyraVM/i.test(getUserAgent())}function isSilentMode(){return isLyra()||\"string\"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__}function formatLocaleString(e){switch(e){case\"zhCN\":case\"zh-SG\":case\"zh-HK\":case\"zh-TW\":case\"zh-Hans\":case\"zh-CN\":return\"zhCN\";default:return\"enUS\"}}var I18NFormatter=function(){function e(e,t){void 0===t&&(t=\"\"),this.locale=e,this.prefix=t,this._messageBundle={}}return e.getLocaleFromNavigator=function(){var e=getUserAgent();if(e.includes(\"Language\")){var t=e.match(/Language\\/([\\w-]+)/);if(t)return formatLocaleString(t[1])}return\"undefined\"!=typeof navigator&&navigator.language?formatLocaleString(navigator.language):formatLocaleString(\"enUS\")},e.prototype.setMessageBundle=function(e){this._messageBundle=e},Object.defineProperty(e.prototype,\"i18nMessages\",{get:function(){return this._messageBundle[formatLocaleString(this.locale)]},enumerable:!1,configurable:!0}),e.prototype.format=function(e,t){var n=this.i18nMessages[e];return\"string\"==typeof n?n:\"function\"==typeof n?n(t):\"string\"==typeof t?t:e},e.prototype.formatWithPrefix=function(e){return\"[\".concat(this.prefix,\"] \").concat(this.format(e))},e.prototype.format2=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.i18nMessages[e];if(\"string\"==typeof r)return r.replace(/{(\\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}));throw new Error(\"format2 only support string\")},e}(),zhCN$1={remoteDebug:\"真机调试\",scriptPaused:\"断点命中\",resumeScript:\"继续\",performanceHint:\"真机调试模式下小程序运行性能与真实性能有偏差,如需观察性能表现请使用真机预览\",consoleContentTooLarge:\"打印的内容过长,单条消息内容大小限制为 20MB\",panelStatusPreparing:\"等待调试器连接\",panelStatusConnected:\"真机调试已连接\",panelStatusDisconnected:\"真机调试已断开\",panelStatusNoValidChannelId:\"真机调试未获取到调试通道信息\",getHelp:\"请联系支付宝技术支持进行排查。\",errorExit:\"本次真机调试已结束,请重新生成调试版本。原因:\",cannotFindPlugin:\"未找到对应插件\",unicastError:\"远程调试通道异常,请重试或联系支付宝技术支持。\\n错误码:{0}\\n错误信息:{1}\\n\",unicastEnd:\"远程调试通道已断开,本次真机调试已结束。\",usingRemoteDebugPackageInIDE:\"你正在 IDE 上使用真机调试的产物(可能是小程序插件),这可能会导致未定义的行为,推荐使用真机预览包。\",exit:\"退出\"},enUS$1={remoteDebug:\"Remote Debug\",scriptPaused:\"Paused in debugger\",resumeScript:\"Resume\",performanceHint:\"There is a deviation between the performance of a mini program running in remote-debug mode on a real device and its actual performance. If you need to observe performance, please use the Preview.\",consoleContentTooLarge:\"The log is too long. The size limit for a single log is 20MB\",panelStatusPreparing:\"Waiting for Debugger\",panelStatusConnected:\"Connected\",panelStatusDisconnected:\"Disconnected\",panelStatusNoValidChannelId:\"Remote debug failed to get channel info\",getHelp:\"Please contact Alipay technical support for troubleshooting.\",errorExit:\"Debug interrupted. Please re-generate Debug QR-Code. Reason: \",cannotFindPlugin:\"Cannot find the corresponding plugin\",unicastError:\"Remote Debug interrupted, Please contact Alipay technical support for troubleshooting.\\nerror code:{0}\\nerror message:{1}\\n\",unicastEnd:\"Remote Debug Socket is disconnected, Remote Debug is end.\",usingRemoteDebugPackageInIDE:\"You are using a remote-debugging product in IDE (possibly a mini-program plugin), this may lead to undefined behavior, it is recommended to use the preview product.\",exit:\"Exit\"},_i18n;function createI18N$1(){return _i18n||((_i18n=new I18NFormatter(I18NFormatter.getLocaleFromNavigator())).setMessageBundle({zhCN:zhCN$1,enUS:enUS$1}),_i18n.prefix=_i18n.format(\"remoteDebug\"),_i18n)}var i18n$2=createI18N$1(),EPanelStatus,Debugger,DebuggerEvent,Runtime,RuntimeEvent,Page,Target,TargetEvent,EDevtoolProtocolErrorCode,EDevtoolProtocolTypePausedReason;!function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(EPanelStatus||(EPanelStatus={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(Debugger||(Debugger={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}(DebuggerEvent||(DebuggerEvent={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(Runtime||(Runtime={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(RuntimeEvent||(RuntimeEvent={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(Page||(Page={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(Target||(Target={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(TargetEvent||(TargetEvent={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(EDevtoolProtocolErrorCode||(EDevtoolProtocolErrorCode={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(EDevtoolProtocolTypePausedReason||(EDevtoolProtocolTypePausedReason={}));var defineProperty=Object.defineProperty.bind(Object),defineProperties=Object.defineProperties.bind(Object),getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor.bind(Object),freeze=Object.freeze.bind(Object),objectKeys=Object.keys.bind(Object),__hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwnProperty$1(e,t){return __hasOwnProperty.call(e,t)}function __assign$1(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];for(var r in n)hasOwnProperty$1(n,r)&&(e[r]=n[r])}return e}var assignObject=Object.assign.bind(Object)||__assign$1,getOwnPropertyNames=Object.getOwnPropertyNames.bind(Object),createObject=Object.create.bind(Object),__setPrototypeOf=Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object);function setPrototypeOf(e,t){__setPrototypeOf?__setPrototypeOf(e,t):e.__proto__=t}var __getPrototypeOf=Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);function getPrototypeOf(e){return __getPrototypeOf?__getPrototypeOf(e):e.__proto__}var hasConsoleObject=\"object\"==typeof console,log=hasConsoleObject&&console.log?console.log.bind(console):function(){},warn=hasConsoleObject&&console.warn?console.warn.bind(console):function(){},error$1=hasConsoleObject&&console.error?console.error.bind(console):function(){},isFunctionNameConfigurable=getOwnPropertyDescriptor(hasOwnProperty$1,\"name\").configurable,HostAPI=Object.freeze({__proto__:null,assignObject:assignObject,createObject:createObject,defineProperties:defineProperties,defineProperty:defineProperty,error:error$1,freeze:freeze,getOwnPropertyDescriptor:getOwnPropertyDescriptor,getOwnPropertyNames:getOwnPropertyNames,getPrototypeOf:getPrototypeOf,hasOwnProperty:hasOwnProperty$1,isFunctionNameConfigurable:isFunctionNameConfigurable,log:log,objectKeys:objectKeys,setPrototypeOf:setPrototypeOf,warn:warn}),extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError(\"Generator is already executing.\");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function extractBridgeCallback(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return handleCallbackUnion.bind(null,e,t,n,r)}function handleCallbackUnion(e,t,n,r,o){var a=!1;r?a=!!(o=normalizeErrorCode(o)).error:\"object\"==typeof o&&(a=\"error\"in o||\"errorMessage\"in o),a&&\"function\"==typeof t&&t(o),a||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}function normalizeErrorCode(e){return\"string\"==typeof e.error&&(e.error=parseInt(e.error,10)),0===e.error&&(delete e.error,delete e.errorMessage),e}\"function\"==typeof SuppressedError&&SuppressedError;var workerGlobal=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),globalImportScripts=workerGlobal.importScripts,globalAlipayJSBridge=workerGlobal.AlipayJSBridge,globalAlipayJSBridgeCall=globalAlipayJSBridge&&globalAlipayJSBridge.call,evalFunc=\"function\"==typeof __eval?__eval:\"function\"==typeof eval?eval:function(){},sharedRequestSyncIdBase=3e3,alipayBridge;function normalizeRemoteBridgeCallSyncPayload(e,t,n){var r=\"_sw_jsonp_\".concat(++sharedRequestSyncIdBase);workerGlobal[r]=function(e){workerGlobal[r]=null,n(e)};var o={action:e,callback:r,data:t};return JSON.stringify(o)}function normalizeRemoteBridgeCallUrl(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}function safeParseJSON(e){try{return JSON.parse(e)}catch(e){}}function invokeHostBridgeCallSync4KylinBridge(e,t){var n,r=normalizeRemoteBridgeCallUrl(normalizeRemoteBridgeCallSyncPayload(e,t,(function(e){n=e})));try{globalImportScripts(r)}catch(e){error$1(\"invokeHostBridgeCallSync4KylinBridge\",e)}return\"string\"==typeof n?safeParseJSON(n):n}\"object\"==typeof globalAlipayJSBridge&&(alipayBridge={call:function(e,t,n){globalAlipayJSBridgeCall(e,t,n)},callSync:function(e,t){return globalAlipayJSBridge.callSync?globalAlipayJSBridge.callSync(e,t):invokeHostBridgeCallSync4KylinBridge(e,t)}});var isAppXImportHooked$1=!1,appxLoadedCallbacks$1=[],appxBridge,appxBridgeReadyResolve;function callAfterAFAppX(e){if(\"undefined\"!=typeof AFAppX)e();else if(appxLoadedCallbacks$1.push(e),!isAppXImportHooked$1){isAppXImportHooked$1=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks$1.forEach((function(e){return e()})),appxLoadedCallbacks$1=[]}),3e3)}}var appxBridgeReadyPromise=new Promise((function(e){appxBridgeReadyResolve=e}));\"object\"==typeof my?(appxBridge=my,appxBridgeReadyResolve()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(appxBridge=AFAppX.bridge,appxBridgeReadyResolve()):callAfterAFAppX((function(){\"object\"==typeof my?(appxBridge=my,appxBridgeReadyResolve()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge&&(appxBridge=AFAppX.bridge,appxBridgeReadyResolve())}));var bootstraped=!1,EWebEvent;function ensureAppxBootstrap(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return bootstraped?[3,2]:[4,appxBridgeReadyPromise];case 1:return e.sent(),[2,new Promise((function(e){var t=function(){appxBridge.call(\"getStartupParams\"),bootstraped=!0,e()};try{t()}catch(e){setTimeout(t,600)}}))];case 2:return[2]}}))}))}!function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(EWebEvent||(EWebEvent={}));var channelDomainConfig={0:{openchannel:\"openchannel.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},1:{openchannel:\"miniprogram.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},2:{openchannel:\"openchannel-pre.alipay.com\",starlinkgw:\"starlinkgw-pre.alipay.com/boatman\"}};function getStartupParamsFromGlobal(){return\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0}var Event=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();function createEvent4WebEngine(e,t){var n,r,o=t.param,a=t.viewId+\"\";o&&\"object\"==typeof o&&2===getPlatformType()?(n=o.data,o.type,r=__rest(o,[\"data\",\"type\"])):n=o,n?n.instanceId=a:n={instanceId:a};var i=new Event(e,n,1);if(r)try{Object.assign(i,r)}catch(e){}return i}function noop(){}var DEBUG_TAG=\"[boatman]\";function error(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];error$1.apply(HostAPI,[DEBUG_TAG].concat(e))}var debug=noop,weakElementKey=\"__weak_set_key__yek_tes_kaew__\",weakSetKey=1,WeakSetKlass;function getWeakSetPolyfillConstructor(){return function(){function e(){this.elementKey=weakElementKey+weakSetKey++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}function getWeakMapConstructorMayBePolyfill(){var e=\"undefined\"!=typeof WeakSet;WeakSetKlass=e?WeakSet:getWeakSetPolyfillConstructor()}function createWeakSet(){return WeakSetKlass||getWeakMapConstructorMayBePolyfill(),new WeakSetKlass}var isAppXImportHooked=!1,appxLoadedCallbacks=[];function runAfterAppx(e){if(void 0!==workerGlobal.AFAppX)e();else if(appxLoadedCallbacks.push(e),!isAppXImportHooked){isAppXImportHooked=!0;var t=globalImportScripts||workerGlobal.importScripts;t?workerGlobal.importScripts=function(e){t(e),/af-appx\\.worker\\.min\\.js$/.test(e)&&(appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[],workerGlobal.importScripts=t)}:setTimeout((function(){appxLoadedCallbacks.forEach((function(e){return e()})),appxLoadedCallbacks=[]}),1200)}}function runAfterAppXBridgeReady(e){if(\"undefined\"==typeof AFAppX&&workerGlobal.AFAppX&&(AFAppX=workerGlobal.AFAppX),\"undefined\"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n[0];if(\"object\"==typeof o&&o.run){var a=o.run;o.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(o,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];if(\"object\"==typeof o){var a=o.callback;if(a&&(o.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(this,t)}),o.pageInfo){var i=o.pageInfo.init;i&&(o.pageInfo.init=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),i.apply(this,t)})}}return n.apply($AppxFramework,t)}}}function guardSingleMsgSize(e){var t=\"string\"==typeof e?e:JSON.stringify(e);return t.length>2e7?void debug(\"abort send websocket message due to size:\",t.length,t.slice(0,1e3)):t}var getCircularReplacer$1=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){}return n}};function circularJSONStringify$1(e){return JSON.stringify(e,getCircularReplacer$1())}function getStartupParamsSync(){var e=getStartupParamsFromGlobal();if(e)return e;try{return abridge.getStartupParamsSync()}catch(e){return{}}}function sleep(e){return void 0===e&&(e=300),new Promise((function(t){setTimeout((function(){t()}),e)}))}var Logger=function(){function e(e,t,n){this.prefix=t,this.options=n,this.message=[];var r=\"__bm_log\".concat(e,\"__message__\");workerGlobal[r]=this.message}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.log.apply(console,__spreadArray([this.prefix],e,!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.debug.apply(console,__spreadArray([this.prefix],e,!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.error.apply(console,__spreadArray([this.prefix],e,!1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.warn.apply(console,__spreadArray([this.prefix],e,!1))},e.prototype.silentLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e)},e}();function getLogger(){return workerGlobal.__logger__||(workerGlobal.__logger__=new Logger(\"r\",\"[boatman] [render]\",{writeToConsole:!1})),workerGlobal.__logger__}function getWorkerLogger(){return workerGlobal.__worker_logger__||(workerGlobal.__worker_logger__=new Logger(\"w\",\"[boatman] [worker]\",{writeToConsole:!1})),workerGlobal.__worker_logger__}var commonjsGlobal=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function isObject$3(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}var isObject_1=isObject$3,freeGlobal$1=\"object\"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=\"object\"==typeof self&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function(\"return this\")(),_root=root$2,root$1=_root,now$1=function(){return root$1.Date.now()},now_1=now$1,reWhitespace=/\\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,\"\"):e}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch(e){}var o=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),o}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag=\"[object Null]\",undefinedTag=\"[object Undefined]\",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return null!=e&&\"object\"==typeof e}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag=\"[object Symbol]\";function isSymbol$1(e){return\"symbol\"==typeof e||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(\"number\"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$1=\"Expected a function\",nativeMax=Math.max,nativeMin=Math.min;function debounce$2(e,t,n){var r,o,a,i,s,c,u=0,p=!1,l=!1,g=!0;if(\"function\"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function d(t){var n=r,a=o;return r=o=void 0,u=t,i=e.apply(a,n)}function f(e){var n=e-c;return void 0===c||n>=t||n<0||l&&e-u>=a}function h(){var e=now();if(f(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-c);return l?nativeMin(n,a-(e-u)):n}(e))}function m(e){return s=void 0,g&&r?d(e):(r=o=void 0,i)}function b(){var e=now(),n=f(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(h,t),p?d(e):i}(c);if(l)return clearTimeout(s),s=setTimeout(h,t),d(c)}return void 0===s&&(s=setTimeout(h,t)),i}return t=toNumber(t)||0,isObject$1(n)&&(p=!!n.leading,a=(l=\"maxWait\"in n)?nativeMax(toNumber(n.maxWait)||0,t):a,g=\"trailing\"in n?!!n.trailing:g),b.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},b.flush=function(){return void 0===s?i:m(now())},b}var debounce_1=debounce$2,debounce$1=debounce_1,isObject=isObject_1,FUNC_ERROR_TEXT=\"Expected a function\";function throttle$2(e,t,n){var r=!0,o=!0;if(\"function\"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(n)&&(r=\"leading\"in n?!!n.leading:r,o=\"trailing\"in n?!!n.trailing:o),debounce$1(e,t,{leading:r,maxWait:t,trailing:o})}var throttle_1=throttle$2,throttle$3=getDefaultExportFromCjs(throttle_1),ConnectionManagerBase=function(){function e(e,t,n){var r=this;this.connection=e,this.uuid=t,this.agentId=n,this.logger=getLogger(),this.onResume=function(){r.logger.log(\"on resume, activate connection, this.connection.isSocketOpened: \".concat(r.connection.isSocketOpened)),r.connection.activate(),r.connection.isSocketOpened||r.checkHostBeforeAgentConnect()},this.onPageResume=function(){r.connection.activate(),r.emitDocumentUpdated()},this.onPagePause=function(){r.throttledPageResume.cancel(),r.connection.inActivate(),r.resetAxmlVisitedState()},this.throttledPageResume=throttle$3(this.onPageResume,100,{leading:!1})}return e.prototype.tryResume=function(){var e=this;this.connection.isActivated&&this.getResumeUrl().then((function(t){e.request(t,{headers:{\"channel-id\":\"boat_\".concat(e.uuid)}}).then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){try{if(this.logger.log(\"bugme try resume response\",t),JSON.parse(t||\"{}\").success)return this.logger.log(\"bugme resume boatman success\"),[2]}catch(e){this.logger.error(\"bugme resume boatman error\",e)}return[2]}))}))}))}))},e.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();this.getCheckHostUrl().then((function(t){e.request(t).then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:try{if(this.logger.log(\"bugme check host response\",t),JSON.parse(t||\"{}\").status)return this.connection.open(),this.throttledPageResume(),[2]}catch(e){this.logger.error(\"bugme check host error\",e)}return[4,sleep()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))}))}))}},e.prototype.emitDocumentUpdated=function(){this.connection.send(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},e.prototype.resetAxmlVisitedState=function(){},e}(),xhrRequest=function(e,t){return void 0===t&&(t={method:\"GET\",timeout:5e3}),__awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(r){return(n=new XMLHttpRequest).timeout=t.timeout,n.open(t.method||\"GET\",e),Object.keys(t.headers||{}).forEach((function(e){n.setRequestHeader(e,t.headers[e])})),n.send(),[2,new Promise((function(e,t){n.onloadend=function(){e(n.responseText)},n.onerror=function(){t(n.responseText)}}))]}))}))},getBugMeHttpUrl4Web=function(){var e,t,n=getChannelDomainInWebview();return n.startsWith(\"wss\")?(e=\"https\",t=n.split(\"wss://\")[1]):n.startsWith(\"ws\")&&(e=\"http\",t=n.split(\"ws://\")[1]),\"\".concat(e,\"://\").concat(t,\"/bugme\")};function getChannelDomainInWebview(){var e=getStartupParamsFromGlobal(),t=null==e?void 0:e.remoteCh,n=null==e?void 0:e.channel;return n||\"wss://\"+(channelDomainConfig[t]||channelDomainConfig[0]).starlinkgw}function call(e,t){if(alipayBridge){var n=t.success,r=t.fail,o=t.complete,a=__rest(t,[\"success\",\"fail\",\"complete\"]),i=extractBridgeCallback(n,r,o,!0);alipayBridge.call(e,a,(function(e){i&&i(e)}))}else appxBridge?appxBridge.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": js bridge does not exists\"))}function isInPluginContext(){return!(\"object\"!=typeof AFAppX||!AFAppX.Plugin)}function isInIsolateContext(){return\"undefined\"==typeof AlipayJSBridge&&void 0!==appxBridge}function isInBizContext(){return\"undefined\"==typeof AlipayJSBridge&&void 0!==appxBridge&&\"undefined\"!=typeof getApp}function isInBizContextAndAppX1(){return!!isInBizContext()&&(appxBridge.SDKVersion&&-1===compareVersion(appxBridge.SDKVersion,\"2.0.0\"))}!function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.connection=t,o.uuid=n,o.agentId=r,t.addOnCloseHandler((function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,sleep()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),o.startDebugSession=o.startDebugSession.bind(o),o}__extends(t,e),t.prototype.request=function(e,t){return xhrRequest(e,t)},t.prototype.getCheckHostUrl=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return e=getBugMeHttpUrl4Web(),[2,\"\".concat(e,\"/channel/checkHost?id=\").concat(this.uuid)]}))}))},t.prototype.getResumeUrl=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return e=getBugMeHttpUrl4Web(),[2,\"\".concat(e,\"/channel/resume\")]}))}))},t.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(EWebEvent.hashchange,this.startDebugSession)},t.prototype.startDebugSession=function(){window.removeEventListener(EWebEvent.hashchange,this.startDebugSession),document.addEventListener(EWebEvent.pageResume,this.throttledPageResume),document.addEventListener(EWebEvent.pagePause,this.onPagePause),document.addEventListener(EWebEvent.resume,this.onResume)}}(ConnectionManagerBase);var EventListener=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var a=0;a<o.length;a++){if(!(0,o[a])(e))return}for(var i=0,s=r;i<s.length;i++){if(s[i].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}(),EventManger=function(){function e(){var e=this;this.eventMap={},this.queue=[],this.enableQueue=!1,this.globalEventListener=new EventListener(\"workerGlobal\",workerGlobal),this.documentEventListeners=new EventListener(\"document\",workerGlobal&&workerGlobal.document),this.globalEventListener.addEventListener(\"message\",(function(t){e.enMessageQueue(t)}));this.pushEventListener.addEventListener(\"push\",(function(t){var n=t.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=createEvent4WebEngine(r,n),a=e.eventMap[r];a&&a.forEach((function(e){e(o)}))}e.enPushQueue(t)}))}return Object.defineProperty(e.prototype,\"pushEventListener\",{get:function(){return workerGlobal&&workerGlobal.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),e.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},e.prototype.enPushQueue=function(e){this.enableQueue&&(log(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},e.prototype.enMessageQueue=function(e){this.enableQueue&&(log(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},e.prototype.startQueueEvent=function(){log(\"startQueueEvent\"),this.enableQueue=!0},e.prototype.replayQueueEvent=function(){for(log(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},e.prototype.on=function(e,t){var n=this;return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)}},e.prototype.off=function(e,t){this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},e.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},e}(),eventManager$1=new EventManger;function getEventManager(){return eventManager$1}var eventManager=getEventManager(),BridgeWebSocketTask=function(){function e(t){this.map={},this.id=\"\".concat(t,\"_\").concat(Math.random().toString(36).substring(2,8),\"_\").concat(String(e.taskId++))}return e.prototype._listen=function(e,t){var n=this;eventManager.on(\"onSocketTask\"+e,(function(e){e.data&&e.data.socketTaskID===n.id&&t(e)}))},e.prototype.getParam=function(e){return __assign({socketTaskID:this.id},e)},e.prototype._doAction=function(e,t){call(e,this.getParam(t))},e.prototype.send=function(e){this._doAction(\"sendSocketMessage\",e)},e.prototype.close=function(e){this._doAction(\"closeSocket\",e)},e.prototype.onOpen=function(e){this._listen(\"Open\",e)},e.prototype.onMessage=function(e){this._listen(\"Message\",(function(t){e(t)}))},e.prototype.onError=function(e){this._listen(\"Error\",(function(t){e(t)}))},e.prototype.onClose=function(e){this._listen(\"Close\",e)},e.taskId=1,e}(),taskIdToClose=[],appxBridgeCallCount=0,defaultPrefix=\"remote_debug\",EWorkerAppEvent$1,sharedStartupParams;function connectSocket(e){var t;if(e.__taskIdPrefix||(e.__taskIdPrefix=defaultPrefix),isInIsolateContext())return taskIdToClose.push(\"\".concat(defaultPrefix).concat(++appxBridgeCallCount)),appxBridge.connectSocket(e);var n=null!==(t=e.__taskIdPrefix)&&void 0!==t?t:defaultPrefix;delete e.__taskIdPrefix;var r=new BridgeWebSocketTask(n);return taskIdToClose.push(r.id),call(\"connectSocket\",r.getParam(e)),r}function closeAllSocket(){taskIdToClose.forEach((function(e){call(\"closeSocket\",{socketTaskID:e})})),taskIdToClose=[]}function toast(e){if(e.duration||(e.duration=1e4),isInIsolateContext())return appxBridge.showToast(e);call(\"toast\",__assign({},e))}!function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(EWorkerAppEvent$1||(EWorkerAppEvent$1={}));var abridge={callSync:function(e,t){return alipayBridge?alipayBridge.callSync(e,t):appxBridge?appxBridge.callSync(e,t):void 0},showRemoteDebugMask:function(e){return alipayBridge?alipayBridge.call(\"showRemoteDebugMask\",e,(function(){})):appxBridge?appxBridge.call(\"showRemoteDebugMask\",e):void 0},getStartupParams:function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return sharedStartupParams?[2,sharedStartupParams]:(e=getStartupParamsFromGlobal())?(sharedStartupParams=e,[2,e]):[4,ensureAppxBootstrap()];case 1:return t.sent(),[2,new Promise((function(e){appxBridge.call(\"getStartupParams\",{success:function(t){sharedStartupParams=t,e(t)}})}))]}}))}))},getStartupParamsSync:function(){if(sharedStartupParams)return sharedStartupParams;var e,t=getStartupParamsFromGlobal();return t?(sharedStartupParams=t,t):(alipayBridge&&alipayBridge.callSync?e=alipayBridge.callSync(\"getStartupParams\"):appxBridge&&appxBridge.callSync&&(e=appxBridge.callSync(\"getStartupParams\")),e||(e={}),e)},connectSocket:function(e){return connectSocket(e)},alert:function(e){alert(e)}},BoatmanInspectorDebugPanelViewImpl=function(){function e(){}return e.prototype.updateDebugPanel=function(e,t,n){n||(n=this.getStatusText(e,t)),call(\"showRemoteDebugPanel\",{status:t,text:n,buttonTitle:e.format(\"exit\")})},e.prototype.getStatusText=function(e,t){var n=\"\";switch(t){case EPanelStatus.Connecting:n=e.format(\"panelStatusPreparing\");break;case EPanelStatus.Connected:n=e.format(\"panelStatusConnected\");break;case EPanelStatus.Disconnected:n=e.format(\"panelStatusDisconnected\")}return n},e}(),zhCN={\"调试结束\":\"调试结束\",\"callExitApp_退出\":\"退出\",\"callExitApp_取消\":\"取消\"},enUS={\"调试结束\":\"Debugging Ended\",\"callExitApp_退出\":\"Exit\",\"callExitApp_取消\":\"Cancel\"};function createI18N(){var e=new I18NFormatter(I18NFormatter.getLocaleFromNavigator());return e.setMessageBundle({zhCN:zhCN,enUS:enUS}),e}var i18n$1=createI18N();function callInternalAPI(e,t,n,r){var o=n.originalFetch,a=n.originalCall;if(o){var i=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:t}}));o(\"https://alipay.kylinBridge/?data=\".concat(i),{mode:\"no-cors\"}).then((function(e){r(e)})).catch((function(){}))}else a&&(isInBizContextAndAppX1()?a(e,t,r):a(\"internalAPI\",{method:e,param:t},r))}var DEBUG_PANEL=\"debugPanel\",SETUP_EXIT_APP=\"setupExitApp\",CALL_EXIT_APP=\"callExitApp\",ON_EXIT_APP=\"onExitApp\",EventBus=function(){function e(){this.subscribers={},this.locks={}}return e.prototype.getSubscribers=function(e){return this.subscribers[e]},e.prototype.requireLock=function(e){return!this.locks[e]&&(this.locks[e]=!0,!0)},e.prototype.releaseLock=function(e){this.locks[e]=!1},e.prototype.subscribe=function(e,t){this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t)},e.prototype.unsubscribe=function(e,t){if(this.subscribers[e]){var n=this.subscribers[e].indexOf(t);-1!==n&&this.subscribers[e].splice(n,1)}},e.prototype.dispatch=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.subscribers[e]&&this.subscribers[e].forEach((function(e){e.apply(void 0,t)}))},e}();function getEventBus(){return workerGlobal.__ril_dispatcher__||(workerGlobal.__ril_dispatcher__=new EventBus),workerGlobal.__ril_dispatcher__}var RILDispatchHelper=function(){function e(e){this.name=e,this.enable=!1,this.eventBus=getEventBus(),this.eventBus&&(this.enable=this.eventBus.requireLock(e))}return e.prototype.dispatch=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.enable&&(t=this.eventBus).dispatch.apply(t,__spreadArray([e],n,!1))},e}(),logger$1=getWorkerLogger(),addEventListener=function(e,t){try{\"undefined\"!=typeof document&&document.addEventListener?document.addEventListener(e,t):appxBridge.on(e,t)}catch(e){error$1(\"🚀 ~ file: exit-app.ts:19 ~ addEventListener ~ error:\",e)}},removeEventListener=function(e,t){try{\"undefined\"!=typeof document&&document.removeEventListener?document.removeEventListener(e,t):appxBridge.off(e,t)}catch(e){log(\"🚀 ~ file: exit-app.ts:31 ~ removeEventListener ~ error:\",e)}};function setupExitApp(e){logger$1.log(\"setupExitApp\");var t=function(){logger$1.log(\"DebugPanelClick\"),callExitApp(),(null==e?void 0:e.onDebugPanelClick)&&e.onDebugPanelClick()};return addEventListener(EWorkerAppEvent$1.DebugPanelClick,t),function(){removeEventListener(EWorkerAppEvent$1.DebugPanelClick,t)}}var bridgeCall=\"undefined\"!=typeof boatman&&void 0!==boatman.originalBridgeCall?boatman.originalBridgeCall:globalAlipayJSBridgeCall;function exitApp(){getEventBus().dispatch(ON_EXIT_APP),logger$1.log(\"exitApp\"),callInternalAPI(\"exitTinyApp\",null,{originalCall:bridgeCall},(function(e){logger$1.log(\"exitTinyApp\",e)})),callInternalAPI(\"exitApp\",null,{originalCall:bridgeCall},(function(e){logger$1.log(\"exitApp\",e)}))}var confirmShown=!1;function callExitApp(){confirmShown||(confirmShown=!0,call(\"showRemoteDebugMask\",{hide:!0,success:function(){logger$1.log(\"showRemoteDebugMask hide\")}}),call(\"alert\",{title:i18n$1.format(\"调试结束\"),button:i18n$1.format(\"callExitApp_退出\"),success:function(){setTimeout((function(){exitApp(),confirmShown=!1}),0)}}))}var exitAppSetuped=!1;function initExitApp(){exitAppSetuped||(setupExitApp(),exitAppSetuped=!0)}var i18n=i18n$2,debugPanel=new BoatmanInspectorDebugPanelViewImpl;getEventBus().subscribe(DEBUG_PANEL,(function(e,t){debugPanel.updateDebugPanel(i18n,e,t)})),getEventBus().subscribe(SETUP_EXIT_APP,(function(){try{initExitApp()}catch(e){}})),getEventBus().subscribe(CALL_EXIT_APP,(function(){callExitApp()})),getEventBus().subscribe(ON_EXIT_APP,(function(){closeAllSocket()}));var FunctionApply=Function.prototype.apply.call.bind(Function.prototype.apply);function functionApply(e,t,n){return FunctionApply(e,t,n)}function throttle$1(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var u=function(){c=!1===o.leading?0:Date.now(),s=null,i=functionApply(e,null,a),a=null};return function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var d=t-(g-c);return a=p,d<=0||d>t?(r(s),s=null,c=g,i=functionApply(e,null,a),a=null):s||!1===o.trailing||(s=n(u,d)),i}}var InterceptContext=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=throttle$1((function(){n.callback({ext:{origin:\"data\"},method:\"Tiny.Data.dataChanged\"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),getCircularReplacer=function(){var e=createWeakSet();return function(t,n){if(\"object\"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function circularJSONStringify(e){return JSON.stringify(e,getCircularReplacer())}var precisionTimestampBasis=0;function resetPrecisionTimestampBasis(){precisionTimestampBasis=1e3*Date.now()-getPrecisionTimestamp()}var getPrecisionTimestamp=\"object\"==typeof performance&&performance&&\"function\"==typeof performance.now?function(){return 1e3*performance.now()+precisionTimestampBasis}:function(){return 1e3*Date.now()};function interceptLifecycle(e){e.interceptors.appLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizeAppLifecycleManagerThisContext(t))};onAppLifecycle(e,r)})),e.interceptors.pageLifecycleManagerInterceptor.before(\"performLifeHook\",(function(t,n){var r={aTime:getPrecisionTimestamp()/1e3,args:n,context:circularJSONStringify(normalizePageLifecycleManagerThisContext(t))};onPageLifecycle(e,r)}))}function onAppLifecycle(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+t.args[0],params:t};e.callback(n)}catch(e){}}function normalizeAppLifecycleManagerThisContext(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function onPageLifecycle(e,t){try{var n=getLifecycleName$1(t.args[0]);if(!n)return;var r={ext:{origin:\"applog\"},method:\"MiniAppLog.\"+n,params:t};e.callback(r),\"onPageShow\"===n&&e.notifyDataChange()}catch(e){}}function getLifecycleName$1(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function normalizePageLifecycleManagerThisContext(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function interceptJSAPI(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onApiSyncCall(e,{context:t,args:n,reqId:r,aTime:o}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],u=getPrecisionTimestamp()/1e3;onApiSyncCallback(e,{context:t,args:c,reqId:i,result:r,bTime:u,aTime:s})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"invoke\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return t.__reqId=r,onApiCall(e,{context:t,args:n,reqId:r,aTime:o}),\"rpc\"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=__assign(__assign({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before(\"dispatchResultCallback\",(function(t,n){var r=t.__reqId,o=getPrecisionTimestamp()/1e3;return onApiCallback(e,{context:t,args:n,reqId:r,bTime:o}),\"rpc\"===t.apiName&&t.$$rpcGetResponseToTrue&&void 0!==n[0].resData?[n[0].resData]:n}))}function onApiSyncCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiSyncCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCall(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function onApiCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo$1(t)};e.callback(n)}catch(e){}}function minimizeApiHookInfo$1(e){if(e.context){var t=e.context,n=t.apiName,r=t.extraInfo,o=t.isMiniExtension,a=t.option,i=t.startTime,s=t.taskId,c=t.__reqId;return __assign(__assign({},e),{context:{__reqId:c,apiName:n,extraInfo:r,isMiniExtension:o,option:a,startTime:i,taskId:s}})}return e}var originalError=console.error;function interceptError(e){e.interceptors.appBaseInstanceInterceptor.after(\"reportError\",(function(e,t){t[0],onError({code:t[1],formatted:t[2]})}))}function onError(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(originalError.bind(console,t),0)}function interceptSetData(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3,a={aTime:o,args:n,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:r};return onSetData(e,a),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],u=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:u,context:circularJSONStringify(normalizePageLogicInstanceThisContext(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all(\"setData\",(function(t,n){var r=e.getNextRequestId(),o=getPrecisionTimestamp()/1e3;return onSetData(e,{aTime:o,args:n,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:r}),[[r,o],n]}),(function(t,n,r,o){var a=n[0],i=a[0],s=a[1],c=n[1],u=getPrecisionTimestamp()/1e3;onSetDataCallback(e,{aTime:s,args:c,bTime:u,context:circularJSONStringify(normalizeComponentLogicInstanceThisContext(t)),reqId:i})}))}function onSetData(e,t){try{e.notifyDataChange();var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo$1(t)};e.callback(n)}catch(e){}}function onSetDataCallback(e,t){try{var n={ext:{origin:\"applog\"},method:\"MiniAppLog.onSetDataCallback\",params:t};e.callback(n)}catch(e){}}function minimizeSetDataInfo$1(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function normalizePageLogicInstanceThisContext(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function normalizeComponentLogicInstanceThisContext(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function setup(e,t,n){resetPrecisionTimestampBasis();var r=new InterceptContext(t,n);interceptSetData(r),interceptLifecycle(r),interceptJSAPI(r),interceptError(r)}var AgentContext=function(){this.channelConfigKey=\"0\",this.userAgent=getUserAgent(),this.isIOS=isIOS(),this.isLyra=isLyra(),this.startupParams=getStartupParamsSync(),this.channelId=this.startupParams.channelId||\"\",this.channel=this.startupParams.channel||\"\",this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},NetworkCollection=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,__assign(__assign({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}();function createProtocol4RequestWillBeSent(e){var t=(e.method||\"GET\").toUpperCase(),n=mapValueToString(e.headers),r=getTimestamp();return{method:\"Network.requestWillBeSent\",params:{documentURL:\"\",loaderId:\"\",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,hasPostData:!!e.postBody||void 0,mixedContentType:\"none\",initialPriority:\"High\",isLinkPreload:!1,referrerPolicy:\"origin\"},wallTime:r,initiator:{type:\"script\"},timestamp:r,type:\"XHR\"}}}function createProtocol4ResponseReceived(e,t){var n=e.profile,r=e.headers,o=n&&n.totalTime,a=getTimestamp(),i=a-(o?n.totalTime-n.Waiting-n.domainLookup-n.connect-n.SSLconnection:0)/1e3;return{method:\"Network.responseReceived\",params:{requestId:e.requestId,loaderId:\"\",type:\"XHR\",timestamp:i,response:{url:t.url||\"\",status:Number(e.status),headers:mapValueToString(r),requestHeaders:t.requestHeaders,connectionReused:!1,connectionId:1e3,encodedDataLength:0,securityState:\"unknown\",statusText:\"\",protocol:\"\",mimeType:r[\"Content-Type\"]||r[\"content-type\"],timing:o?createResourceTiming(n,a-n.totalTime/1e3):void 0}}}}function createProtocol4LoadingFinished(e){return{method:\"Network.loadingFinished\",params:{requestId:e.requestId,timestamp:getTimestamp(),encodedDataLength:0}}}function createProtocol4LoadingFailed(e){return{method:\"Network.loadingFailed\",params:{canceled:!1,errorText:e.errorMsg||\"\",requestId:e.requestId,timestamp:getTimestamp(),type:\"XHR\"}}}function mapValueToString(e){if(!e||\"object\"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=\"\"+e[n]})),t}function getTimestamp(){return Date.now()/1e3}function createResourceTiming(e,t){var n=e.domainLookup,r=e.connect,o=e.SSLconnection,a=n+r+o;return{requestTime:t,dnsStart:n?1e-4:-1,dnsEnd:n?n:-1,connectStart:n||-1,connectEnd:a||-1,sslStart:a-o||-1,sslEnd:a||-1,sendStart:a?-1:1e-4,sendEnd:a?-1:1e-4,receiveHeadersEnd:a+e.Waiting,proxyStart:-1,proxyEnd:-1,workerStart:-1,workerReady:-1,workerFetchStart:-1,workerRespondWithSettled:-1,pushStart:0,pushEnd:0}}var MAX_QUEUE_SIZE=1e8,MessageQueue=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0}return e.prototype.push=function(e){this._queueSize;var t=guardSingleMsgSize(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=getInjector().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e}(),globalInjector,Injector=function(){function e(){this.isApplogEnabled=!1}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new AgentContext),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new NetworkCollection),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new MessageQueue),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),EWorkerAppEvent,EBugmePanelId;function getInjector(){return globalInjector||(globalInjector=new Injector),globalInjector}function sendOrQueueApplogMsg$1(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function getHookFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function throttle(e,t,n,r,o){var a,i,s=null,c=0;o||(o={});var u=function(){c=!1===o.leading?0:Date.now(),s=null,i=e.apply(null,a),a=null};return function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];var g=Date.now();c||!1!==o.leading||(c=g);var d=t-(g-c);return a=p,d<=0||d>t?(r(s),s=null,c=g,i=e.apply(null,a),a=null):s||!1===o.trailing||(s=n(u,d)),i}}function debounce(e,t,n,r){var o;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r(o),o=n((function(){e.apply(null,a)}),t)}}!function(e){e.PageResume=\"pageResume\",e.PagePause=\"pagePause\",e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\",e.DebugConsole=\"onTinyDebugConsole\",e.DebugNetworkRequest=\"tinyAppRemoteDebug_network_request\",e.DebugNetworkResponse=\"tinyAppRemoteDebug_network_response\",e.DebugNetworkError=\"tinyAppRemoteDebug_network_error\",e.DebugStorageChanged=\"tinyAppRemoteDebug_storage\",e.MessageFromVConsole=\"onMessageFromVConsole\"}(EWorkerAppEvent||(EWorkerAppEvent={})),function(e){e.Data=\"data\",e.Storage=\"storage\",e.AppLog=\"applog\"}(EBugmePanelId||(EBugmePanelId={}));var throttledEmitDataChangedEvent=throttle((function(){var e=getInjector().getWorkerSocket();e&&e.send({method:\"Tiny.Data.dataChanged\",ext:{origin:EBugmePanelId.Data}})}),300,setTimeout,clearTimeout,{leading:!1}),EUnserializableValue;function getFn(e){if(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&\"function\"==typeof workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function onErrorHook(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}function registerLegacyAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:getFn(\"onSetData\"),onSetDataCallback:getFn(\"onSetDataCallback\"),onApiSyncCall:getFn(\"onApiSyncCall\"),onApiSyncCallback:getFn(\"onApiSyncCallback\"),onApiCall:getFn(\"onApiCall\"),onApiCallback:getFn(\"onApiCallback\"),onError:getFn(\"onError\")};workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}throttledEmitDataChangedEvent(),sendOrQueueApplogMsg({method:\"MiniAppLog.onSetData\",params:minimizeSetDataInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onSetDataCallback\",params:t,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiSyncCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCall\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.onApiCallback\",params:minimizeApiHookInfo(t),ext:{origin:EBugmePanelId.AppLog}})}catch(e){}},workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}onErrorHook(t)}catch(e){}},registerV1PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2PageLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV1AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),registerV2AppLifecycleHooks(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function getLifecycleName(e){var t;switch(e){case 0:t=\"onPageLoad\";break;case 2:t=\"onPageReady\";break;case 1:t=\"onPageShow\";break;case 3:t=\"onPageHide\";break;case 4:t=\"onPageUnload\"}return t}function registerV1PageLifecycleHooks(e,t){for(var n=[\"onPageLoad\",\"onPageShow\",\"onPageHide\",\"onPageReady\",\"onPageUnload\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var r=e.context?e:__assign({route:e.page.route},e);sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:minimizePageLifecycleInfo1(r),ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2PageLifecycleHooks(e,t){t.onPageLifecycle=getFn(\"onPageLifecycle\"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}var n=getLifecycleName(e.args[0]);if(!n)return;sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}}),\"onPageShow\"===n&&throttledEmitDataChangedEvent()}catch(e){}}}function registerV1AppLifecycleHooks(e,t){for(var n=[\"onAppLaunch\",\"onAppShow\",\"onAppHide\",\"onAppError\",\"onAppUnhandledRejection\"],r=0,o=n;r<o.length;r++){t[c=o[r]]=getFn(c)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(n),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}},i=0,s=n;i<s.length;i++){var c;a(c=s[i])}}function registerV2AppLifecycleHooks(e,t){t.onAppLifecycle=getFn(\"onAppLifecycle\"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){debug(e)}sendOrQueueApplogMsg({method:\"MiniAppLog.\".concat(e.args[0]),params:e,ext:{origin:EBugmePanelId.AppLog}})}catch(e){}}}function sendOrQueueApplogMsg(e){try{var t=getInjector(),n=t.getWorkerSocket(),r=t.getMessageQueue();n&&t.isApplogEnabled?n.send(circularJSONStringify$1(e)):r.push(circularJSONStringify$1(e))}catch(e){}}function minimizeApiHookInfo(e){if(e.context){var t=e.context;return __assign(__assign({},e),{context:pick(t,[\"apiName\",\"extraInfo\",\"isMiniExtension\",\"option\",\"startTime\",\"taskId\",\"__reqId\"])})}return e}function minimizeSetDataInfo(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function minimizePageLifecycleInfo1(e){return __assign(__assign({},e),{page:pick(e.page,[\"$id\",\"$page\",\"$viewId\",\"data\"])})}function pick(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function registerAppxHook(){null==workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),registerLegacyAppxHook();var e=getHookFn(\"setup\");workerGlobal.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&\"function\"==typeof e)try{e(t,n)}catch(e){}getInjector().setRuntime(t),setup(t,n,(function(e){if(e&&\"string\"==typeof e.method&&e.method.includes(\"MiniAppLog\"))sendOrQueueApplogMsg$1(e);else{var t=getInjector().getWorkerSocket();t&&t.send(e)}}))}}function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}function isArrayBuffer(e){return\"[object ArrayBuffer]\"===Object.prototype.toString.call(e)}function isArrayBufferInstance(e){return e instanceof ArrayBuffer}function isNegativeZero(e){return 0===e&&1/e==-1/0}!function(e){e[1/0]=\"Infinity\",e[-1/0]=\"-Infinity\",e.NaN=\"NaN\",e[\"-0\"]=\"-0\"}(EUnserializableValue||(EUnserializableValue={}));var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var n=this;return Array.from(e).map((function(e){return n.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():isArrayBufferInstance(e)?this.mapArrayBuffer(e,\"table\"===t):this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapArrayBuffer=function(e,t){var n=this,r={byteLength:e.byteLength},o=Object.keys(r),a=e.byteLength,i=this.objectStore.save(e),s=e.constructor?e.constructor.name:\"Object\",c=o.length>5&&!t,u=\"arraybuffer\",p=\"\".concat(s,\"(\").concat(a,\")\"),l={type:\"object\",className:s,description:p,objectId:i,preview:{type:\"object\",description:p,overflow:c,properties:(c?o.slice(0,5):o).map((function(e){return n.getPropertyPreview4AnyValue(e,r[e],t)})).filter(Boolean)}};return l.subtype=u,l.preview&&(l.preview.subtype=u),p&&(l.description=p,l.preview&&(l.preview.description=p)),l},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){var t,n;isNaN(e)?n=EUnserializableValue.NaN:e===1/0?n=EUnserializableValue.Infinity:e===-1/0?n=EUnserializableValue[-1/0]:isNegativeZero(e)?n=EUnserializableValue[\"-0\"]:t=e;var r={type:\"number\",value:t,description:String(e)};return n&&(r.unserializableValue=n),r},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var n,r,o=this,a=getObjectOwnPropertyDescriptors(e),i=Object.keys(a),s=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",u=i.length>5&&!t,p={type:\"object\",className:c,description:c,objectId:s,preview:{type:\"object\",description:c,overflow:u,properties:(u?i.slice(0,5):i).map((function(e){return o.getPropertyPreview4ObjectProperty(e,a[e],t)})).filter(Boolean)}};return isError(e)?(n=\"error\",-1===(r=e.stack||\"\").indexOf(e.name)&&(r=e.toString()+\"\\n\"+r)):isDate(e)?(n=\"date\",r=e.toString()):isRegExp(e)?(n=\"regexp\",r=e.toString()):isPromise(e)&&(n=\"promise\",r=\"Promise\"),n&&(p.subtype=n,p.preview&&(p.preview.subtype=n)),r&&(p.description=r,p.preview&&(p.preview.description=r)),p},e.prototype.mapArray=function(e,t){var n=this,r=e.length>100&&!t,o=\"Array(\".concat(e.length,\")\");return{type:\"object\",subtype:\"array\",className:\"Array\",description:o,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:o,overflow:r,properties:(r?e.slice(0,100):e).map((function(e,r){return n.getPropertyPreview4ArrayProperty(r,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,n){return this.getPropertyPreview4AnyValue(String(e),t,n)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,n){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,n)},e.prototype.getPropertyPreview4AnyValue=function(e,t,n){switch(void 0===n&&(n=!1),typeof t){case\"object\":if(Array.isArray(t)){var r={name:e,type:\"object\",subtype:\"array\",value:\"Array(\".concat(t.length,\")\")};return n&&(r.valuePreview=this.getValuePreview4TableArray(t)),r}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};r={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return n&&(r.valuePreview=this.getValuePreview4TableObject(t)),r;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\".concat(e.length,\")\"),overflow:!1,properties:e.map((function(e,n){return t.getPropertyPreview4AnyValue(String(n),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(n){return t.getPropertyPreview4AnyValue(n,e[n])}))}},e}(),ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+):(\\d+):(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+):(\\d+):(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'.concat(injectedScriptId,',\"id\":').concat(this.id,\"}\")},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);if(t){var n=Boolean(e.ownProperties),r={result:this.mapObject(t,n,Boolean(e.accessorPropertiesOnly))};return n&&this.hasInternalProperties(t)&&(r.internalProperties=this.getInternalProperties(t)),r}return{result:[]}},e.prototype.getInternalProperties=function(e){return isArrayBufferInstance(e)?[this.mapInternalProperties(\"[[ArrayBufferByteLength]]\",e.byteLength)]:[]},e.prototype.hasInternalProperties=function(e){return isArrayBuffer(e)},e.prototype.shouldSkipProto=function(e){return isArrayBuffer(e)},e.prototype.mapObject=function(e,t,n){var r=this;if(t){var o=getObjectOwnPropertyDescriptors(e),a=Object.keys(o).filter((function(e){return!(n&&!o[e].get&&!o[e].set)})).map((function(e){return r.mapResultOne(e,o[e],!0)}));return this.shouldSkipProto(e)||e.__proto__&&a.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],s={},c=e,u=!1,p=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var o=e[t];(!n||o.get||o.set)&&i.push(r.mapResultOne(t,o,p))}})),!u){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(u=!0,i.push(g.mapResultOne(\"__proto__\",t,p)))}c=c.__proto__,p=!1},g=this;c;)l();return i},e.prototype.mapInternalProperties=function(e,t){return{name:String(e),value:this.objectMapper.mapFromOne(t)}},e.prototype.mapResultOne=function(e,t,n){var r={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return\"value\"in t&&(r.value=this.objectMapper.mapFromOne(t.value)),t.get&&(r.get=this.objectMapper.mapFromOne(t.get)),t.set&&(r.set=this.objectMapper.mapFromOne(t.set)),r},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var r=e;return\"warn\"===e&&(r=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:r,args:this.objectMapper.mapFrom(n,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),globalConsoleOverrides;function initConsoleOverrides(){\"boolean\"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__&&(globalConsoleOverrides=new ConsoleOverrides).overrideConsole()}function getConsoleOverrides(){return globalConsoleOverrides}var ConsoleOverrides=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new RemoteObjectParser,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMessage({method:\"Runtime.executionContextsCleared\",params:{}}),this.sendMessage({method:\"Runtime.executionContextCreated\",params:{context:{id:this.executionContextId,origin:\"app://\",name:\"app\"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(t,n){var r=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{if(\"string\"==typeof t[0]&&/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/.test(t[0]))return r.apply(null,t);var o=new Error;o.stack&&e.sendMessage(e.parser.consoleAPICalled(n,o.stack,t))}catch(e){}return r.apply(null,t)}}},t}),{}))},e.prototype.sendMessage=function(e){var t=getInjector().getWorkerSocket();t?(this.flushPendingMessages(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessages=function(){if(this.messageBeforeAgentInit.length){var e=getInjector().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){getInjector().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessages())}),1e3)}},e}(),requirePluginName=\"requirePlugin\";function hookRequirePlugin(){var e=i18n$2,t=Object.getOwnPropertyDescriptor(workerGlobal,requirePluginName);if(!t||t.configurable){var n;t&&(n=workerGlobal.requirePlugin);var r,o={get:function(t,n){return\"async\"===n?function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t[n];if(\"function\"==typeof a){var i=Date.now();return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCall\",params:{aTime:i,context:{apiName:requirePluginName+\".async\",option:{arguments:r}}},ext:{origin:EBugmePanelId.AppLog}}),a.apply(t,r).then((function(t){return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:t?void 0:[{error:1,errorMessage:e.format(\"cannotFindPlugin\")}],bTime:Date.now()===i?i+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),t})).catch((function(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===i?i+.01:Date.now(),context:{apiName:requirePluginName+\".async\"}},ext:{origin:EBugmePanelId.AppLog}}),e}))}return a}:t[n]},apply:function(t,n,r){var o=Date.now();sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCall\",params:{aTime:o,context:{apiName:requirePluginName,option:{arguments:r}}},ext:{origin:EBugmePanelId.AppLog}});try{var a=t.apply(n,r);return sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:a?void 0:[{error:1,errorMessage:e.format(\"cannotFindPlugin\")}],bTime:Date.now()===o?o+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),a}catch(e){throw sendOrQueueApplogMsg$1({method:\"MiniAppLog.onApiSyncCallback\",params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===o?o+.01:Date.now(),context:{apiName:requirePluginName}},ext:{origin:EBugmePanelId.AppLog}}),e}}};try{n&&(r=new Proxy(n,o))}catch(e){}Object.defineProperty(workerGlobal,requirePluginName,{get:function(){return r||n},set:function(e){r=(n=e)?new Proxy(n,o):void 0},enumerable:!0,configurable:!0})}}var EventEmitter=function(){function e(){this._listeners=new Map}return e.prototype.on=function(e,t){var n=this;return this._listeners.has(e)||this._listeners.set(e,[]),this._listeners.get(e).push(t),function(){return n.off(e,t)}},e.prototype.off=function(e,t){if(this._listeners.has(e)){var n=this._listeners.get(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}},e.prototype.once=function(e,t){var n=this,r=this.on(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];r(),t.apply(n,e)}));return r},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._listeners.has(e)&&__spreadArray([],this._listeners.get(e),!0).forEach((function(e){return e.apply(t,n)}))},e.prototype.dispose=function(){this._listeners.clear()},e}(),WebSocketBaseImpl=function(){function e(e,t){this.url=\"\",this.taskIdPrefix=\"\",this.header={},this.opened=!1,this.maxBodyLength=20971520,this.eventEmitter=new EventEmitter,e&&(this.url=e),(null==t?void 0:t.header)&&(this.header=t.header),(null==t?void 0:t.taskIdPrefix)&&(this.taskIdPrefix=t.taskIdPrefix),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,\"isSocketOpened\",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e.prototype.onSocketOpen=function(){this.eventEmitter.emit(\"open\")},e.prototype.onSocketClose=function(e){this.eventEmitter.emit(\"close\",e)},e.prototype.onSocketError=function(e){this.eventEmitter.emit(\"error\",e)},e.prototype.onSocketMessage=function(e){this.eventEmitter.emit(\"message\",e)},e.prototype.on=function(e,t){this.eventEmitter.on(e,t)},e}(),internalWebSocket;\"undefined\"!=typeof WebSocket&&WebSocket.OPEN&&(internalWebSocket=WebSocket);var WebSocketBrowserImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.logger=getLogger(),t}return __extends(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"WebSocket url required\");this.socket=new internalWebSocket(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){\"string\"==typeof t.data?e.onSocketMessage(t.data):e.logger.warn(\"[DEBUG] invalid message\",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.opened&&this.socket.close()},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>2e7||(this.opened?(this.logger.log(\"real send\",e),this.socket.send(t)):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketOpen=function(){var t=this;this.logger.log(\"[DEBUG] connection opened\"),this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(e){t.send(e)})),this.messageBeforeSocketOpen=[]),e.prototype.onSocketOpen.call(this)},t.prototype.onSocketClose=function(t){this.opened=!1,log(\"[DEBUG] connection closed\"),e.prototype.onSocketClose.call(this,t)},t.prototype.onSocketError=function(t){e.prototype.onSocketError.call(this,t),error$1(\"[DEBUG] connection onerror\",t)},t}(WebSocketBaseImpl),WebSocketNativeImpl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t.useFromRemoteDebugFlag=!0,t._openInvoked=!1,t}return __extends(t,e),t.prototype.delayOpenOnce=function(){var e=this;this._openInvoked||(setTimeout((function(){e.open()}),0),this._openInvoked=!0)},t.prototype.open=function(){var e=this;if(!this.url)throw new Error(\"url is empty\");this.socketTask=abridge.connectSocket({__taskIdPrefix:this.taskIdPrefix,fromRemoteDebug:this.useFromRemoteDebugFlag,url:this.url,header:this.header,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(t){e.opened=!1,e.onSocketClose(t)})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.send=function(e){var t=\"string\"==typeof e?e:JSON.stringify(e);t.length>this.maxBodyLength?debug(\"[WebSocketNativeImpl] message length \".concat(t.length,\" exceed maxBodyLength \").concat(this.maxBodyLength)):this.opened?this.socketTask.send({fromRemoteDebug:this.useFromRemoteDebugFlag,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t)},t.prototype.close=function(){this.opened&&this.socketTask.close({fromRemoteDebug:this.useFromRemoteDebugFlag})},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.onSocketOpen(),this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.send(t)})),this.messageBeforeSocketOpen=[]))},t}(WebSocketBaseImpl),isWebPlatform=!1;if(\"undefined\"!=typeof WebSocket&&WebSocket.OPEN){isWebPlatform=!0;try{delete workerGlobal.WebSocket}catch(e){}}var SocketTaskImpl=isWebPlatform?WebSocketBrowserImpl:WebSocketNativeImpl;function enable$3(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getResponseBody(e){var t=e.params.requestId,n=getInjector(),r=n.getNetworkRecorder(),o=r.getRequest(t);o?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:o.isBase64Body,body:o.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),r.removeRequest(t)}var network=Object.freeze({__proto__:null,enable:enable$3,getResponseBody:getResponseBody});function enable$2(e){getInjector().getWorkerSocket().send({id:e.id,result:{}});var t=getConsoleOverrides();t&&t.createExecutionContext()}function getProperties(e){var t=getConsoleOverrides();t&&getInjector().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})}function compileScript(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function evaluate(payload){var consoleOverrides=getConsoleOverrides();if(consoleOverrides){var parser=consoleOverrides.parser;\"function\"!=typeof eval&&(workerGlobal.eval=evalFunc);try{var returnValue=function(){return eval(payload.params.expression)}();getInjector().getWorkerSocket().send({id:payload.id,result:{result:parser.parseObject(returnValue)}})}catch(e){e.stack=\"\".concat(e.name,\": \").concat(e.message),getInjector().getWorkerSocket().send({id:payload.id,result:{exceptionDetails:{columnNumber:20,exception:parser.parseObject(e),exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:parser.parseObject(e)}})}}}var runtime=Object.freeze({__proto__:null,compileScript:compileScript,enable:enable$2,evaluate:evaluate,getProperties:getProperties}),stringify$1={exports:{}};!function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?\"[Circular ~]\":\"[Circular ~.\"+r.slice(0,n.indexOf(t)).join(\".\")+\"]\"}),function(o,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?r.splice(i,1/0,o):r.push(o),~n.indexOf(a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a:e.call(this,o,a)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n}(stringify$1,stringify$1.exports);var stringifyExports=stringify$1.exports,stringify=getDefaultExportFromCjs(stringifyExports),sharedGetCurrentPages;function callGetCurrentPages(){return sharedGetCurrentPages?sharedGetCurrentPages():workerGlobal.getCurrentPages?(sharedGetCurrentPages=workerGlobal.getCurrentPages)():workerGlobal.AFAppX&&workerGlobal.AFAppX.getCurrentPages?(sharedGetCurrentPages=workerGlobal.AFAppX.getCurrentPages)():[]}function getPagesData(e){var t;var n=getInjector().getRuntime();t=null==n?callGetCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:stringify(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:stringify(t.data),route:t.route}})),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})}function setPageData(e){var t,n=e.params||{},r=n.viewId,o=n.data;var a=getInjector().getRuntime();t=null==a?callGetCurrentPages().filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0]:a.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&\"\".concat(e.$viewId)===r}))[0],t&&o&&t.setData(o)}function setComponentData(e){var t=e.params||{},n=t.targetId,r=t.data;if(-1!==n){var o=getInjector().getRuntime().getNav().getTopInstance().getComponentLogicInstance(n,!0);o&&o.publicInstance.setData(r)}}var data=Object.freeze({__proto__:null,getPagesData:getPagesData,setComponentData:setComponentData,setPageData:setPageData});function getStorageItem(e){return new Promise((function(t){appxBridge.getStorage({key:e,success:function(n){var r=n.data;t({key:e,value:r,type:typeof r})},fail:function(){t()}})}))}function getStorageInfo(e){appxBridge.getStorageInfo({success:function(t){Promise.all(t.keys.map((function(e){return getStorageItem(e)}))).then((function(n){var r=n.filter((function(e){return e}));getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:r}})}))}})}function clearStorage(){appxBridge.clearStorage()}function removeStorage(e){var t=e.params;t&&t.key&&appxBridge.removeStorage({key:t.key})}function setStorage(e){var t=e.params;t&&t.key&&appxBridge.setStorage({key:t.key,data:t.value})}var storage=Object.freeze({__proto__:null,clearStorage:clearStorage,getStorageInfo:getStorageInfo,removeStorage:removeStorage,setStorage:setStorage});function enable$1(){var e=getInjector();e.setApplogEnabled(!0),e.getMessageQueue().sendQueuedMessages()}var applog=Object.freeze({__proto__:null,enable:enable$1});function getLoadManager(){var e=getInjector().getRuntime();if(\"object\"==typeof e){var t=\"function\"==typeof e.getControllableLoadManager&&e.getControllableLoadManager();if(t.addLoadHook)return t}}function enable(e){getLoadManager()?getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}}):getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,error:\"not supported\"})}function startInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.start(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function stopInterception(e){var t;null===(t=getLoadManager())||void 0===t||t.stop(),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function getAllSubPackages(e){var t;getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{roots:(null===(t=getLoadManager())||void 0===t?void 0:t.getAllSubPackages())||[]}})}function continueLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.continueLoadSubPackage(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function failLoadSubPackage(e){var t;null===(t=getLoadManager())||void 0===t||t.simulationSubPackageLoadFailed(e.params.root),getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,result:{}})}function relaunch(e){if(\"undefined\"!=typeof $AppxFramework&&$AppxFramework.$Simulator&&$AppxFramework.$Simulator.reLaunchFromSchema){var t=e.params.compileMode,n=t.page;n&&t.pageQuery&&(n+=\"?\".concat(t.pageQuery));var r={};t.referrerAppId&&(r.appId=t.referrerAppId),t.referrerExtraData&&(r.extraData=t.referrerExtraData),$AppxFramework.$Simulator.reLaunchFromSchema({pageWithQuery:n,appQuery:t.query,referrerInfo:r,scene:t.chInfoCode})}else getInjector().getWorkerSocket().send({id:e.id,ext:e.ext,error:\"not supported\"})}var loadManager=Object.freeze({__proto__:null,continueLoadSubPackage:continueLoadSubPackage,enable:enable,failLoadSubPackage:failLoadSubPackage,getAllSubPackages:getAllSubPackages,relaunch:relaunch,startInterception:startInterception,stopInterception:stopInterception});function ping(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}function getSystemInfo(e){appxBridge.getSystemInfo({success:function(t){var n={userAgent:getInjector().getAgentContext().userAgent,sdkVersion:appxBridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};getInjector().getWorkerSocket().send({id:e.id,result:n})}})}function getStartupParams(e){var t=getStartupParamsSync();getInjector().getWorkerSocket().send({id:e.id,result:t})}var index=Object.freeze({__proto__:null,Applog:applog,Data:data,LoadManager:loadManager,Storage:storage,getStartupParams:getStartupParams,getSystemInfo:getSystemInfo,ping:ping});function getResourceTree(e){getInjector().getWorkerSocket().send({id:e.id,result:{}})}var page=Object.freeze({__proto__:null,getResourceTree:getResourceTree}),protoHandler=Object.freeze({__proto__:null,Network:network,Page:page,Runtime:runtime,Tiny:index}),DebugPanelRILHelper=function(e){function t(){return e.call(this,\"debug-panel\")||this}return __extends(t,e),t.prototype.updatePanel=function(e,t){this.dispatch(DEBUG_PANEL,e,t)},t.prototype.setupExitApp=function(){this.dispatch(SETUP_EXIT_APP)},t}(RILDispatchHelper),ExitAppDispatcher=function(e){function t(){return e.call(this,\"exit-app\")||this}return __extends(t,e),t.prototype.exitApp=function(){this.dispatch(CALL_EXIT_APP)},t}(RILDispatchHelper),WorkerSocket=function(){function e(e,t){var n=this;this.isMessageReceived=!1,this.messageBeforeReceived=[],this.i18n=i18n$2,this.panelView=new DebugPanelRILHelper,this.exitAppDispatcher=new ExitAppDispatcher,this.socket=t||new SocketTaskImpl(e,{taskIdPrefix:\"remote_debug_tbwr\"}),this.panelView.setupExitApp(),this.socket.on(\"error\",(function(e){var t=getEventBus(),r=e?e.errorMessage||e.message:JSON.stringify(e);!isSilentMode()&&t.requireLock(\"error-\".concat(r))&&(toast({content:n.i18n.format(\"errorExit\")+\", \"+r,duration:2e3}),n.panelView.updatePanel(EPanelStatus.Disconnected),setTimeout((function(){t.releaseLock(\"error-\".concat(r))}),2e3))})),this.socket.on(\"close\",(function(){n.panelView.updatePanel(EPanelStatus.Disconnected),n.exitAppDispatcher.exitApp()})),this.socket.on(\"open\",(function(){n.socket.send({method:\"MiniAppLog.enable\",params:{},ext:{origin:EBugmePanelId.AppLog}}),throttledEmitDataChangedEvent()})),workerGlobal&&workerGlobal.__ril_dispatcher__&&workerGlobal.__ril_dispatcher__.subscribe(\"tyroRequest\",(function(e){n.onDebugProtocol(e)})),this.socket.on(\"message\",(function(e){var t;n.isMessageReceived||(n.isMessageReceived=!0,n.messageBeforeReceived.forEach((function(e){n.socket.send(e)})),n.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void(\"CLIENT:LEAVE\"===e?n.close():\"CLIENT:JOIN\"===e&&n.panelView.updatePanel(EPanelStatus.Connected))}n.onDebugProtocol(t)})),this.panelView.updatePanel(EPanelStatus.Connecting)}return e.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.socket.send(e):this.messageBeforeReceived.push(\"string\"==typeof e?e:JSON.stringify(e))},e.prototype.open=function(){this.panelView.setupExitApp(),this.socket.open()},e.prototype.close=function(){this.socket.close()},e.prototype.send=function(e){this.socket.send(e)},e.prototype.onDebugProtocol=function(e){var t=getProtocolHandler(e.method);t?t(e):this.socket.send({id:e.id,error:{code:-32e3,message:\"unsupported\"}})},e}();function getProtocolHandler(e){if(e){for(var t=e.split(\".\"),n=protoHandler,r=0,o=t;r<o.length;r++){if(!(n=n[o[r]]))break}return n}}var ignoreDomain=/\\/((tyro\\/agent|bugme\\/channel\\/paused|bugme\\/channel\\/resume)$|bugme\\/channel\\/checkHost)/,DebugEventListener=function(){function e(){this.isIOS=getInjector().getAgentContext().isIOS,this.isLyra=getInjector().getAgentContext().isLyra}return e.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},e.prototype.onNetworkRequest=function(e){if(!ignoreDomain.test(e.url)){var t=createProtocol4RequestWillBeSent(e),n=getInjector();n.getWorkerSocket().send(t),n.getNetworkRecorder().setRequest(e.requestId,{method:t.params.request.method,requestHeaders:t.params.request.headers,url:e.url})}},e.prototype.onNetworkResponse=function(e){if(!ignoreDomain.test(e.url)){var t=getInjector(),n=t.getNetworkRecorder().getRequest(e.requestId)||{};t.getWorkerSocket().send(createProtocol4ResponseReceived(e,n)),t.getWorkerSocket().send(createProtocol4LoadingFinished(e)),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},e.prototype.onNetworkError=function(e){ignoreDomain.test(e.url)||getInjector().getWorkerSocket().send(createProtocol4LoadingFailed(e))},e.prototype.onStorageChanged=function(e){var t={};e.data&&Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),getInjector().getWorkerSocket().send({method:\"Tiny.Storage.storageChanged\",params:{data:t},ext:{origin:EBugmePanelId.Storage}})},e.prototype.onSubpackageLoaded=function(e){\"success\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageLoaded\",params:{root:e.rootName}}):\"loading\"===e.status?getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageRequested\",params:{root:e.rootName}}):\"fail\"===e.status&&getInjector().getWorkerSocket().send({method:\"Tiny.LoadManager.subPackageFailed\",params:{root:e.rootName}})},e.prototype.listenDebugEvent4IOS=function(){var e,t=this;appxBridge.on(EWorkerAppEvent.DebugNetworkRequest,(function(e){t.onNetworkRequest(e.data)})),appxBridge.on(EWorkerAppEvent.DebugNetworkResponse,(function(e){t.onNetworkResponse(e.data)})),appxBridge.on(EWorkerAppEvent.DebugNetworkError,(function(e){t.onNetworkError(e.data)})),appxBridge.on(EWorkerAppEvent.DebugStorageChanged,(function(e){t.onStorageChanged(e.data)})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e.prototype.listenDebugEvent=function(){var e,t=this;appxBridge.on(EWorkerAppEvent.DebugConsole,(function(e){var n,r=e.data,o=r.type,a=r.content;try{n=JSON.parse(a)}catch(e){return}switch(o){case EWorkerAppEvent.DebugNetworkRequest:t.onNetworkRequest(n);break;case EWorkerAppEvent.DebugNetworkResponse:t.onNetworkResponse(n);break;case EWorkerAppEvent.DebugNetworkError:t.onNetworkError(n);break;case EWorkerAppEvent.DebugStorageChanged:t.onStorageChanged(n)}})),null===(e=getLoadManager())||void 0===e||e.addLoadHook((function(e){t.onSubpackageLoaded(e)}))},e}(),WorkerListener=function(){function e(){this.inited=!1}return e.prototype.setup=function(){if(this.inited)return!1;if(/^1\\./.test(appxBridge.SDKVersion)){var e=debounce(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);appxBridge.on(EWorkerAppEvent.PageResume,e),appxBridge.on(EWorkerAppEvent.PagePause,e)}appxBridge.on(EWorkerAppEvent.DebugPanelClick,this.onDebugPanelClick),appxBridge.on(EWorkerAppEvent.DebugMaskButtonClick,this.onDebugMaskButtonClick),this.debugEventListener=new DebugEventListener,this.debugEventListener.setup(),this.inited=!0},e.prototype.onPageResumeOrPause=function(){throttledEmitDataChangedEvent()},e.prototype.onDebugPanelClick=function(){var e=getInjector().getWorkerSocket();e&&e.close()},e.prototype.onDebugMaskButtonClick=function(){},e}(),globalListener;function getGlobalWorkerEventListener(){return globalListener||(globalListener=new WorkerListener),globalListener}function getChannelUrl(){if(\"string\"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e,t=getInjector().getAgentContext(),n=t.channel,r=t.channelId,o=t.channelConfigKey;\"\"!==n?e=n:e=\"wss://\"+(channelDomainConfig[o]||channelDomainConfig[0]).starlinkgw;return\"\".concat(e,\"/bugme/client_w/\").concat(r)}var DebugAgent=function(){function e(){}return e.prototype.init=function(e){getGlobalWorkerEventListener().setup(),this.makeConnection(e)},e.prototype.makeConnection=function(e){var t=getInjector(),n=getChannelUrl(),r=new WorkerSocket(n,null==e?void 0:e.socketTaskImpl);t.setWorkerSocket(r),t.getAgentContext().isIOS?r.open():setTimeout((function(){r.open()}),1200)},e}(),globalAgent;function getAgent(){return globalAgent||(globalAgent=new DebugAgent),globalAgent}var LOG_STYLE=\"color: #3D80F3; font-weight: bold;\";function getStaticPlugins(){var e=getStartupParamsSync().__appxPluginsExtra||{},t=Object.keys(e).map((function(t){return{plugin_id:t,deploy_version:e[t].version}}));try{var n=getInjector().getRuntime().getMeta().getAppMeta().plugins||{};Object.entries(n).forEach((function(n){var r=n[0],o=n[1];o.lazy&&!e[r]&&t.push({plugin_id:\"\".concat(o.provider,\"(lazy)\"),deploy_version:\"Not Load\"})}))}catch(e){}return t}function printStaticPlugins(){var e=getStaticPlugins();e.length&&(console.log(\"%c--- Static Plugin List ---\",LOG_STYLE),console.table(e))}var loadPluginName=\"loadPlugin\";function hookLoadPlugin(){var e,t=Object.getOwnPropertyDescriptor(workerGlobal.my,loadPluginName);t&&!t.configurable||(t&&(e=workerGlobal.my.loadPlugin),Object.defineProperty(workerGlobal.my,loadPluginName,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(\"object\"==typeof t[0]){var r=t[0].success;t[0].success=function(){printDynamicPlugin(t[0].plugin),void 0!==r&&r.apply(this,arguments)}}return e.apply(void 0,t)}},set:function(t){e=t},enumerable:!0,configurable:!0}))}function getExtensionVersions(){var e=getInjector().getRuntime().getMiniExtensionManager();if(e.extensionVersions)return e.extensionVersions;if(e.getInitedMiniExtensionInfo){var t=e.getInitedMiniExtensionInfo(),n=new Map;return t.forEach((function(e){n.set(e.id,e.version||\"-\")})),n}return new Map}function printDynamicPlugin(e){var t=e.split(\"@\")[0],n=getExtensionVersions();setTimeout((function(){console.log(\"%c--- Loaded Dynamic Plugin ---\",LOG_STYLE),console.table([{plugin_id:t,deploy_version:n.get(t)}])}),100)}function setupPluginInfo(){console.log(\"%cTip: you can type `printPlugins()` anytime to print loaded plugins info\",\"color: #3D80F3;\"),hookLoadPlugin(),printStaticPlugins(),workerGlobal.printPlugins=printPlugins}function isUsePlugin(){var e=getInjector().getRuntime();if(void 0===e)return!1;var t=e.getMeta();if(t){var n=void 0;if(\"function\"==typeof t.getAppMeta?n=t.getAppMeta():void 0!==t.meta&&(n=t.meta),n)return\"object\"==typeof n.plugins&&0!==Object.keys(n.plugins).length||n.useDynamicPlugins}return!1}function printPlugins(){var e;printStaticPlugins();var t=(null===(e=getStartupParamsSync())||void 0===e?void 0:e.__appxPluginsExtra)||{},n=getInjector().getRuntime().getMiniExtensionManager(),r=[];if(n.extensionVersions)n.extensionVersions.forEach((function(e,n){void 0===t[n]&&r.push({plugin_id:n,deploy_version:e})}));else if(n.getInitedMiniExtensionInfo){n.getInitedMiniExtensionInfo().forEach((function(e){if(void 0===t[e.id]){var n={plugin_id:e.id,deploy_version:e.version||\"-\"};r.push(n)}}))}console.log(\"%c--- Loaded Dynamic Plugin List ---\",LOG_STYLE),console.table(r)}var version=\"2.2.9\",logger=getWorkerLogger();function main(e){if(!isInPluginContext()&&!workerGlobal.__BUGME_ON__){workerGlobal.__BUGME_ON__=!0,logger.silentLog(\"init worker remote -\",version);try{registerAppxHook(),initConsoleOverrides(),hookRequirePlugin()}catch(e){error(\"sync task error\",e)}runAfterAppx((function(){runAfterAppXBridgeReady((function(){try{getAgent().init(e),isUsePlugin()&&setupPluginInfo()}catch(e){error(\"init agent error\",e)}}))}))}}try{main()}catch(e){error(\"init error\",e)}})();","bugmeWPreview":"!function(){\"use strict\";var e=\"object\"==typeof self&&self||\"object\"==typeof window&&window||\"object\"==typeof global&&global||Function(\"return this\")(),t=e.importScripts,n=e.AlipayJSBridge,r=n&&n.call;\"function\"==typeof __eval?__eval:\"function\"==typeof eval&&eval;var o=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var a=\"~\",s=\"\\\\x\"+(\"0\"+a.charCodeAt(0).toString(16)).slice(-2),c=\"\\\\\"+s,u=new RegExp(s,\"g\"),l=new RegExp(c,\"g\"),p=new RegExp(\"(?:^|([^\\\\\\\\]))\"+c),f=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},g=String;function d(e,t,n){return t instanceof Array?function(e,t,n){for(var r=0,o=t.length;r<o;r++)t[r]=d(e,t[r],n);return t}(e,t,n):t instanceof g?t.length?n.hasOwnProperty(t)?n[t]:n[t]=function(e,t){for(var n=0,r=t.length;n<r;e=e[t[n++].replace(l,a)]);return e}(e,t.split(a)):e:t instanceof Object?function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(t[r]=d(e,t[r],n));return t}(e,t,n):t}var h={stringify:function(e,t,n,r){return h.parser.stringify(e,function(e,t,n){var r,o,i=!1,l=!!t,p=[],g=[e],d=[e],h=[n?a:\"[Circular]\"],v=e,b=1;return l&&(o=\"object\"==typeof t?function(e,n){return\"\"!==e&&t.indexOf(e)<0?void 0:n}:t),function(e,t){return l&&(t=o.call(this,e,t)),i?(v!==this&&(r=b-f.call(g,this)-1,b-=r,g.splice(b,g.length),p.splice(b-1,p.length),v=this),\"object\"==typeof t&&t?(f.call(g,t)<0&&g.push(v=t),b=g.length,(r=f.call(d,t))<0?(r=d.push(t)-1,n?(p.push((\"\"+e).replace(u,s)),h[r]=a+p.join(a)):h[r]=h[0]):t=h[r]):\"string\"==typeof t&&n&&(t=t.replace(s,c).replace(a,s))):i=!0,t}}(e,t,!r),n)},parse:function(e,t){return h.parser.parse(e,function(e){return function(t,n){var r=\"string\"==typeof n;return r&&n.charAt(0)===a?new g(n.slice(1)):(\"\"===t&&(n=d(n,n,{})),r&&(n=n.replace(p,\"$1\"+a).replace(c,s)),e?e.call(this,t,n):n)}}(t))},parser:JSON},v=h,b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)};var y,m,w,_,O,E,P,k,j,A,S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)};function L(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function I(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function C(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError(\"Generator is already executing.\");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function T(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function D(e,t,n,r){if(void 0===r&&(r=!1),e||t||n)return x.bind(null,e,t,n,r)}function x(e,t,n,r,o){var i=!1;r?i=!!(o=function(e){\"string\"==typeof e.error&&(e.error=parseInt(e.error,10));0===e.error&&(delete e.error,delete e.errorMessage);return e}(o)).error:\"object\"==typeof o&&(i=\"error\"in o||\"errorMessage\"in o),i&&\"function\"==typeof t&&t(o),i||\"function\"!=typeof e||e(o),\"function\"==typeof n&&n(o)}\"function\"==typeof SuppressedError&&SuppressedError,function(e){e.Connecting=\"connecting\",e.Connected=\"connected\",e.Disconnected=\"disconnected\"}(y||(y={})),function(e){e.enable=\"Debugger.enable\",e.disable=\"Debugger.disable\",e.evaluateOnCallFrame=\"Debugger.evaluateOnCallFrame\",e.getPossibleBreakpoints=\"Debugger.getPossibleBreakpoints\",e.pause=\"Debugger.pause\",e.removeBreakpoint=\"Debugger.removeBreakpoint\",e.resume=\"Debugger.resume\",e.setBreakpointByUrl=\"Debugger.setBreakpointByUrl\",e.setBreakpointsActive=\"Debugger.setBreakpointsActive\",e.stepInto=\"Debugger.stepInto\",e.stepOver=\"Debugger.stepOver\",e.stepOut=\"Debugger.stepOut\",e.getScriptSource=\"Debugger.getScriptSource\",e.setPauseOnExceptions=\"Debugger.setPauseOnExceptions\",e.setSkipAllPauses=\"Debugger.setSkipAllPauses\"}(m||(m={})),function(e){e.paused=\"Debugger.paused\",e.resumed=\"Debugger.resumed\",e.scriptParsed=\"Debugger.scriptParsed\"}(w||(w={})),function(e){e.enable=\"Runtime.enable\",e.disable=\"Runtime.disable\",e.evaluate=\"Runtime.evaluate\",e.compileScript=\"Runtime.compileScript\",e.getProperties=\"Runtime.getProperties\",e.callFunctionOn=\"Runtime.callFunctionOn\",e.releaseObjectGroup=\"Runtime.releaseObjectGroup\",e.globalLexicalScopeNames=\"Runtime.globalLexicalScopeNames\",e.runIfWaitingForDebugger=\"Runtime.runIfWaitingForDebugger\"}(_||(_={})),function(e){e.executionContextCreated=\"Runtime.executionContextCreated\",e.consoleAPICalled=\"Runtime.consoleAPICalled\",e.exceptionThrown=\"Runtime.exceptionThrown\"}(O||(O={})),function(e){e.enable=\"Page.enable\",e.getResourceTree=\"Page.getResourceTree\"}(E||(E={})),function(e){e.setAutoAttach=\"Target.setAutoAttach\"}(P||(P={})),function(e){e.targetCreated=\"Target.targetCreated\",e.targetDestroyed=\"Target.targetDestroyed\",e.targetInfoChanged=\"Target.targetInfoChanged\",e.attachedToTarget=\"Target.attachedToTarget\"}(k||(k={})),function(e){e[e.NormalError=-32e3]=\"NormalError\"}(j||(j={})),function(e){e.Other=\"other\",e.Exception=\"exception\"}(A||(A={})),Object.defineProperty.bind(Object),Object.defineProperties.bind(Object);var R=Object.getOwnPropertyDescriptor.bind(Object);Object.freeze.bind(Object),Object.keys.bind(Object);var B=Object.prototype.hasOwnProperty;function M(e,t){return B.call(e,t)}Object.assign.bind(Object),Object.getOwnPropertyNames.bind(Object),Object.create.bind(Object),Object.setPrototypeOf&&Object.setPrototypeOf.bind(Object),Object.getPrototypeOf&&Object.getPrototypeOf.bind(Object);var N=\"object\"==typeof console,F=N&&console.log?console.log.bind(console):function(){};N&&console.warn&&console.warn.bind(console);var H=N&&console.error?console.error.bind(console):function(){};R(M,\"name\").configurable;var q,U=3e3;function X(n,r){var o,i=function(t,n,r){var o=\"_sw_jsonp_\".concat(++U);e[o]=function(t){e[o]=null,r(t)};var i={action:t,callback:o,data:n};return JSON.stringify(i)}(n,r,(function(e){o=e})),a=function(e){var t=encodeURIComponent(e);return\"https://alipay.kylinbridge/?data=\".concat(t)}(i);try{t(a)}catch(e){H(\"invokeHostBridgeCallSync4KylinBridge\",e)}return\"string\"==typeof o?function(e){try{return JSON.parse(e)}catch(e){}}(o):o}\"object\"==typeof n&&(q={call:function(e,t,n){r(e,t,n)},callSync:function(e,t){return n.callSync?n.callSync(e,t):X(e,t)}});var G,J,W,$=!1,Q=[];function V(e,t){for(var n=[],r=0,o=e.split(t);r<o.length;r++){var i=o[r];n.push(parseInt(i,10))}return n}new Promise((function(e){J=e})),\"object\"==typeof my?(G=my,J()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge?(G=AFAppX.bridge,J()):function(n){if(\"undefined\"!=typeof AFAppX)n();else if(Q.push(n),!$){$=!0;var r=t||e.importScripts;r?e.importScripts=function(t){r(t),/af-appx\\.worker\\.min\\.js$/.test(t)&&(Q.forEach((function(e){return e()})),Q=[],e.importScripts=r)}:setTimeout((function(){Q.forEach((function(e){return e()})),Q=[]}),3e3)}}((function(){\"object\"==typeof my?(G=my,J()):\"object\"==typeof AFAppX&&\"object\"==typeof AFAppX.bridge&&(G=AFAppX.bridge,J())})),function(e){e.pageResume=\"pageResume\",e.pagePause=\"pagePause\",e.resume=\"resume\",e.hashchange=\"hashchange\"}(W||(W={}));var K={0:{openchannel:\"openchannel.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},1:{openchannel:\"miniprogram.alipay.com\",starlinkgw:\"starlinkgw.alipay.com/boatman\"},2:{openchannel:\"openchannel-pre.alipay.com\",starlinkgw:\"starlinkgw-pre.alipay.com/boatman\"}};var z,Y=/iPhone|iPad|iOS/i;function Z(){if(z)return z;if(\"undefined\"!=typeof navigator){var e=\"undefined\"!=typeof navigator&&(navigator.swuserAgent||navigator.userAgent)||\"\";z=e.indexOf(\"Android\")>-1?2:e.match(Y)?1:0}else z=\"undefined\"!=typeof WXEnvironment?\"iOS\"===WXEnvironment.platform?1:2:1;return z}var ee=function(){function e(e,t,n){this.type=String(e),this.engineType=n,this.data=t,this._preventDefault=!1}return e.prototype.preventDefault=function(){this._preventDefault=!0},e.prototype.isDefaultPrevented=function(){return!!this._preventDefault},e}();var te,ne=function(){function e(e,t){this.name=e,this.target=t,this.callbackHandlers=new Map,this.callbackBeforeDispatchInterceptor=new Map,this._callbackGlobalMap=new Map,t&&(t.addEventListener&&(this.baseAddEventListener=t.addEventListener.bind(t)),t.removeEventListener&&(this.baseRemoveEventListener=t.removeEventListener.bind(t)))}return e.prototype.tryInitEventListenerOnWindow=function(e){var t,n,r=this;if(!(this.callbackHandlers.has(e)&&(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)>0&&this._callbackGlobalMap.has(e))){this.callbackHandlers.set(e,[]);var o=function(e){r.dispatchEvent(e)};this._callbackGlobalMap.set(e,o),null===(n=this.baseAddEventListener)||void 0===n||n.call(this,e,o)}},e.prototype.tryRemoveEventListenerInTarget=function(e){var t,n;if(!this.callbackHandlers.has(e)||0===(null===(t=this.callbackHandlers.get(e))||void 0===t?void 0:t.length)){var r=this._callbackGlobalMap.get(e);r&&(null===(n=this.baseRemoveEventListener)||void 0===n||n.call(this,e,r),this._callbackGlobalMap.delete(e))}},e.prototype.addEventListener=function(e,t){this.callbackHandlers.has(e)||this.tryInitEventListenerOnWindow(e);var n=this.callbackHandlers.get(e);null==n||n.push({fn:t})},e.prototype.removeEventListener=function(e,t){var n=this.callbackHandlers.get(e);n.forEach((function(e,r){e.fn===t&&n.splice(r,1)})),this.tryRemoveEventListenerInTarget(e)},e.prototype.dispatchEvent=function(e){var t,n=null!==(t=e.type)&&void 0!==t?t:e.name;if(this.callbackHandlers&&this.callbackHandlers.has(n)){var r=this.callbackHandlers.get(n),o=this.callbackBeforeDispatchInterceptor.get(n);if(o&&o.length>0)for(var i=0;i<o.length;i++){if(!(0,o[i])(e))return}for(var a=0,s=r;a<s.length;a++){if(s[a].fn.call(null,e),e.defaultPrevented)break}}},e.prototype.addInterceptor=function(e,t){this.callbackBeforeDispatchInterceptor.has(e)||this.callbackBeforeDispatchInterceptor.set(e,[]);var n=this.callbackBeforeDispatchInterceptor.get(e);null==n||n.push(t)},e.prototype.patch=function(){var e=this;this.disposePatch&&this.disposePatch();var t=this.target;t&&(t.addEventListener&&(t.addEventListener=this.addEventListener.bind(this)),t.removeEventListener&&(t.removeEventListener=this.removeEventListener.bind(this))),(this.baseAddEventListener||this.baseRemoveEventListener)&&(this.disposePatch=function(){e.disposePatch=void 0,t&&(e.baseAddEventListener&&(t.addEventListener=e.baseAddEventListener),e.baseRemoveEventListener&&(t.removeEventListener=e.baseRemoveEventListener))})},e}();function re(e){return void 0===e&&(e=300),new Promise((function(t){setTimeout((function(){t()}),e)}))}new(function(){function t(){var t=this;this.eventMap={},this.queue=[],this.enableQueue=!1,this.globalEventListener=new ne(\"workerGlobal\",e),this.documentEventListeners=new ne(\"document\",e&&e.document),this.globalEventListener.addEventListener(\"message\",(function(e){t.enMessageQueue(e)}));this.pushEventListener.addEventListener(\"push\",(function(e){var n=e.data;if(n&&(n.func||n.beforeunload)){var r=n.func||\"beforeunload\",o=function(e,t){var n,r,o=t.param,i=t.viewId+\"\";o&&\"object\"==typeof o&&2===Z()?(n=o.data,o.type,r=L(o,[\"data\",\"type\"])):n=o,n?n.instanceId=i:n={instanceId:i};var a=new ee(e,n,1);if(r)try{Object.assign(a,r)}catch(e){}return a}(r,n),i=t.eventMap[r];i&&i.forEach((function(e){e(o)}))}t.enPushQueue(e)}))}return Object.defineProperty(t.prototype,\"pushEventListener\",{get:function(){return e&&e.document?this.documentEventListeners:this.globalEventListener},enumerable:!1,configurable:!0}),t.prototype.patch=function(){this.globalEventListener.patch(),this.documentEventListeners.patch()},t.prototype.enPushQueue=function(e){this.enableQueue&&(F(\"queued push event\",e),this.queue.push({type:\"push\",e:e}))},t.prototype.enMessageQueue=function(e){this.enableQueue&&(F(\"queued message event\",e),this.queue.push({type:\"message\",e:e}))},t.prototype.startQueueEvent=function(){F(\"startQueueEvent\"),this.enableQueue=!0},t.prototype.replayQueueEvent=function(){for(F(\"replayQueueEvent\",this.queue.length),this.enableQueue=!1;this.queue.length;){var e=this.queue.shift();\"push\"===e.type?this.pushEventListener.dispatchEvent(e.e):this.globalEventListener.dispatchEvent(e.e)}},t.prototype.on=function(e,t){var n=this;return this.eventMap[e]||(this.eventMap[e]=[]),this.eventMap[e].push(t),function(){n.off(e,t)}},t.prototype.off=function(e,t){this.eventMap[e]&&(this.eventMap[e]=this.eventMap[e].filter((function(e){return e!==t})))},t.prototype.dispose=function(){var e;null===(e=this.eventDispose)||void 0===e||e.dispose()},t}()),function(e){e.DebugPanelClick=\"tinyRemoteDebugPanelButtonClick\",e.DebugMaskButtonClick=\"tinyRemoteDebugMaskButtonClick\"}(te||(te={}));var oe=function(){function t(t,n,r){this.prefix=n,this.options=r,this.message=[];var o=\"__bm_log\".concat(t,\"__message__\");e[o]=this.message}return t.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.log.apply(console,T([this.prefix],e,!1))},t.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.debug.apply(console,T([this.prefix],e,!1))},t.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.error.apply(console,T([this.prefix],e,!1))},t.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e),this.options.writeToConsole&&console.warn.apply(console,T([this.prefix],e,!1))},t.prototype.silentLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.message.push(e)},t}();var ie=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)},ae=\"object\"==typeof o&&o&&o.Object===Object&&o,se=\"object\"==typeof self&&self&&self.Object===Object&&self,ce=ae||se||Function(\"return this\")(),ue=ce,le=function(){return ue.Date.now()},pe=/\\s/;var fe=function(e){for(var t=e.length;t--&&pe.test(e.charAt(t)););return t},ge=/^\\s+/;var de=function(e){return e?e.slice(0,fe(e)+1).replace(ge,\"\"):e},he=ce.Symbol,ve=he,be=Object.prototype,ye=be.hasOwnProperty,me=be.toString,we=ve?ve.toStringTag:void 0;var _e=function(e){var t=ye.call(e,we),n=e[we];try{e[we]=void 0;var r=!0}catch(e){}var o=me.call(e);return r&&(t?e[we]=n:delete e[we]),o},Oe=Object.prototype.toString;var Ee=_e,Pe=function(e){return Oe.call(e)},ke=he?he.toStringTag:void 0;var je=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":ke&&ke in Object(e)?Ee(e):Pe(e)},Ae=function(e){return null!=e&&\"object\"==typeof e};var Se=de,Le=ie,Ie=function(e){return\"symbol\"==typeof e||Ae(e)&&\"[object Symbol]\"==je(e)},Ce=/^[-+]0x[0-9a-f]+$/i,Te=/^0b[01]+$/i,De=/^0o[0-7]+$/i,xe=parseInt;var Re=ie,Be=le,Me=function(e){if(\"number\"==typeof e)return e;if(Ie(e))return NaN;if(Le(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=Le(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=Se(e);var n=Te.test(e);return n||De.test(e)?xe(e.slice(2),n?2:8):Ce.test(e)?NaN:+e},Ne=Math.max,Fe=Math.min;var He=function(e,t,n){var r,o,i,a,s,c,u=0,l=!1,p=!1,f=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");function g(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function d(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=i}function h(){var e=Be();if(d(e))return v(e);s=setTimeout(h,function(e){var n=t-(e-c);return p?Fe(n,i-(e-u)):n}(e))}function v(e){return s=void 0,f&&r?g(e):(r=o=void 0,a)}function b(){var e=Be(),n=d(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(h,t),l?g(e):a}(c);if(p)return clearTimeout(s),s=setTimeout(h,t),g(c)}return void 0===s&&(s=setTimeout(h,t)),a}return t=Me(t)||0,Re(n)&&(l=!!n.leading,i=(p=\"maxWait\"in n)?Ne(Me(n.maxWait)||0,t):i,f=\"trailing\"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},b.flush=function(){return void 0===s?a:v(Be())},b},qe=He,Ue=ie;var Xe=i((function(e,t,n){var r=!0,o=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");return Ue(n)&&(r=\"leading\"in n?!!n.leading:r,o=\"trailing\"in n?!!n.trailing:o),qe(e,t,{leading:r,maxWait:t,trailing:o})})),Ge=function(){function t(t,n,r){var o=this;this.connection=t,this.uuid=n,this.agentId=r,this.logger=(e.__logger__||(e.__logger__=new oe(\"r\",\"[boatman] [render]\",{writeToConsole:!1})),e.__logger__),this.onResume=function(){o.logger.log(\"on resume, activate connection, this.connection.isSocketOpened: \".concat(o.connection.isSocketOpened)),o.connection.activate(),o.connection.isSocketOpened||o.checkHostBeforeAgentConnect()},this.onPageResume=function(){o.connection.activate(),o.emitDocumentUpdated()},this.onPagePause=function(){o.throttledPageResume.cancel(),o.connection.inActivate(),o.resetAxmlVisitedState()},this.throttledPageResume=Xe(this.onPageResume,100,{leading:!1})}return t.prototype.tryResume=function(){var e=this;this.connection.isActivated&&this.getResumeUrl().then((function(t){e.request(t,{headers:{\"channel-id\":\"boat_\".concat(e.uuid)}}).then((function(t){return I(e,void 0,void 0,(function(){return C(this,(function(e){try{if(this.logger.log(\"bugme try resume response\",t),JSON.parse(t||\"{}\").success)return this.logger.log(\"bugme resume boatman success\"),[2]}catch(e){this.logger.error(\"bugme resume boatman error\",e)}return[2]}))}))}))}))},t.prototype.checkHostBeforeAgentConnect=function(){var e=this;if(this.connection.isActivated){if(\"string\"==typeof __BUGME_EXTERNAL_URL__&&__BUGME_EXTERNAL_URL__)return this.connection.open(),void this.emitDocumentUpdated();this.getCheckHostUrl().then((function(t){e.request(t).then((function(t){return I(e,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:try{if(this.logger.log(\"bugme check host response\",t),JSON.parse(t||\"{}\").status)return this.connection.open(),this.throttledPageResume(),[2]}catch(e){this.logger.error(\"bugme check host error\",e)}return[4,re()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))}))}))}},t.prototype.emitDocumentUpdated=function(){this.connection.send(JSON.stringify({method:\"DOM.documentUpdated\",params:{bugmeAgentId:this.agentId}}))},t.prototype.resetAxmlVisitedState=function(){},t}(),Je=function(){var e,t,n=function(){var e,t=\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams.appId?__appxStartupParams:\"undefined\"!=typeof AlipayJSBridge&&AlipayJSBridge.startupParams?AlipayJSBridge.startupParams:void 0,n=null==t?void 0:t.remoteCh,r=null==t?void 0:t.channel;e=r||\"wss://\"+(K[n]||K[0]).starlinkgw;return e}();return n.startsWith(\"wss\")?(e=\"https\",t=n.split(\"wss://\")[1]):n.startsWith(\"ws\")&&(e=\"http\",t=n.split(\"ws://\")[1]),\"\".concat(e,\"://\").concat(t,\"/bugme\")};function We(){return\"undefined\"==typeof AlipayJSBridge&&void 0!==G&&\"undefined\"!=typeof getApp&&(G.SDKVersion&&-1===function(e,t){if(e&&t){for(var n=V(e,\".\"),r=V(t,\".\"),o=0,i=0,a=void 0,s=void 0;i<n.length;i++){if((a=r[i]||0)>(s=n[i]||0)){o=-1;break}if(a<s){o=1;break}}return o}return 0}(G.SDKVersion,\"2.0.0\"))}function $e(e,t,n){return function(e,t,n,r){var o=n.originalFetch,i=n.originalCall;if(o){var a=encodeURIComponent(JSON.stringify({action:\"internalAPI\",data:{method:e,param:t}}));o(\"https://alipay.kylinBridge/?data=\".concat(a),{mode:\"no-cors\"}).then((function(e){r(e)})).catch((function(){}))}else i&&(We()?i(e,t,r):i(\"internalAPI\",{method:e,param:t},r))}(e,t,{originalCall:n.AlipayJSBridge&&n.AlipayJSBridge.call,originalFetch:n.fetch},(function(){}))}function Qe(e,t){return void 0===t?\"©undefined\":null===t?\"©null\":t===-1/0?\"©-Infinity\":t===1/0?\"©Infinity\":\"number\"==typeof t&&isNaN(t)?\"©NaN\":\"function\"==typeof t?\"©Function\":t}function Ve(t){t.document&&t.document.addEventListener&&t.document.addEventListener(\"push\",(function(n){var r=n.data;if(r&&\"onMessageFromVConsole\"===r.func){var o;try{var i=r.param.content||r.param.data.content;if(!i)return;o=JSON.parse(i)}catch(e){return}if(o.fromVConsoleToWorker&&\"exec\"===o.method)try{!function(t,n){var r=\"var res = \".concat(t.script,\";console.log(res);\");(function(e){return'sendBack((typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop().data);return;'===e})(t.script)&&(r=\"var res = \".concat(ze,\";console.log(res);\"));var o=n.Function,i=n.__eval;\"function\"==typeof i?i(Ke.replace(/\\$requestId\\$/g,t.requestId).replace(\"$code$\",r)):new o(\"requestId\",\"sendBack\",r)(t.requestId,(function(n){return e.responseToVConsole(t.requestId,n)}))}(o,t)}catch(e){console.warn(\"bugme execute script error\",e)}}}))}!function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.connection=t,o.uuid=n,o.agentId=r,t.addOnCloseHandler((function(){return I(o,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,re()];case 1:return e.sent(),this.checkHostBeforeAgentConnect(),[2]}}))}))})),o.startDebugSession=o.startDebugSession.bind(o),o}(function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.request=function(e,t){return function(e,t){return void 0===t&&(t={method:\"GET\",timeout:5e3}),I(void 0,void 0,void 0,(function(){var n;return C(this,(function(r){return(n=new XMLHttpRequest).timeout=t.timeout,n.open(t.method||\"GET\",e),Object.keys(t.headers||{}).forEach((function(e){n.setRequestHeader(e,t.headers[e])})),n.send(),[2,new Promise((function(e,t){n.onloadend=function(){e(n.responseText)},n.onerror=function(){t(n.responseText)}}))]}))}))}(e,t)},t.prototype.getCheckHostUrl=function(){return I(this,void 0,void 0,(function(){var e;return C(this,(function(t){return e=Je(),[2,\"\".concat(e,\"/channel/checkHost?id=\").concat(this.uuid)]}))}))},t.prototype.getResumeUrl=function(){return I(this,void 0,void 0,(function(){var e;return C(this,(function(t){return e=Je(),[2,\"\".concat(e,\"/channel/resume\")]}))}))},t.prototype.setup=function(){window.location.hash?this.startDebugSession():window.addEventListener(W.hashchange,this.startDebugSession)},t.prototype.startDebugSession=function(){window.removeEventListener(W.hashchange,this.startDebugSession),document.addEventListener(W.pageResume,this.throttledPageResume),document.addEventListener(W.pagePause,this.onPagePause),document.addEventListener(W.resume,this.onResume)}}(Ge);var Ke=\"(function(requestId, sendBack){$code$})($requestId$, function(returnValue){responseToVConsole($requestId$, returnValue)})\",ze='\\nsendBack((function(){\\n var pageLogicInstance = typeof getBugMeContext().getTopPageInstance !== \"undefined\" ? getBugMeContext().getTopPageInstance() : undefined;\\n var pagePublicInstance = pageLogicInstance && pageLogicInstance.getPageLogicInstance().publicInstance || (typeof getCurrentPages !== \"undefined\" ? getCurrentPages() : AFAppX.getCurrentPages()).filter(Boolean).pop()\\n var pageData = pagePublicInstance && pagePublicInstance.data;\\n if (getBugMeContext().Widget === true && pageLogicInstance) {\\n var components = pageLogicInstance.logics.slice(1);\\n return components.reduce(function(prev, c){\\n if (!c.parentComponentId) {\\n prev.push({\\n props: c.publicInstance.props,\\n data: c.publicInstance.data\\n });\\n }\\n return prev;\\n }, []);\\n }\\n return pageData;\\n})());return;\\n';var Ye,Ze={AlipayJSBridge:{call:function(e,t){if(q){var n=t.success,r=t.fail,o=t.complete,i=L(t,[\"success\",\"fail\",\"complete\"]),a=D(n,r,o,!0);q.call(e,i,(function(e){a&&a(e)}))}else G?G.call(e,t):console.warn(\"[ERROR] error when call \".concat(e,\": js bridge does not exists\"))}},document:e.document,Function:e.Function,fetch:e.fetch},et=function(){return Ze};e.getBugMeContext=et;var tt,nt=(e.__worker_logger__||(e.__worker_logger__=new oe(\"w\",\"[boatman] [worker]\",{writeToConsole:!1})),e.__worker_logger__);tt=function(){nt.silentLog(\"init worker preview -\",\"2.2.9\");var t=et();!function(t){Ye=t,e.responseToVConsole=function(e,t){$e(\"tinyDebugConsole\",{type:\"msgFromWorkerToVConsole\",content:v.stringify({requestId:e,returnValue:t},Qe)},Ye)}}(t),Ve(t),function(e){Object.defineProperties(console,[\"log\",\"info\",\"error\",\"debug\",\"warn\"].reduce((function(t,n){var r=console[n];return t[n]={value:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r.apply(console,t);try{if(\"string\"==typeof t[0]&&/^(\\[framework\\]|dispatchEvent|onMessage push|\\[boatman\\]|\\[APPX\\])/.test(t[0]))return;$e(\"tinyDebugConsole\",{content:v.stringify(t.map((function(e){return e instanceof Error?\"\".concat(e.name,\": \").concat(e.message):e})),Qe),type:\"console_\".concat(n)},e)}catch(e){r(\"bugme console error\",e)}},configurable:!0,writable:!0,enumerable:!0},t}),{}))}(t)},e.__BUGME_ON__||(e.__BUGME_ON__=!0,e.AFAppX&&!0===e.AFAppX.__WAIT_UNTIL_BUGME_CONTEXT_READY__?function(t){e.__SET_BUGME_CONTEXT__=function(e){var n;n=e,Ze=S(S({},Ze),n),t()}}(tt):tt())}();","tyroAgent":"!function(){\"use strict\";function getObjectOwnPropertyDescriptors(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,r){return t[r]=Object.getOwnPropertyDescriptor(e,r),t}),Object.create(null))}function isError(e){return\"[object Error]\"===Object.prototype.toString.call(e)||e instanceof Error}function isDate(e){return\"[object Date]\"===Object.prototype.toString.call(e)||e instanceof Date}function isRegExp(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)||e instanceof RegExp}function isPromise(e){return\"[object Promise]\"===Object.prototype.toString.call(e)||e instanceof Promise}var ObjectMapper=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e,t){var r=this;return Array.from(e).map((function(e){return r.mapFromOne(e,t)}))},e.prototype.mapFromOne=function(e,t){switch(typeof e){case\"string\":return this.mapString(e);case\"number\":return this.mapNumber(e);case\"object\":return Array.isArray(e)?this.mapArray(e,\"table\"===t):null===e?this.mapNull():this.mapObject(e,\"table\"===t);case\"function\":return this.mapFunction(e);case\"undefined\":return this.mapUndef();case\"boolean\":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:\"string\",value:e}},e.prototype.mapNumber=function(e){return{type:\"number\",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:\"boolean\",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:\"function\",className:\"Function\",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:\"undefined\"}},e.prototype.mapNull=function(){return{type:\"object\",subtype:\"null\",value:null}},e.prototype.mapObject=function(e,t){var r,n,s=this,i=getObjectOwnPropertyDescriptors(e),o=Object.keys(i),a=this.objectStore.save(e),c=e.constructor?e.constructor.name:\"Object\",p=o.length>5&&!t,u={type:\"object\",className:c,description:c,objectId:a,preview:{type:\"object\",description:c,overflow:p,properties:(p?o.slice(0,5):o).map((function(e){return s.getPropertyPreview4ObjectProperty(e,i[e],t)})).filter(Boolean)}};return isError(e)?(r=\"error\",-1===(n=e.stack||\"\").indexOf(e.name)&&(n=e.toString()+\"\\n\"+n)):isDate(e)?(r=\"date\",n=e.toString()):isRegExp(e)?(r=\"regexp\",n=e.toString()):isPromise(e)&&(r=\"promise\",n=\"Promise\"),r&&(u.subtype=r,u.preview&&(u.preview.subtype=r)),n&&(u.description=n,u.preview&&(u.preview.description=n)),u},e.prototype.mapArray=function(e,t){var r=this,n=e.length>100&&!t,s=\"Array(\"+e.length+\")\";return{type:\"object\",subtype:\"array\",className:\"Array\",description:s,objectId:this.objectStore.save(e),preview:{type:\"object\",subtype:\"array\",description:s,overflow:n,properties:(n?e.slice(0,100):e).map((function(e,n){return r.getPropertyPreview4ArrayProperty(n,e,t)}))}}},e.prototype.getPropertyPreview4ArrayProperty=function(e,t,r){return this.getPropertyPreview4AnyValue(String(e),t,r)},e.prototype.getPropertyPreview4ObjectProperty=function(e,t,r){return t.get?{name:e,type:\"accessor\"}:t.set?void 0:this.getPropertyPreview4AnyValue(e,t.value,r)},e.prototype.getPropertyPreview4AnyValue=function(e,t,r){switch(void 0===r&&(r=!1),typeof t){case\"object\":if(Array.isArray(t)){var n={name:e,type:\"object\",subtype:\"array\",value:\"Array(\"+t.length+\")\"};return r&&(n.valuePreview=this.getValuePreview4TableArray(t)),n}if(null===t)return{name:e,type:\"object\",subtype:\"null\",value:\"null\"};n={name:e,type:\"object\",value:t.constructor?t.constructor.name:\"Object\"};return r&&(n.valuePreview=this.getValuePreview4TableObject(t)),n;case\"function\":return{type:\"function\",value:\"\",name:e};default:return{name:e,type:typeof t,value:String(t)}}},e.prototype.getValuePreview4TableArray=function(e){var t=this;return{type:\"object\",subtype:\"array\",description:\"Array(\"+e.length+\")\",overflow:!1,properties:e.map((function(e,r){return t.getPropertyPreview4AnyValue(String(r),e)}))}},e.prototype.getValuePreview4TableObject=function(e){var t=this;return{type:\"object\",description:\"Object\",overflow:!1,properties:Object.keys(e).map((function(r){return t.getPropertyPreview4AnyValue(r,e[r])}))}},e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ExtractStackLine=function(){function e(){this.e1=/\\s*at\\s(\\S+)\\s(\\S+)\\:(\\d+)\\:(\\d+)\\)/,this.e2=/\\s*at\\s(\\S+)\\:(\\d+)\\:(\\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:\"\",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}(),CallFramesMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split(\"\\n\").slice(2).map((function(e,r){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(ExtractStackLine),executionContextId=1,injectedScriptId=1,ObjectStore=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{\"injectedScriptId\":'+injectedScriptId+',\"id\":'+this.id+\"}\"},e}(),GetPropertiesHandler=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,r){var n=this;if(t){var s=getObjectOwnPropertyDescriptors(e),i=Object.keys(s).filter((function(e){return!(r&&!s[e].get&&!s[e].set)})).map((function(e){return n.mapResultOne(e,s[e],!0)}));return e.__proto__&&i.push(this.mapResultOne(\"__proto__\",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var o=[],a={},c=e,p=!1,u=!0,l=function(){var e=getObjectOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!a[t]){a[t]=!0;var s=e[t];(!r||s.get||s.set)&&o.push(n.mapResultOne(t,s,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,\"__proto__\");t&&(p=!0,o.push(y.mapResultOne(\"__proto__\",t,u)))}c=c.__proto__,u=!1},y=this;c;)l();return o},e.prototype.mapResultOne=function(e,t,r){var n={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:r,name:String(e)};return\"value\"in t&&(n.value=this.objectMapper.mapFromOne(t.value)),t.get&&(n.get=this.objectMapper.mapFromOne(t.get)),t.set&&(n.set=this.objectMapper.mapFromOne(t.set)),n},e}(),RemoteObjectParser=function(){function e(){this.objectStore=new ObjectStore,this.objectMapper=new ObjectMapper(this.objectStore),this.callFramesMapper=new CallFramesMapper,this.getPropertiesHandler=new GetPropertiesHandler(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e,t){return this.objectMapper.mapFromOne(e,t)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,r){var n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:this.objectMapper.mapFrom(r,e),executionContextId:executionContextId,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}(),ResponseEvent,RequestMethod,BreakStepType,FingerType;function getStartupParams(){if(\"undefined\"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if(\"undefined\"!=typeof my)try{return my.callSync(\"getStartupParams\")||{}}catch(e){}return{}}!function(e){e.ById=\"Tyro.byId\",e.Sticky=\"Tyro.sticky\",e.StickyNotSendPaused=\"Tyro.stickyNotSendPaused\",e.StickyAsync=\"Tyro.stickyAsync\",e.ScriptSource=\"Tyro.scriptSource\",e.Resumed=\"Debugger.resumed\",e.ConsoleAPICalled=\"Runtime.consoleAPICalled\"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries=\"Tyro.discardConsoleEntries\",e.Evaluate=\"Tyro.evaluate\",e.EvaluateOnCallFrame=\"Tyro.evaluateOnCallFrame\",e.CallFunctionOn=\"Tyro.callFunctionOn\",e.CompileScript=\"Tyro.compileScript\",e.SetBreakpointsActive=\"Tyro.setBreakpointsActive\",e.SetSkipAllPauses=\"Tyro.setSkipAllPauses\",e.Resume=\"Tyro.resume\",e.StepInto=\"Tyro.stepInto\",e.StepOver=\"Tyro.stepOver\",e.StepOut=\"Tyro.stepOut\",e.Pause=\"Tyro.pause\",e.GetPossibleBreakpoints=\"Tyro.getPossibleBreakpoints\",e.SetBreakpointByUrl=\"Tyro.setBreakpointByUrl\",e.SetBreakpoint=\"Tyro.setBreakpoint\",e.RemoveBreakpoint=\"Tyro.removeBreakpoint\",e.REPL=\"Tyro.repl\",e.GetVariableValue=\"Tyro.getVariableValue\",e.SetPauseOnExceptions=\"Tyro.setPauseOnExceptions\",e.SetAsyncCallStackDepth=\"Tyro.setAsyncCallStackDepth\",e.GetProperties=\"Tyro.getProperties\"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]=\"Non\",e[e.NextSticky=1]=\"NextSticky\",e[e.StepOver=2]=\"StepOver\",e[e.StepOut=3]=\"StepOut\"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]=\"Entry\",e[e.Exit=1]=\"Exit\"}(FingerType||(FingerType={}));var serverConfig={default:{domain:\"hpmweb.alipay.com\"},1:{domain:\"hpmweb.alipay.com\"}};function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}var appxStackLine=/https:\\/\\/appx\\/af-appx\\.worker\\.min\\.js:\\d+:\\d+/,nativeScriptLine=/https:\\/\\/www\\.alipay\\.com\\/?:\\d+:\\d+|\\[native code\\]/,pluginWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/__plugins__\\/(\\d+)\\/index\\.worker\\.js:\\d+:\\d+/,appWorkerStackLine=/https:\\/\\/\\d+\\.hybrid\\.\\S+\\.com\\/index\\.worker\\.js:\\d+:\\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,\"Plugin-$1\"):e.replace(appWorkerStackLine,\"App\")}catch(t){return e}}function formatErrorStack(e){var t=e.split(\"\\n\"),r=t[0],n=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl);return n.unshift(r),n.join(\"\\n\")}function formatErrorRemoteObject(e){return e.description&&(e.description=formatErrorStack(e.description)),e.preview&&e.preview.description&&(e.preview.description=e.description),e}var TYRO_EXECUTION_CONTEXT_ID=0,TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return\"[Throws: \"+(e?e.message:\"?\")+\"]\"},e.safeGetValueFromPropertyOnObject=function(t,r){if(Object.prototype.hasOwnProperty.call(t,r))try{return t[r]}catch(t){return e.throwsMessage(t)}return t[r]},e.ensureProperties=function(t){var r=[];return function t(n){if(null===n||\"object\"!=typeof n)return n;if(-1!==r.indexOf(n))return\"[Circular]\";if(r.push(n),\"function\"==typeof n.toJSON)try{var s=t(n.toJSON());return r.pop(),s}catch(t){return e.throwsMessage(t)}if(Array.isArray(n)){var i=n.map(t);return r.pop(),i}var o=Object.keys(n).reduce((function(r,s){return r[s]=t(e.safeGetValueFromPropertyOnObject(n,s)),r}),{});return r.pop(),o}(t)},e.safeJSONStringify=function(t,r,n){return JSON.stringify(e.ensureProperties(t),r,n)},e.isWebIDE=function(){return!(\"undefined\"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||\"\").indexOf(\"AlipayIDE\")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,r,n){var s=this;this.isWebIDE=!1,this.asyncRequestMethod=\"tyroRequest\",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=r,this.stickyFlag=n.stickyFlag,this.fingerFlag=n.fingerFlag,this.remoteObjectParser=new RemoteObjectParser,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){s.socketTask=my.connectSocket({url:\"wss://\"+getServerConfig().domain+\"/tyro/agent/\"+s.instrumentId,multiple:!0});var e=function(){if(!s.wsIsOpen){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接成功\"),s.wsIsOpen=!0;for(var e=0,t=s.wsMsgQueue;e<t.length;e++){var r=t[e];s.socketTask.send({data:r})}s.wsMsgQueue=[]}};s.socketTask.onOpen((function(){e()})),s.socketTask.onClose((function(){s.originConsoleAPI.log(\"[tyro-agent] WebSocket 连接已关闭\")})),s.socketTask.onMessage((function(t){s.wsIsOpen||e(),s.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions=\"none\",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression=\"\",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==s.fingerCache.length&&(s.sendPerf(\"Perf.trace\",s.fingerCache),s.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod=\"tyroRequestAsync\")}return StickyFinger.rewritePath=function(e){var t=e;return\".\"===t[0]&&(t=t.replace(\".\",\"\")),t=\"app://\"+(t=t.replace(\"tmp/data/build/\",\"\"))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(r){var n=e.scope[r],s=n.shift(),i=t.scope[s];t.scope[r]=i?i.concat(n.filter((function(e){return i.indexOf(e)<0}))):n})),e.function&&Object.keys(e.function).map((function(r){var n=e.function[r];t.function[r]={name:n[0],line:n[1]}})),t},StickyFinger.prototype.register=function(e,t){var r=String(e.contextId),n=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log(\"[tyro-agent] register contextId \"+r+\" path \"+n),this.contextMap[r]||this.breakpointMap[r]?this.originConsoleAPI.warn(\"[tyro-agent] duplicate context register \"+r+\" \"+n):(this.contextMap[r]=StickyFinger.processRawContext(e),this.contextUrlMap[n]=r,this.breakpointMap[r]={},this.debuggerMap[r]=this.contextMap[r].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(r),executionContextId:TYRO_EXECUTION_CONTEXT_ID,url:n}))},StickyFinger.prototype.sticky=function(e,t,r){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split(\"\\n\").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split(\"\\n\").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log(\"[tyro-agent] sticky \"+e+\" \"+t),this.breakStepType=BreakStepType.Non;var n={};if(this.stickyNotSendPaused)this.originConsoleAPI.log(\"[tyro-agent] stickyNotSendPaused\");else{if(!this.sendStickyParams){this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 1\"),n={callFrames:null,reason:\"other\",hitBreakpoints:[]};var s=this.breakpointMap[e][t];s&&n.hitBreakpoints.push(s);var i=(new Error).stack.split(\"\\n\");return this.stackDepth=i.length,Agent.isPhone?n.callFrames=this.processCallFramesPhone(String(e),t,r,i):n.callFrames=this.processCallFrames(String(e),t,r,i),this.stickyParams=n,this.sendStickyParams=!0,\"(function(){\\n var localObject = {};\\n Agent.getScopeVariables().forEach(function (key) {\\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\\n });\\n Agent.inflateStickyParamsObject(localObject);\\n return true;\\n })()\"}this.originConsoleAPI.log(\"[tyro-agent] sticky sendStickyParams step 2\"),n=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log(\"[tyro-agent] sticky params \"+TyroUtil.safeJSONStringify(n));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,n));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var r=this.contextMap[e].path,n=this.contextMap[e].function[t],s=this.generateFingerId(),i={time:Date.now(),file:r,line:n.line,name:n.name,id:s,type:FingerType.Entry};return this.fingerCache.push(i),s},StickyFinger.prototype.fingerExit=function(e,t,r){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i={time:Date.now(),file:n,line:s.line,name:s.name,id:r,type:FingerType.Exit};this.fingerCache.push(i)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener(\"bugmeInjected\",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.consoleAPICalled=function(e,t){var r=this,n=e;return\"warn\"===e&&(n=\"warning\"),{method:\"Runtime.consoleAPICalled\",params:{type:n,args:Array.from(t).map((function(t){return r.remoteObjectParser.parseObject(t,e)})),executionContextId:TYRO_EXECUTION_CONTEXT_ID,timestamp:Date.now()}}},StickyFinger.prototype.hookConsole=function(){var e=this,t=this;Object.defineProperties(console,[\"debug\",\"log\",\"info\",\"warn\",\"error\",\"table\"].reduce((function(r,n){var s=console[n].bind(console);return e.originConsoleAPI[n]=s,r[n]={value:function(){var e=arguments;if(e.length){try{var r=/^(\\[framework\\]|dispatchEvent|onMessage push|unsupported protocol)/;if(\"string\"==typeof e[0]&&r.test(e[0]))return s.apply(null,e);var i=t.consoleAPICalled(n,e).params;i.args.forEach((function(e){\"error\"===e.subtype&&formatErrorRemoteObject(e)})),t.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}catch(e){}return s.apply(null,e)}}},r}),{}))},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){var t=this.remoteObjectParser.parseObject(e).objectId;this.stickyParams.callFrames[0].scopeChain.push({type:\"local\",name:this.stickyParams.callFrames[0].functionName,object:{className:\"Object\",description:\"Object\",objectId:t,type:\"object\"}})}},StickyFinger.prototype.processCallFrames=function(e,t,r,n){var s=this,i=[],o=n.slice(3,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\")})),a=0,c=!0;return o.map((function(t){var n=t.split(\":\"),o=n[0],p=s.contextMap[e].path,u=Number(n[n.length-1]),l=s.contextUrlMap[p]||\"none\",y=a+\":\"+u+\":\"+p;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};i.push(h),a+=1})),i},StickyFinger.prototype.processCallFramesPhone=function(e,t,r,n){var s=this,i=[],o=n.slice(2,n.length).map((function(e){return e.substr(0,e.lastIndexOf(\":\")).replace(\" at \",\"\").replace(\" (\",\":\").replace(\"@\",\":\")})),a=0,c=!0;return o.map((function(n){var o=n.split(\":\"),p=o[0],u=s.contextMap[e].path,l=Number(o[o.length-1]),y=s.contextUrlMap[u]||\"none\",h=a+\":\"+l+\":\"+u;c&&(s.scopeVariables=void 0!==s.contextMap[e]?s.contextMap[e].scope[r]:[],s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.scopeVariables)),s.originConsoleAPI.log(\"scopeVariables \"+TyroUtil.safeJSONStringify(s.contextMap[e])+\" \"+s.contextMap[e].scope+\" \"+r),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};i.push(d),a+=1})),i},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,r,n){var s,i=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call(\"showRemoteDebugMask\",{text:\" \",buttonTitle:\"断点命中\",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync(\"tyroRequest\",{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++});return my.call(\"showRemoteDebugMask\",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error(\"[tyro-agent] xhrSend error result is \"+c):this.originConsoleAPI.error(\"[tyro-agent] xhrSend error \"+c.error+\" \"+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,r,n):TyroUtil.safeJSONStringify({method:\"default\"})):200!==c.status?(this.originConsoleAPI.error(\"[tyro-agent] xhrSend status fail \"+e+\" \"+c.status),TyroUtil.safeJSONStringify({method:\"default\"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info(\"[tyro-agent] xhrSend async send \"+p),my.call(this.asyncRequestMethod,{url:this.host+\"/tyro/agent\",method:\"POST\",headers:{\"Content-Type\":\"application/json;charset=UTF-8\",\"instrument-id\":this.instrumentId},data:p,timeout:6e5,dataType:\"json\",requestTaskId:this.requestTaskId++,success:function(e){i.lastStickyAsyncError=0,i.stickyAsyncLoop(),200===e.status?(i.originConsoleAPI.info(\"[tyro-agent] xhrSend async success \"+e.status+\" \"+e.data),i.handleStickyAsync(JSON.parse(e.data))):i.originConsoleAPI.error(\"[tyro-agent] xhrSend async fail \"+e.status+\" \"+e.data)},fail:function(e){i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),i.originConsoleAPI.error(\"[tyro-agent] xhrSend async error \"+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:s={id:r,result:t};break;case ResponseEvent.ScriptSource:s={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:s={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:s={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(s):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(s)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(s))},StickyFinger.prototype.xhrSend=function(e,t,r,n){var s=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,r,n);var i,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open(\"POST\",this.host+\"/tyro/agent\",!1),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error(\"[sticky-finger] xhrSend error \"+e+\" \"+o.status)}if(e===ResponseEvent.StickyAsync)return o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(s.lastStickyAsyncError=0,s.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status);s.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw s.lastStickyAsyncError>=3?setTimeout((function(){s.stickyAsyncLoop()}),3e3):(s.lastStickyAsyncError+=1,s.stickyAsyncLoop()),new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open(\"POST\",this.host+\"/tyro/agent\",!0),o.setRequestHeader(\"Content-Type\",\"application/json;charset=UTF-8\"),o.setRequestHeader(\"instrument-id\",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error(\"[tyro-agent] xhrSend async fail \"+e+\" \"+o.readyState+\" \"+o.status)},o.onerror=function(){throw new Error(\"[tyro-agent] xhrSend async error \"+e+\" \"+o.readyState+\" \"+o.status)},e){case ResponseEvent.ById:i={id:r,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}n?this.stickyMsgQueue.push(i):o.send(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,r=e.method,n=e.params;switch(r){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\"),\"true\";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO sticky\"),\"true\";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, \"+TyroUtil.safeJSONStringify(n)),\"true\";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log(\"[tyro-agent] Resume success\"),\"false\";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] StepInto success\"),\"false\";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log(\"[tyro-agent] StepOver success\"),\"false\";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log(\"[tyro-agent] StepOut success\"),\"false\";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\"+n.statement+\"})();return true})()\";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var s=e.params;return this.breakStepType=BreakStepType.NextSticky,\"(function(){(function(){\\n Agent.variableValue({\"+s.map((function(e){return e+\": (function(){try{return \"+e+\"}catch(e){return undefined}})()\"})).join(\",\")+\"})\\n })();return true})()\";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,n),this.breakStepType=BreakStepType.NextSticky,\"true\";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=n.expression,this.breakStepType=BreakStepType.NextSticky,\"(function(){\\n var tyroRet,tyroErr;\\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\\n catch(e){tyroErr=e}\\n Agent.evaluateOnCallFrame(\"+t+\",tyroRet,tyroErr,\"+n.generatePreview+\");\\n return true;\\n })()\";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,n,!0),this.breakStepType=BreakStepType.NextSticky,\"true\";default:return this.breakStepType=BreakStepType.NextSticky,\"true\"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,r=e.method,n=e.params;switch(this.originConsoleAPI.log(\"[tyro-agent] handleStickyAsync \"+t+\", \"+r+\", \"+n),r){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log(\"[tyro-agent] DiscardConsoleEntries success\");break;case RequestMethod.Evaluate:this.originConsoleAPI.log(\"[tyro-agent] Evaluate start, expression \"+n.expression);var s=this.evaluate(this.globalExecutionContext,t,n);this.originConsoleAPI.log(\"[tyro-agent] Evaluate success, expression \"+n.expression+\", result \"+TyroUtil.safeJSONStringify(s));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log(\"[tyro-agent] CallFunctionOn TODO stickyAsync\");break;case RequestMethod.CompileScript:this.originConsoleAPI.log(\"[tyro-agent] CompileScript success, params \"+TyroUtil.safeJSONStringify(n));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=n.active,this.originConsoleAPI.log(\"[tyro-agent] SetBreakpointsActive success, breakpointsActive \"+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=n.skip,this.originConsoleAPI.log(\"[tyro-agent] SetSkipAllPauses success, skipAllPauses \"+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log(\"[tyro-agent] Pause success\");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,n);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,n);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,n);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,n);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,n);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,n);break;case RequestMethod.GetProperties:this.getProperties(t,n)}},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,r,n){var s;if(r){var i=this.remoteObjectParser.parseObject(r);formatErrorRemoteObject(i),s={exceptionDetails:{columnNumber:20,exception:i,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:i}}else s={result:this.remoteObjectParser.parseObject(t)};return this.xhrSend(ResponseEvent.ById,s,e,!0),s},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error,result;try{returnValue=function(expression){return\"function\"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}if(error){var errorRemoteObject=this.remoteObjectParser.parseObject(error);formatErrorRemoteObject(errorRemoteObject),result={exceptionDetails:{columnNumber:20,exception:errorRemoteObject,exceptionId:1,lineNumber:0,text:\"Uncaught\"},result:errorRemoteObject}}else result={result:this.remoteObjectParser.parseObject(returnValue)};return this.xhrSend(ResponseEvent.ById,result,id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,r){var n=t.scriptId,s=t.startLine,i=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[n])for(var a=this.contextMap[n].stickyLine,c=s;c<i;c++)a.includes(c)&&o.locations.push({scriptId:n,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn(\"[tyro-agent] getPossibleBreakpoints no scriptId \"+n+\" in contextMap\");this.originConsoleAPI.log(\"[tyro-agent] getPossibleBreakpoints success, result: \"+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,r)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,r){var n=t.scriptId,s=t.url,i=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(i)){var o=n+\":\"+i+\":0:\"+s,a={breakpointId:o,locations:[{scriptId:n,lineNumber:i,columnNumber:0}]};this.breakpointMap[n][i]=o,this.breakpointIdMap[o]={contextId:n,line:i},this.originConsoleAPI.log(\"[tyro-agent] setBreakpointByUrl success, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i),this.xhrSend(ResponseEvent.ById,a,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl not sticky line, scriptId: \"+n+\", url: \"+s+\", lineNumber: \"+i);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpointByUrl no contextMap, scriptId: \"+n)},StickyFinger.prototype.setBreakpoint=function(e,t,r){var n=t.scriptId,s=t.lineNumber;if(this.contextMap[n])if(this.contextMap[n].stickyLine.includes(s)){var i=n+\":\"+s+\":0\",o={breakpointId:i,actualLocation:{scriptId:n,lineNumber:s,columnNumber:0}};this.breakpointMap[n][s]=i,this.breakpointIdMap[i]={contextId:n,line:s},this.originConsoleAPI.log(\"[tyro-agent] setBreakpoint success, scriptId: \"+n+\", lineNumber: \"+s),this.xhrSend(ResponseEvent.ById,o,e,r)}else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint not sticky line, scriptId: \"+n+\", lineNumber: \"+s);else this.originConsoleAPI.warn(\"[tyro-agent] setBreakpoint no contextMap, scriptId: \"+n)},StickyFinger.prototype.removeBreakpoint=function(e,t){var r=t.breakpointId,n=this.breakpointIdMap[r];n||this.originConsoleAPI.warn(\"[tyro-agent] removeBreakpoint no breakpointId \"+r);var s=n.contextId,i=n.line;delete this.breakpointMap[s][i],this.originConsoleAPI.log(\"[tyro-agent] removeBreakpoint success, breakpointId: \"+r+\", scriptId: \"+s+\", line: \"+i)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&[\"none\",\"uncaught\",\"all\"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log(\"[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state \"+this.pauseOnExceptions)):this.originConsoleAPI.warn(\"[tyro-agent] setPauseOnExceptions state invalid: \"+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||\"number\"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn(\"[tyro-agent] setAsyncCallStackDepth maxDepth invalid: \"+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log(\"[tyro-agent] setAsyncCallStackDepth success, maxDepth \"+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,r){this.xhrSend(ResponseEvent.ById,this.remoteObjectParser.getProperties(t),e,r)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,r){if(e.singleton)return e.singleton;this.host=\"https://\"+getServerConfig().domain,this.stickyFinger=new StickyFinger(\"undefined\"!=typeof window?window:self,this.host,t,r)}return e.getShadowMethod=function(){this.globalReference=self,\"function\"==typeof eval?this.evalReference=eval:\"function\"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,r){if(!e.singleton){if(!this.instrumentId&&\"undefined\"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,r)},e.sticky=function(t,r,n){return e.singleton.stickyFinger.sticky(t,r,n)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,r,n,s){return e.singleton.stickyFinger.evaluateOnCallFrame(t,r,n,s)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,r){return e.singleton.stickyFinger.fingerEntry(t,r)},e.exit=function(t,r,n){e.singleton.stickyFinger.fingerExit(t,r,n)},e.instance=function(t,r){e.singleton=new e(t,r)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference=\"undefined\"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();"}